{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7f1207a2-be04-4d60-8966-36f8ac235d6d",
    "slug": "hermes-agent-official-image",
    "name": "Hermes Agent (Official Image)",
    "description": "Nous Research's Hermes Agent: memory on a volume, API with a key, Telegram",
    "url": "https://railway.com/deploy/hermes-agent-official-image",
    "upstream": {
      "image": "nousresearch/hermes-agent:latest"
    }
  },
  "services": [
    {
      "name": "hermes-agent",
      "source": {
        "image": "nousresearch/hermes-agent:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "hermes-agent",
      "description": "Port Railway routes to and healthchecks (the API server)",
      "secret": false,
      "strategy": "default",
      "default": "8642"
    },
    {
      "key": "API_SERVER_KEY",
      "service": "hermes-agent",
      "description": "Bearer key for the API (generated). Anyone with it can use your agent",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HERMES_API_URL",
      "service": "hermes-agent",
      "description": "Base URL for OpenAI-compatible clients (model: hermes-agent)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_SERVER_HOST",
      "service": "hermes-agent",
      "description": "Listen on all interfaces so Railway can route to it",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "API_SERVER_PORT",
      "service": "hermes-agent",
      "description": "API server port",
      "secret": false,
      "strategy": "default",
      "default": "8642"
    },
    {
      "key": "API_SERVER_ENABLED",
      "service": "hermes-agent",
      "description": "OpenAI-compatible API on the public domain",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENROUTER_API_KEY",
      "service": "hermes-agent",
      "description": "OpenRouter API key: one key for Claude, GPT, Gemini and the rest (openrouter.ai/keys)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hermes-agent-official-image"
      }
    },
    "cli": "railway deploy --template hermes-agent-official-image",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7f1207a2-be04-4d60-8966-36f8ac235d6d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "233bff45-d11c-4f0d-a8ea-a76dc5b5e341": {
                  "icon": "https://raw.githubusercontent.com/NousResearch/hermes-agent/5307e93252ac655cd13fadbd561c0995142138c6/apps/desktop/assets/icon.png",
                  "name": "hermes-agent",
                  "deploy": {
                    "startCommand": "/opt/hermes/docker/entrypoint-dispatch.sh sh -c 'if [ -n \"${MODEL:-}\" ]; then hermes config set model \"$MODEL\"; fi; exec hermes gateway run'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "nousresearch/hermes-agent:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to and healthchecks (the API server)",
                      "defaultValue": "8642"
                    },
                    "MODEL": {
                      "isOptional": true,
                      "description": "Optional: model to use, e.g. anthropic/claude-sonnet-4.6. Applied on every start; empty keeps Hermes's default (Claude Opus)",
                      "defaultValue": ""
                    },
                    "API_SERVER_KEY": {
                      "isOptional": false,
                      "description": "Bearer key for the API (generated). Anyone with it can use your agent",
                      "defaultValue": "{{API_SERVER_KEY}}"
                    },
                    "HERMES_API_URL": {
                      "isOptional": false,
                      "description": "Base URL for OpenAI-compatible clients (model: hermes-agent)",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: direct OpenAI key",
                      "defaultValue": ""
                    },
                    "API_SERVER_HOST": {
                      "isOptional": false,
                      "description": "Listen on all interfaces so Railway can route to it",
                      "defaultValue": "0.0.0.0"
                    },
                    "API_SERVER_PORT": {
                      "isOptional": false,
                      "description": "API server port",
                      "defaultValue": "8642"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: direct Anthropic key instead of OpenRouter",
                      "defaultValue": ""
                    },
                    "API_SERVER_ENABLED": {
                      "isOptional": false,
                      "description": "OpenAI-compatible API on the public domain",
                      "defaultValue": "true"
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": false,
                      "description": "OpenRouter API key: one key for Claude, GPT, Gemini and the rest (openrouter.ai/keys)",
                      "defaultValue": "{{OPENROUTER_API_KEY}}"
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional: token from @BotFather to chat with Hermes on Telegram",
                      "defaultValue": ""
                    },
                    "TELEGRAM_ALLOWED_USERS": {
                      "isOptional": true,
                      "description": "Telegram user IDs allowed to use the bot, comma-separated (ask @userinfobot for yours)",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8642": {
                        "port": 8642
                      }
                    }
                  },
                  "volumeMounts": {
                    "4399d1d2-6aa7-4537-b65a-92a7c72d46c9": {
                      "mountPath": "/opt/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "hermes-agent",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T16:14:54.488Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-25T15:31:38.981Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_226e3c05c77943c4be12",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "hermes-agent"
  }
}
