{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ed168eb5-742f-445c-9a34-025995ba4f00",
    "slug": "overmind",
    "name": "Overmind",
    "description": "Agent tracing, LLM evals and prompt tuning for AI agents, with MCP server",
    "url": "https://railway.com/deploy/overmind",
    "upstream": {
      "image": "ghcr.io/hmseeb/overmind-railway:v0.1.18-r2"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Overmind",
      "source": {
        "image": "ghcr.io/hmseeb/overmind-railway:v0.1.18-r2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Sandbox",
      "source": {
        "image": "ghcr.io/hmseeb/overmind-railway:v0.1.18-r2"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:7.4.2"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:0.8.1-pg16-bookworm"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOME",
      "service": "Overmind",
      "description": "Matches upstream compose.",
      "secret": false,
      "strategy": "default",
      "default": "/data/tmp"
    },
    {
      "key": "PORT",
      "service": "Overmind",
      "description": "Caddy listens here and serves the Console plus the API on one domain.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TMPDIR",
      "service": "Overmind",
      "description": "Scratch space, on the volume (large uploads spill here).",
      "secret": false,
      "strategy": "default",
      "default": "/data/tmp"
    },
    {
      "key": "HF_TOKEN",
      "service": "Overmind",
      "description": "Fine-tuning only. Hugging Face token for gated base models.",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "DATA_ROOT",
      "service": "Overmind",
      "description": "On the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "MEDIA_ROOT",
      "service": "Overmind",
      "description": "Uploads and dataset files, on the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/media"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Overmind",
      "description": "Database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SANDBOX_URL",
      "service": "Overmind",
      "description": "Isolated runner for document parsing and Data Workshop code.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DJANGO_DEBUG",
      "service": "Overmind",
      "description": "Production mode.",
      "secret": false,
      "strategy": "default",
      "default": "False"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Overmind",
      "description": "Used in links the API generates.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Overmind",
      "description": "Database host.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "Overmind",
      "description": "Database port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Overmind",
      "description": "Database user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SANDBOX_TOKEN",
      "service": "Overmind",
      "description": "Shared with the Sandbox service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MCP_SERVER_URL",
      "service": "Overmind",
      "description": "Canonical MCP resource URL for OAuth discovery by coding agents.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MODAL_TOKEN_ID",
      "service": "Overmind",
      "description": "Fine-tuning only. Modal token id from https://modal.com/settings/tokens",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "AWS_BUCKET_NAME",
      "service": "Overmind",
      "description": "Fine-tuning only. S3 checkpoint archive bucket.",
      "secret": false,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "Overmind",
      "description": "Fine-tuning only. S3 checkpoint archive.",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "CELERY_BROKER_URL",
      "service": "Overmind",
      "description": "Task queue.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DJANGO_ADMIN_PATH",
      "service": "Overmind",
      "description": "Unguessable path of the Django admin, as upstream recommends for public deployments.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DJANGO_SECRET_KEY",
      "service": "Overmind",
      "description": "Signs sessions and JWTs.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INFERENCE_API_KEY",
      "service": "Overmind",
      "description": "Fine-tuning only. Shared secret also set in the Modal secret overmind-inference.",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "INFERENCE_API_URL",
      "service": "Overmind",
      "description": "Fine-tuning only. The endpoint printed by modal deploy.",
      "secret": false,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "MODAL_ENVIRONMENT",
      "service": "Overmind",
      "description": "Modal environment for training and serving.",
      "secret": false,
      "strategy": "default",
      "default": "overmind"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Overmind",
      "description": "Database password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FINETUNING_BACKEND",
      "service": "Overmind",
      "description": "Upstream accepts only modal.",
      "secret": false,
      "strategy": "default",
      "default": "modal"
    },
    {
      "key": "MODAL_TOKEN_SECRET",
      "service": "Overmind",
      "description": "Fine-tuning only. Modal token secret.",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "OPENROUTER_API_KEY",
      "service": "Overmind",
      "description": "Required. Every judge, eval, trace score and optimiser call goes through OpenRouter. Get one at https://openrouter.ai/keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OVERMIND_PUBLIC_URL",
      "service": "Overmind",
      "description": "Public URL of this deployment. Change it if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DJANGO_ALLOWED_HOSTS",
      "service": "Overmind",
      "description": "Hostnames Django answers. Add a custom domain here.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FIELD_ENCRYPTION_KEY",
      "service": "Overmind",
      "description": "Encrypts stored provider credentials. Never change it after first boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OVERMIND_OPEN_SIGNUP",
      "service": "Overmind",
      "description": "The first account to sign in becomes the only one. Invite teammates from a project, or set true to let anyone with the URL create an account.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "Overmind",
      "description": "Fine-tuning only. S3 checkpoint archive.",
      "secret": true,
      "strategy": "default",
      "default": "not-configured"
    },
    {
      "key": "CELERY_RESULT_BACKEND",
      "service": "Overmind",
      "description": "Task results.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DJANGO_CORS_ALLOWED_ORIGINS",
      "service": "Overmind",
      "description": "The Console is same-origin; kept explicit for clarity.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SANDBOX_TOKEN",
      "service": "Sandbox",
      "description": "Bearer token Overmind uses to call the sandbox.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SANDBOX_OCR_WORKERS",
      "service": "Sandbox",
      "description": "Parallel OCR workers for scanned documents.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "SANDBOX_MEMORY_BYTES",
      "service": "Sandbox",
      "description": "Per-run memory cap in bytes; 0 means none (upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SANDBOX_ALLOW_SHARED_UID",
      "service": "Sandbox",
      "description": "Runs share one unprivileged uid; Railway cannot grant the ptrace capability per-run uids need.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name.",
      "secret": false,
      "strategy": "default",
      "default": "overmind"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user.",
      "secret": false,
      "strategy": "default",
      "default": "overmind"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "overmind"
      }
    },
    "cli": "railway deploy --template overmind",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ed168eb5-742f-445c-9a34-025995ba4f00",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0b1947ca-9c1c-46cf-aa4f-c03145bbeb05": {
                  "icon": "https://raw.githubusercontent.com/overmind-core/overmind/v0.1.18/frontend/public/favicon.png",
                  "name": "Overmind",
                  "deploy": {
                    "startCommand": "/usr/local/bin/overmind-start",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/overmind-railway:v0.1.18-r2"
                  },
                  "variables": {
                    "HOME": {
                      "isOptional": false,
                      "description": "Matches upstream compose.",
                      "defaultValue": "/data/tmp"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Caddy listens here and serves the Console plus the API on one domain.",
                      "defaultValue": "8080"
                    },
                    "TMPDIR": {
                      "isOptional": false,
                      "description": "Scratch space, on the volume (large uploads spill here).",
                      "defaultValue": "/data/tmp"
                    },
                    "HF_TOKEN": {
                      "isOptional": false,
                      "description": "Fine-tuning only. Hugging Face token for gated base models.",
                      "defaultValue": "not-configured"
                    },
                    "DATA_ROOT": {
                      "isOptional": false,
                      "description": "On the volume.",
                      "defaultValue": "/data"
                    },
                    "MEDIA_ROOT": {
                      "isOptional": false,
                      "description": "Uploads and dataset files, on the volume.",
                      "defaultValue": "/data/media"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "SANDBOX_URL": {
                      "isOptional": false,
                      "description": "Isolated runner for document parsing and Data Workshop code.",
                      "defaultValue": "http://${{Sandbox.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "DJANGO_DEBUG": {
                      "isOptional": false,
                      "description": "Production mode.",
                      "defaultValue": "False"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Used in links the API generates.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Database host.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": false,
                      "description": "Database port.",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "SANDBOX_TOKEN": {
                      "isOptional": false,
                      "description": "Shared with the Sandbox service.",
                      "defaultValue": "${{Sandbox.SANDBOX_TOKEN}}"
                    },
                    "MCP_SERVER_URL": {
                      "isOptional": false,
                      "description": "Canonical MCP resource URL for OAuth discovery by coding agents.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api/mcp/"
                    },
                    "MODAL_TOKEN_ID": {
                      "isOptional": false,
                      "description": "Fine-tuning only. Modal token id from https://modal.com/settings/tokens",
                      "defaultValue": "not-configured"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Only the embedding_cosine evaluator uses it."
                    },
                    "AWS_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "Fine-tuning only. S3 checkpoint archive bucket.",
                      "defaultValue": "not-configured"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Fine-tuning only. S3 checkpoint archive.",
                      "defaultValue": "not-configured"
                    },
                    "CELERY_BROKER_URL": {
                      "isOptional": false,
                      "description": "Task queue.",
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "DJANGO_ADMIN_PATH": {
                      "isOptional": false,
                      "description": "Unguessable path of the Django admin, as upstream recommends for public deployments.",
                      "defaultValue": "{{DJANGO_ADMIN_PATH}}"
                    },
                    "DJANGO_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs sessions and JWTs.",
                      "defaultValue": "{{DJANGO_SECRET_KEY}}"
                    },
                    "INFERENCE_API_KEY": {
                      "isOptional": false,
                      "description": "Fine-tuning only. Shared secret also set in the Modal secret overmind-inference.",
                      "defaultValue": "not-configured"
                    },
                    "INFERENCE_API_URL": {
                      "isOptional": false,
                      "description": "Fine-tuning only. The endpoint printed by modal deploy.",
                      "defaultValue": "not-configured"
                    },
                    "MODAL_ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Modal environment for training and serving.",
                      "defaultValue": "overmind"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "FINETUNING_BACKEND": {
                      "isOptional": false,
                      "description": "Upstream accepts only modal.",
                      "defaultValue": "modal"
                    },
                    "MODAL_TOKEN_SECRET": {
                      "isOptional": false,
                      "description": "Fine-tuning only. Modal token secret.",
                      "defaultValue": "not-configured"
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": false,
                      "description": "Required. Every judge, eval, trace score and optimiser call goes through OpenRouter. Get one at https://openrouter.ai/keys",
                      "defaultValue": "{{OPENROUTER_API_KEY}}"
                    },
                    "OVERMIND_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL of this deployment. Change it if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DJANGO_ALLOWED_HOSTS": {
                      "isOptional": false,
                      "description": "Hostnames Django answers. Add a custom domain here.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}},healthcheck.railway.app,localhost,127.0.0.1"
                    },
                    "FIELD_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored provider credentials. Never change it after first boot.",
                      "defaultValue": "{{FIELD_ENCRYPTION_KEY}}"
                    },
                    "OVERMIND_OPEN_SIGNUP": {
                      "isOptional": false,
                      "description": "The first account to sign in becomes the only one. Invite teammates from a project, or set true to let anyone with the URL create an account.",
                      "defaultValue": "false"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Fine-tuning only. S3 checkpoint archive.",
                      "defaultValue": "not-configured"
                    },
                    "CELERY_RESULT_BACKEND": {
                      "isOptional": false,
                      "description": "Task results.",
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "DJANGO_CORS_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "The Console is same-origin; kept explicit for clarity.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "25e9f275-e134-4fba-9d60-ade29dd95910": {
                      "mountPath": "/data"
                    }
                  }
                },
                "65969166-9724-4d1d-bfb9-c27da55d84bf": {
                  "icon": "https://devicons.railway.app/i/docker.svg",
                  "name": "Sandbox",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"cd /code && exec setpriv --reuid=65534 --regid=65534 --clear-groups python -m sandbox --host ::\"",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/overmind-railway:v0.1.18-r2"
                  },
                  "variables": {
                    "SANDBOX_TOKEN": {
                      "isOptional": false,
                      "description": "Bearer token Overmind uses to call the sandbox.",
                      "defaultValue": "{{SANDBOX_TOKEN}}"
                    },
                    "SANDBOX_OCR_WORKERS": {
                      "isOptional": false,
                      "description": "Parallel OCR workers for scanned documents.",
                      "defaultValue": "2"
                    },
                    "SANDBOX_MEMORY_BYTES": {
                      "isOptional": false,
                      "description": "Per-run memory cap in bytes; 0 means none (upstream default).",
                      "defaultValue": "0"
                    },
                    "SANDBOX_ALLOW_SHARED_UID": {
                      "isOptional": false,
                      "description": "Runs share one unprivileged uid; Railway cannot grant the ptrace capability per-run uids need.",
                      "defaultValue": "1"
                    }
                  }
                },
                "8af53df4-42e5-47ed-aa03-ec9054681423": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec docker-entrypoint.sh redis-server --requirepass \\\"$REDIS_PASSWORD\\\"\"",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "redis:7.4.2"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  }
                },
                "e873209c-2e25-4524-86ed-771b554a01e6": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"C=/var/lib/postgresql/data/certs; mkdir -p $C && [ -s $C/server.key ] || openssl req -new -x509 -days 3650 -nodes -subj /CN=overmind-postgres -keyout $C/server.key -out $C/server.crt 2>/dev/null; chown -R postgres:postgres $C && chmod 600 $C/server.key && exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=$C/server.crt -c ssl_key_file=$C/server.key\"",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.1-pg16-bookworm"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name.",
                      "defaultValue": "overmind"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user.",
                      "defaultValue": "overmind"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "548db0fb-2fbe-4c72-9791-4d2df8c4bab8": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Overmind",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-27T10:14:46.328Z",
  "generator_version": "0.1.0"
}
