{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8bc5b9da-482f-4d68-b825-a036029651f7",
    "slug": "codewhale",
    "name": "Codewhale | Cloud Coding Agent (Web Terminal + SSH)",
    "description": "Codewhale coding agent, git, gh, Node, Python. Browser terminal + SSH.",
    "url": "https://railway.com/deploy/codewhale",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/codewhale-railway"
    }
  },
  "services": [
    {
      "name": "codewhale",
      "source": {
        "repo": "https://github.com/nomideusz/codewhale-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/root",
      "tcp_ports": [
        22
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "codewhale",
      "description": "Time zone inside the box.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "codewhale",
      "description": "Port of the browser terminal. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "7681"
    },
    {
      "key": "WEB_USER",
      "service": "codewhale",
      "description": "Username for the browser terminal login.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "WEB_PASSWORD",
      "service": "codewhale",
      "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": "codewhale",
      "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": "codewhale"
      }
    },
    "cli": "railway deploy --template codewhale",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8bc5b9da-482f-4d68-b825-a036029651f7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "739824b0-fb47-4a8e-9a16-c254f75e14fb": {
                  "icon": "https://raw.githubusercontent.com/Hmbown/Codewhale/main/brand/codewhalemarkfinal.png",
                  "name": "codewhale",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/codewhale-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": ""
                    },
                    "DEEPSEEK_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. DeepSeek API key (platform.deepseek.com), Codewhale's default provider. Or connect any provider later with /provider.",
                      "defaultValue": ""
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. OpenRouter API key for hundreds of models through one key.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7681": {
                        "port": 7681
                      }
                    }
                  },
                  "volumeMounts": {
                    "739824b0-fb47-4a8e-9a16-c254f75e14fb": {
                      "mountPath": "/root"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "codewhale",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T08:04:10.401Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e660c16f5efe4203b088",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 82,
    "typical_start_seconds": 20,
    "slowest_service": "codewhale"
  }
}
