{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8818d614-0fd0-4dc3-b143-a2bf9d41198f",
    "slug": "pi",
    "name": "pi",
    "description": "Run the Pi AI coding agent on Railway — browser terminal or SSH",
    "url": "https://railway.com/deploy/pi",
    "upstream": {
      "repo_url": "https://github.com/yuting1214/pi-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "pi",
      "source": {
        "repo": "https://github.com/yuting1214/pi-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/workspace",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "WEB_PASSWORD",
      "service": "pi",
      "description": "Provide a value for WEB_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WEB_USERNAME",
      "service": "pi",
      "description": "Provide a value for WEB_USERNAME.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pi"
      }
    },
    "cli": "railway deploy --template pi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8818d614-0fd0-4dc3-b143-a2bf9d41198f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1a06706c-2a7f-4353-9e16-4f12e548b706": {
                  "icon": null,
                  "name": "pi",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/yuting1214/pi-railway",
                    "rootDirectory": "pi"
                  },
                  "variables": {
                    "WEB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{WEB_PASSWORD}}"
                    },
                    "WEB_USERNAME": {
                      "isOptional": false,
                      "defaultValue": "{{WEB_USERNAME}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "1a06706c-2a7f-4353-9e16-4f12e548b706": {
                      "mountPath": "/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0"
}
