{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f681f23a-7c5f-455b-b151-f3e6e82650b4",
    "slug": "opencode-webui-workspace",
    "name": "OpenCode WebUI Workspace",
    "description": "Free OpenCode LLM Agent for Python, NodeJS, Bun, Go, Rust safely YOLO!",
    "url": "https://railway.com/deploy/opencode-webui-workspace",
    "upstream": {
      "image": "ghcr.io/bon5co/opencode-webui-workspace@sha256:765ac3c4a90055cf1681baa57d97e47508eb5d104877ad3edd8f824ba14645eb"
    }
  },
  "services": [
    {
      "name": "opencode",
      "source": {
        "image": "ghcr.io/bon5co/opencode-webui-workspace@sha256:765ac3c4a90055cf1681baa57d97e47508eb5d104877ad3edd8f824ba14645eb"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/opencode/workspace",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "opencode",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4096"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "opencode",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "OPENCODE_SERVER_PASSWORD",
      "service": "opencode",
      "description": "Provide a value for OPENCODE_SERVER_PASSWORD.",
      "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": "sloth"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opencode-webui-workspace"
      }
    },
    "cli": "railway deploy --template opencode-webui-workspace",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f681f23a-7c5f-455b-b151-f3e6e82650b4",
            "serializedConfig": {
              "services": {
                "c3d834c1-edd6-4b55-a524-25fccff7a6bb": {
                  "name": "opencode",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/opencode-webui-workspace@sha256:765ac3c4a90055cf1681baa57d97e47508eb5d104877ad3edd8f824ba14645eb"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "4096"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "OPENCODE_SERVER_PASSWORD": {
                      "defaultValue": "{{OPENCODE_SERVER_PASSWORD}}"
                    },
                    "OPENCODE_SERVER_USERNAME": {
                      "defaultValue": "sloth"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4096": {
                        "port": 4096
                      }
                    }
                  },
                  "volumeMounts": {
                    "c3d834c1-edd6-4b55-a524-25fccff7a6bb": {
                      "mountPath": "/home/opencode/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T10:14:41.946Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T20:14:35.499Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5e76ef9116cb495698f9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 104,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "opencode"
  }
}
