{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ed6810c3-ab22-4771-8a9b-28a6ce83f414",
    "slug": "archon",
    "name": "Archon",
    "description": "Run Claude Code from a browser, behind real per-user login.",
    "url": "https://railway.com/deploy/archon",
    "upstream": {
      "image": "ghcr.io/coleam00/archon:0.9.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "archon",
      "source": {
        "image": "ghcr.io/coleam00/archon:0.9.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/.archon",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Data directory inside the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "postgres",
      "description": "Private hostname other services connect to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "postgres",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "postgres",
      "description": "Mirror of the superuser name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "postgres",
      "description": "Mirror of the database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "postgres",
      "description": "Mirror of the superuser password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database Archon converges its schema into.",
      "secret": false,
      "strategy": "default",
      "default": "archon"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Standard connection string, mirrored onto the archon service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Postgres superuser name.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Postgres superuser password. Generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "archon",
      "description": "Port the server binds and the healthcheck probes; the two must match.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DATABASE_URL",
      "service": "archon",
      "description": "Postgres connection string. Web login requires Postgres, not the SQLite default.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ARCHON_DOCKER",
      "service": "archon",
      "description": "Tells Archon it is running inside a container.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WEB_UI_ORIGIN",
      "service": "archon",
      "description": "Browser origin allowed to call the API. Upstream defaults to *, which is unsafe here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "archon",
      "description": "Public origin that login sessions are issued for.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "archon",
      "description": "Starts as root so the entrypoint can chown the volume, then drops to appuser.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "archon",
      "description": "Signs login sessions. Generated per deploy; boot rejects anything under 32 chars.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ARCHON_WEB_AUTH_HEADER",
      "service": "archon",
      "description": "Randomised name for the trusted identity header, so the default cannot be forged.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLAUDE_CODE_OAUTH_TOKEN",
      "service": "archon",
      "description": "Token from `claude setup-token`. Archon cannot run an agent without a key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ARCHON_WEB_AUTH_REQUIRED",
      "service": "archon",
      "description": "Requires a logged-in session on every /api/* request.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ARCHON_AUTH_ALLOWED_EMAILS",
      "service": "archon",
      "description": "Comma-separated emails allowed to register. Without one, nobody can sign up.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "archon"
      }
    },
    "cli": "railway deploy --template archon",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ed6810c3-ab22-4771-8a9b-28a6ce83f414",
            "serializedConfig": {
              "services": {
                "07b1264d-be2c-449e-bcb5-586f1ab2c435": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the mounted volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname other services connect to.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Mirror of the superuser name.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Mirror of the database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Mirror of the superuser password.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database Archon converges its schema into.",
                      "defaultValue": "archon"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Standard connection string, mirrored onto the archon service.",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser name.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres superuser password. Generated per deploy.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "07b1264d-be2c-449e-bcb5-586f1ab2c435": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "932d0242-2c56-43eb-92a1-804181227f98": {
                  "icon": "https://raw.githubusercontent.com/coleam00/Archon/v0.9.0/assets/logo.png",
                  "name": "archon",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "healthcheckTimeout": 900
                  },
                  "source": {
                    "image": "ghcr.io/coleam00/archon:0.9.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the server binds and the healthcheck probes; the two must match.",
                      "defaultValue": "3000"
                    },
                    "GH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional GitHub token, for cloning private repos and opening pull requests.",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string. Web login requires Postgres, not the SQLite default.",
                      "defaultValue": "postgresql://${{postgres.PGUSER}}:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{postgres.PGDATABASE}}"
                    },
                    "ARCHON_DOCKER": {
                      "isOptional": false,
                      "description": "Tells Archon it is running inside a container.",
                      "defaultValue": "true"
                    },
                    "WEB_UI_ORIGIN": {
                      "isOptional": false,
                      "description": "Browser origin allowed to call the API. Upstream defaults to *, which is unsafe here.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Public origin that login sessions are issued for.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Starts as root so the entrypoint can chown the volume, then drops to appuser.",
                      "defaultValue": "0"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs login sessions. Generated per deploy; boot rejects anything under 32 chars.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "ARCHON_WEB_AUTH_HEADER": {
                      "isOptional": false,
                      "description": "Randomised name for the trusted identity header, so the default cannot be forged.",
                      "defaultValue": "{{ARCHON_WEB_AUTH_HEADER}}"
                    },
                    "CLAUDE_CODE_OAUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Token from `claude setup-token`. Archon cannot run an agent without a key.",
                      "defaultValue": "{{CLAUDE_CODE_OAUTH_TOKEN}}"
                    },
                    "ARCHON_WEB_AUTH_REQUIRED": {
                      "isOptional": false,
                      "description": "Requires a logged-in session on every /api/* request.",
                      "defaultValue": "true"
                    },
                    "ARCHON_AUTH_ALLOWED_EMAILS": {
                      "isOptional": false,
                      "description": "Comma-separated emails allowed to register. Without one, nobody can sign up.",
                      "defaultValue": "{{ARCHON_AUTH_ALLOWED_EMAILS}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "932d0242-2c56-43eb-92a1-804181227f98": {
                      "mountPath": "/.archon"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "archon",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
