{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aa76aff9-336f-4b72-8b53-acb1bbfa3553",
    "slug": "opencode-server-verified-v11441-pin-newe",
    "name": "OpenCode Server - Verified v1.14.41 Pin (Newer Versions Hang)",
    "description": "Self-hosted OpenCode with Basic Auth - version pin verified, not stale",
    "url": "https://railway.com/deploy/opencode-server-verified-v11441-pin-newe",
    "upstream": {
      "repo_url": "https://github.com/ak40u/opencode-railway-template"
    }
  },
  "services": [
    {
      "name": "opencode",
      "source": {
        "repo": "https://github.com/ak40u/opencode-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LOG_LEVEL",
      "service": "opencode",
      "description": "Provide a value for LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "SOURCE_MODE",
      "service": "opencode",
      "description": "if build from source",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENCODE_REF",
      "service": "opencode",
      "description": "version of opencode - pinned to a verified-working release, see README before changing",
      "secret": false,
      "strategy": "default",
      "default": "v1.14.41"
    },
    {
      "key": "ENABLE_MONITOR",
      "service": "opencode",
      "description": "Provide a value for ENABLE_MONITOR.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENCODE_SERVER_PASSWORD",
      "service": "opencode",
      "description": "default username: opencode",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENCODE_SERVER_USERNAME",
      "service": "opencode",
      "description": "Provide a value for OPENCODE_SERVER_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "opencode"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opencode-server-verified-v11441-pin-newe"
      }
    },
    "cli": "railway deploy --template opencode-server-verified-v11441-pin-newe",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aa76aff9-336f-4b72-8b53-acb1bbfa3553",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a79e24b7-a88c-41ce-b8b5-54f954b7e383": {
                  "icon": null,
                  "name": "opencode",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ak40u/opencode-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "INFO"
                    },
                    "SOURCE_MODE": {
                      "isOptional": true,
                      "description": "if build from source",
                      "defaultValue": "true"
                    },
                    "OPENCODE_REF": {
                      "isOptional": true,
                      "description": "version of opencode - pinned to a verified-working release, see README before changing",
                      "defaultValue": "v1.14.41"
                    },
                    "ENABLE_MONITOR": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "OPENCODE_SERVER_PASSWORD": {
                      "isOptional": false,
                      "description": "default username: opencode",
                      "defaultValue": "{{OPENCODE_SERVER_PASSWORD}}"
                    },
                    "OPENCODE_SERVER_USERNAME": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "opencode"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a79e24b7-a88c-41ce-b8b5-54f954b7e383": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T00:02:40.379Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T07:02:32.944Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_155af283140e4af58dee",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 385,
    "typical_build_seconds": 272,
    "typical_start_seconds": 61,
    "slowest_service": "opencode"
  }
}
