{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4f4b8b5c-4fd2-46c9-a246-ca9bd3a34d43",
    "slug": "codex-cli-terminal-and-browser",
    "name": "Codex CLI - Terminal and Browser",
    "description": "Run the OpenAI Codex CLI on a persistent Railway box, TUI or browser",
    "url": "https://railway.com/deploy/codex-cli-terminal-and-browser",
    "upstream": {
      "repo_url": "https://github.com/yuting1214/codex-railway"
    }
  },
  "services": [
    {
      "name": "codex",
      "source": {
        "repo": "https://github.com/yuting1214/codex-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/workspace",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CODEX_WEB_PASSWORD",
      "service": "codex",
      "description": "Provide a value for CODEX_WEB_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CODEX_WEB_USERNAME",
      "service": "codex",
      "description": "Provide a value for CODEX_WEB_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "codex"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "codex-cli-terminal-and-browser"
      }
    },
    "cli": "railway deploy --template codex-cli-terminal-and-browser",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4f4b8b5c-4fd2-46c9-a246-ca9bd3a34d43",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "274d4341-7f51-4891-874d-f6148f295693": {
                  "icon": null,
                  "name": "codex",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/yuting1214/codex-railway",
                    "rootDirectory": "/codex"
                  },
                  "variables": {
                    "CODEX_WEB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{CODEX_WEB_PASSWORD}}"
                    },
                    "CODEX_WEB_USERNAME": {
                      "isOptional": false,
                      "defaultValue": "codex"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "274d4341-7f51-4891-874d-f6148f295693": {
                      "mountPath": "/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:26:39.057Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_77d2c1f77e91453e81f3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 147,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "codex"
  }
}
