{
  "manifest_version": "1.0.0",
  "template": {
    "id": "df1be5ff-c0c0-405d-a29b-165760574200",
    "slug": "coddy",
    "name": "Coddy",
    "description": "AI agent with a web UI, OpenAI-compatible API, scheduler and remote mode",
    "url": "https://railway.com/deploy/coddy",
    "upstream": {
      "repo_url": "https://github.com/RockinPaul/coddy_railway_template"
    }
  },
  "services": [
    {
      "name": "coddy",
      "source": {
        "repo": "https://github.com/RockinPaul/coddy_railway_template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "coddy",
      "description": "Port the agent listens on; Railway's healthcheck and the public domain both use it. Leave it as it is.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CODDY_HTTP_TOKEN",
      "service": "coddy",
      "description": "Bearer token for the /v1 and /coddy APIs — use it with `coddy --remote` or any OpenAI-compatible client. Generated for this deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CODDY_HTTP_PASSWORD",
      "service": "coddy",
      "description": "Web UI sign-in password for the 'admin' account. Generated for this deployment; read it from the service variables afterwards. Nothing to fill in.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "coddy"
      }
    },
    "cli": "railway deploy --template coddy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "df1be5ff-c0c0-405d-a29b-165760574200",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d13c5048-c952-4100-bec3-54062bd866d9": {
                  "icon": null,
                  "name": "coddy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RockinPaul/coddy_railway_template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the agent listens on; Railway's healthcheck and the public domain both use it. Leave it as it is.",
                      "defaultValue": "8080"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Any OpenAI-compatible key; other providers can be added from the web UI after signing in.",
                      "defaultValue": ""
                    },
                    "CODDY_HTTP_TOKEN": {
                      "isOptional": false,
                      "description": "Bearer token for the /v1 and /coddy APIs — use it with `coddy --remote` or any OpenAI-compatible client. Generated for this deployment.",
                      "defaultValue": "{{CODDY_HTTP_TOKEN}}"
                    },
                    "CODDY_HTTP_PASSWORD": {
                      "isOptional": false,
                      "description": "Web UI sign-in password for the 'admin' account. Generated for this deployment; read it from the service variables afterwards. Nothing to fill in.",
                      "defaultValue": "{{CODDY_HTTP_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "d13c5048-c952-4100-bec3-54062bd866d9": {
                      "sizeMB": 5120,
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "coddy",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T22:14:40.394Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T20:05:02.733Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4f291516f59f4a89831e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 67,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "coddy"
  }
}
