{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fa88d4e2-5ae0-42b9-9365-bc4f29cadff9",
    "slug": "openwork",
    "name": "OpenWork",
    "description": "OpenWork w/ OpenCode, persistent storage, remote access. openwork open work",
    "url": "https://railway.com/deploy/openwork",
    "upstream": {
      "repo_url": "https://github.com/XavTo/openwork"
    }
  },
  "services": [
    {
      "name": "openwork",
      "source": {
        "repo": "https://github.com/XavTo/openwork"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "openwork",
      "description": "Public port used by Railway to route traffic.",
      "secret": false,
      "strategy": "default",
      "default": "8787"
    },
    {
      "key": "OPENWORK_PORT",
      "service": "openwork",
      "description": "Internal port used by the OpenWork server.",
      "secret": false,
      "strategy": "default",
      "default": "8787"
    },
    {
      "key": "OPENWORK_TOKEN",
      "service": "openwork",
      "description": "Client token used by OpenWork apps and collaborators.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENWORK_HOST_TOKEN",
      "service": "openwork",
      "description": "Owner token used for approvals and token management.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENWORK_TOKEN_STORE",
      "service": "openwork",
      "description": "Persistent storage file for scoped access tokens.",
      "secret": true,
      "strategy": "default",
      "default": "/data/openwork-orchestrator/tokens.json"
    },
    {
      "key": "OPENWORK_CORS_ORIGINS",
      "service": "openwork",
      "description": "Origins allowed to access the OpenWork API.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "OPENWORK_APPROVAL_MODE",
      "service": "openwork",
      "description": "Requires manual approval before privileged agent actions.",
      "secret": false,
      "strategy": "default",
      "default": "manual"
    },
    {
      "key": "OPENWORK_SERVER_CONFIG",
      "service": "openwork",
      "description": "Persistent OpenWork server configuration file.",
      "secret": false,
      "strategy": "default",
      "default": "/data/openwork-orchestrator/server.json"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "openwork",
      "description": "Path to the Railway-compatible Dockerfile.",
      "secret": false,
      "strategy": "default",
      "default": "packaging/docker/Dockerfile"
    },
    {
      "key": "OPENWORK_APPROVAL_TIMEOUT_MS",
      "service": "openwork",
      "description": "Approval request timeout in milliseconds.",
      "secret": false,
      "strategy": "default",
      "default": "30000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openwork"
      }
    },
    "cli": "railway deploy --template openwork",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fa88d4e2-5ae0-42b9-9365-bc4f29cadff9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e4612cf2-e406-4988-9b6d-7cd489c73bb2": {
                  "icon": "https://bc.xavto.fr/xavto/dark.svg",
                  "name": "openwork",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/XavTo/openwork",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public port used by Railway to route traffic.",
                      "defaultValue": "8787"
                    },
                    "OPENWORK_PORT": {
                      "isOptional": false,
                      "description": "Internal port used by the OpenWork server.",
                      "defaultValue": "8787"
                    },
                    "OPENWORK_TOKEN": {
                      "isOptional": false,
                      "description": "Client token used by OpenWork apps and collaborators.",
                      "defaultValue": "{{OPENWORK_TOKEN}}"
                    },
                    "OPENWORK_HOST_TOKEN": {
                      "isOptional": false,
                      "description": "Owner token used for approvals and token management.",
                      "defaultValue": "{{OPENWORK_HOST_TOKEN}}"
                    },
                    "OPENWORK_TOKEN_STORE": {
                      "isOptional": false,
                      "description": "Persistent storage file for scoped access tokens.",
                      "defaultValue": "/data/openwork-orchestrator/tokens.json"
                    },
                    "OPENWORK_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Origins allowed to access the OpenWork API.",
                      "defaultValue": "*"
                    },
                    "OPENWORK_APPROVAL_MODE": {
                      "isOptional": false,
                      "description": "Requires manual approval before privileged agent actions.",
                      "defaultValue": "manual"
                    },
                    "OPENWORK_SERVER_CONFIG": {
                      "isOptional": false,
                      "description": "Persistent OpenWork server configuration file.",
                      "defaultValue": "/data/openwork-orchestrator/server.json"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to the Railway-compatible Dockerfile.",
                      "defaultValue": "packaging/docker/Dockerfile"
                    },
                    "OPENWORK_APPROVAL_TIMEOUT_MS": {
                      "isOptional": false,
                      "description": "Approval request timeout in milliseconds.",
                      "defaultValue": "30000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8787": {
                        "port": 8787
                      }
                    }
                  },
                  "volumeMounts": {
                    "e4612cf2-e406-4988-9b6d-7cd489c73bb2": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:16:41.484Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_baf0a779ff1d4c9685e5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 93,
    "typical_start_seconds": 10,
    "slowest_service": "openwork"
  }
}
