{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1539449d-0904-4471-8395-0027eee93d6f",
    "slug": "opencode-or-just-updated-ai-coding-agent",
    "name": "OpenCode | (Just Updated) AI Coding Agent Server for AI Agents, Password Generated",
    "description": "OpenCode coding agent API + web UI; generated login, free model, no key",
    "url": "https://railway.com/deploy/opencode-or-just-updated-ai-coding-agent",
    "upstream": {
      "image": "ghcr.io/bon5co/opencode-2-railway@sha256:5f5e6f7650f8d40e891508bcc58e91eb32ba3e64ababd5931eccfc21631de16e"
    }
  },
  "services": [
    {
      "name": "opencode",
      "source": {
        "image": "ghcr.io/bon5co/opencode-2-railway@sha256:5f5e6f7650f8d40e891508bcc58e91eb32ba3e64ababd5931eccfc21631de16e"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "OPENCODE_URL",
      "service": "opencode",
      "description": "Provide a value for OPENCODE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OPENCODE_PRIVATE_URL",
      "service": "opencode",
      "description": "Provide a value for OPENCODE_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENCODE_SERVER_PASSWORD",
      "service": "opencode",
      "description": "Provide a value for OPENCODE_SERVER_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opencode-or-just-updated-ai-coding-agent"
      }
    },
    "cli": "railway deploy --template opencode-or-just-updated-ai-coding-agent",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1539449d-0904-4471-8395-0027eee93d6f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "54b5e845-80d7-4304-8a03-31288a0d9023": {
                  "icon": null,
                  "name": "opencode",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/opencode-2-railway@sha256:5f5e6f7650f8d40e891508bcc58e91eb32ba3e64ababd5931eccfc21631de16e"
                  },
                  "variables": {
                    "OPENCODE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OPENCODE_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "OPENCODE_SERVER_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{OPENCODE_SERVER_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "54b5e845-80d7-4304-8a03-31288a0d9023": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "opencode",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-20T16:14:54.346Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-20T16:17:43.773Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_71fd4621e9014131ae4c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 57,
    "typical_build_seconds": 0,
    "typical_start_seconds": 40,
    "slowest_service": "opencode"
  }
}
