{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5ba38d8d-1e44-4e75-b0c6-d85ac3444494",
    "slug": "deploy-hermes-agent-long-term-memory",
    "name": "Hermes Agent Memory",
    "description": "Agent-curated memory and session search on a volume",
    "url": "https://railway.com/deploy/deploy-hermes-agent-long-term-memory",
    "upstream": {
      "image": "nousresearch/hermes-agent:v0.22.0@sha256:c69536a39e885b8943329bda68cdf44492458b96aa74a212239bde9d2aeb406a"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "hermes-agent",
      "source": {
        "image": "nousresearch/hermes-agent:v0.22.0@sha256:c69536a39e885b8943329bda68cdf44492458b96aa74a212239bde9d2aeb406a"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "hermes-agent",
      "description": "HTTP port Railway routes to (8642).",
      "secret": false,
      "strategy": "default",
      "default": "8642"
    },
    {
      "key": "HERMES_GID",
      "service": "hermes-agent",
      "description": "Group ID that owns the /opt/data volume.",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    },
    {
      "key": "HERMES_UID",
      "service": "hermes-agent",
      "description": "User ID that owns the /opt/data volume.",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    },
    {
      "key": "API_SERVER_KEY",
      "service": "hermes-agent",
      "description": "Bearer key for the API, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HERMES_API_URL",
      "service": "hermes-agent",
      "description": "Public base URL of the API (/v1).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_SERVER_HOST",
      "service": "hermes-agent",
      "description": "API bind address; 0.0.0.0 for Railway.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "API_SERVER_PORT",
      "service": "hermes-agent",
      "description": "API server port; keep equal to PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8642"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "hermes-agent",
      "description": "User ID Railway runs the container as.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "API_SERVER_ENABLED",
      "service": "hermes-agent",
      "description": "Turns on the OpenAI-compatible API server.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_SERVER_CORS_ORIGINS",
      "service": "hermes-agent",
      "description": "Allowed browser origins; * or your frontend URL.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "HERMES_ALLOW_ROOT_GATEWAY",
      "service": "hermes-agent",
      "description": "Allows the gateway to run as root inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-hermes-agent-long-term-memory"
      }
    },
    "cli": "railway deploy --template deploy-hermes-agent-long-term-memory",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5ba38d8d-1e44-4e75-b0c6-d85ac3444494",
            "serializedConfig": {
              "services": {
                "d21bf175-fcc4-45b7-a044-3a8c7eb03723": {
                  "icon": null,
                  "name": "hermes-agent",
                  "deploy": {
                    "startCommand": "sh -c \"mkdir -p /opt/data && chown -R 10000:10000 /opt/data && exec /opt/hermes/docker/entrypoint-dispatch.sh hermes gateway run\"",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "nousresearch/hermes-agent:v0.22.0@sha256:c69536a39e885b8943329bda68cdf44492458b96aa74a212239bde9d2aeb406a"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway routes to (8642).",
                      "defaultValue": "8642"
                    },
                    "HERMES_GID": {
                      "isOptional": false,
                      "description": "Group ID that owns the /opt/data volume.",
                      "defaultValue": "10000"
                    },
                    "HERMES_UID": {
                      "isOptional": false,
                      "description": "User ID that owns the /opt/data volume.",
                      "defaultValue": "10000"
                    },
                    "API_SERVER_KEY": {
                      "isOptional": false,
                      "description": "Bearer key for the API, generated per deploy.",
                      "defaultValue": "{{API_SERVER_KEY}}"
                    },
                    "HERMES_API_URL": {
                      "isOptional": false,
                      "description": "Public base URL of the API (/v1).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/v1"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional OpenAI key for GPT models.",
                      "defaultValue": ""
                    },
                    "API_SERVER_HOST": {
                      "isOptional": false,
                      "description": "API bind address; 0.0.0.0 for Railway.",
                      "defaultValue": "0.0.0.0"
                    },
                    "API_SERVER_PORT": {
                      "isOptional": false,
                      "description": "API server port; keep equal to PORT.",
                      "defaultValue": "8642"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "User ID Railway runs the container as.",
                      "defaultValue": "0"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional Anthropic key for Claude models.",
                      "defaultValue": ""
                    },
                    "API_SERVER_ENABLED": {
                      "isOptional": false,
                      "description": "Turns on the OpenAI-compatible API server.",
                      "defaultValue": "true"
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Optional OpenRouter key for models.",
                      "defaultValue": ""
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": true,
                      "description": "Optional Telegram bot token from BotFather.",
                      "defaultValue": ""
                    },
                    "TELEGRAM_ALLOWED_USERS": {
                      "isOptional": true,
                      "description": "Telegram user IDs allowed to use the bot.",
                      "defaultValue": ""
                    },
                    "API_SERVER_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed browser origins; * or your frontend URL.",
                      "defaultValue": "*"
                    },
                    "HERMES_ALLOW_ROOT_GATEWAY": {
                      "isOptional": false,
                      "description": "Allows the gateway to run as root inside the container.",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8642": {
                        "port": 8642
                      }
                    }
                  },
                  "volumeMounts": {
                    "d21bf175-fcc4-45b7-a044-3a8c7eb03723": {
                      "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-10-27T10:14:46.328Z",
  "generator_version": "0.1.0"
}
