{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ead025cc-2738-4282-abd4-c5c479fd7b51",
    "slug": "claude-code",
    "name": "Claude Code | Cloud Dev Box (Web Terminal + SSH)",
    "description": "Claude Code, git, gh, Node, Python. Browser terminal + SSH, home persists.",
    "url": "https://railway.com/deploy/claude-code",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/claude-code-railway"
    }
  },
  "services": [
    {
      "name": "claude-code",
      "source": {
        "repo": "https://github.com/nomideusz/claude-code-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/root",
      "tcp_ports": [
        22
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "claude-code",
      "description": "Time zone inside the box.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "claude-code",
      "description": "Port of the browser terminal. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "7681"
    },
    {
      "key": "WEB_USER",
      "service": "claude-code",
      "description": "Username for the browser terminal login.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "WEB_PASSWORD",
      "service": "claude-code",
      "description": "Password for the browser terminal login. This gates root access to the box - keep it strong.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ROOT_PASSWORD",
      "service": "claude-code",
      "description": "Password for `ssh root@<tcp-proxy-host> -p <port>`. Clear it to allow key-only SSH login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "claude-code"
      }
    },
    "cli": "railway deploy --template claude-code",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ead025cc-2738-4282-abd4-c5c479fd7b51",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a346997d-e6dc-4be9-96d5-05ecebba0667": {
                  "icon": "https://devicons.railway.com/i/ubuntu.svg",
                  "name": "claude-code",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/claude-code-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone inside the box.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the browser terminal. Do not change.",
                      "defaultValue": "7681"
                    },
                    "GH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. GitHub token so `gh` and git pushes work without an interactive login.",
                      "defaultValue": ""
                    },
                    "WEB_USER": {
                      "isOptional": false,
                      "description": "Username for the browser terminal login.",
                      "defaultValue": "admin"
                    },
                    "WEB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the browser terminal login. This gates root access to the box - keep it strong.",
                      "defaultValue": "{{WEB_PASSWORD}}"
                    },
                    "ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for `ssh root@<tcp-proxy-host> -p <port>`. Clear it to allow key-only SSH login.",
                      "defaultValue": "{{ROOT_PASSWORD}}"
                    },
                    "AUTHORIZED_KEYS": {
                      "isOptional": true,
                      "description": "SSH public key(s), one per line, for key-based root login.",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Anthropic API key, if you prefer pay-as-you-go over a subscription login.",
                      "defaultValue": ""
                    },
                    "CLAUDE_CODE_OAUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. Token from `claude setup-token` on your own machine (Pro/Max subscription). Leave empty to run /login inside the box instead.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7681": {
                        "port": 7681
                      }
                    }
                  },
                  "volumeMounts": {
                    "a346997d-e6dc-4be9-96d5-05ecebba0667": {
                      "mountPath": "/root"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "claude-code",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "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-08T00:08:54.391Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f3fefcb53c8946cfbf78",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 139,
    "typical_build_seconds": 82,
    "typical_start_seconds": 40,
    "slowest_service": "claude-code"
  }
}
