{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b14fef5e-ecca-4558-bfda-ab13e50559be",
    "slug": "ubuntu-2404-cloud-dev-box-ssh-claude-cod",
    "name": "Ubuntu 24.04 Cloud Dev Box (SSH + Claude Code)",
    "description": "Always-on Ubuntu box with SSH, tmux and AI coding CLIs on persistent disk.",
    "url": "https://railway.com/deploy/ubuntu-2404-cloud-dev-box-ssh-claude-cod",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/ubuntu-devbox-railway"
    }
  },
  "services": [
    {
      "name": "Dev Box",
      "source": {
        "repo": "https://github.com/baranberkay96/ubuntu-devbox-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home",
      "tcp_ports": [
        22
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Dev Box",
      "description": "Time zone for shells and tools, e.g. Europe/Istanbul.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Dev Box",
      "description": "HTTP port for the healthcheck, status page and web terminal; the public domain targets it.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SSH_PASSWORD",
      "service": "Dev Box",
      "description": "Password for SSH as user 'dev', generated at deploy. Clear it for key-only SSH (then set SSH_AUTHORIZED_KEYS). Minimum 12 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WEB_PASSWORD",
      "service": "Dev Box",
      "description": "Password (user 'dev') for the status page and web terminal on the public URL. Generated at deploy; only /healthz is public. Minimum 12 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WEB_TERMINAL",
      "service": "Dev Box",
      "description": "Browser terminal (ttyd) at /terminal/ behind WEB_PASSWORD. Set to false to keep only the status page.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Dev Box",
      "description": "Grace period for sshd, the web terminal and Caddy to stop cleanly on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-2404-cloud-dev-box-ssh-claude-cod"
      }
    },
    "cli": "railway deploy --template ubuntu-2404-cloud-dev-box-ssh-claude-cod",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b14fef5e-ecca-4558-bfda-ab13e50559be",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "68840331-94b1-5692-aaba-25e00ce302ec": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/ubuntu-linux.svg",
                  "name": "Dev Box",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/ubuntu-devbox-railway",
                    "branch": "main",
                    "rootDirectory": "/services/devbox"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Time zone for shells and tools, e.g. Europe/Istanbul.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "HTTP port for the healthcheck, status page and web terminal; the public domain targets it.",
                      "defaultValue": "8080"
                    },
                    "GIT_REPO": {
                      "isOptional": true,
                      "description": "Optional repository URL cloned once into ~/workspace on first start (private repos need GITHUB_TOKEN).",
                      "defaultValue": ""
                    },
                    "APT_PACKAGES": {
                      "isOptional": true,
                      "description": "Optional space-separated Ubuntu packages reinstalled in the background at every start (apt installs do not survive redeploys).",
                      "defaultValue": ""
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "Optional GitHub token for gh and HTTPS git (set up as git credential helper at start).",
                      "defaultValue": ""
                    },
                    "SSH_PASSWORD": {
                      "isOptional": true,
                      "description": "Password for SSH as user 'dev', generated at deploy. Clear it for key-only SSH (then set SSH_AUTHORIZED_KEYS). Minimum 12 characters.",
                      "defaultValue": "{{SSH_PASSWORD}}"
                    },
                    "WEB_PASSWORD": {
                      "isOptional": true,
                      "description": "Password (user 'dev') for the status page and web terminal on the public URL. Generated at deploy; only /healthz is public. Minimum 12 characters.",
                      "defaultValue": "{{WEB_PASSWORD}}"
                    },
                    "WEB_TERMINAL": {
                      "isOptional": true,
                      "description": "Browser terminal (ttyd) at /terminal/ behind WEB_PASSWORD. Set to false to keep only the status page.",
                      "defaultValue": "true"
                    },
                    "GIT_USER_NAME": {
                      "isOptional": true,
                      "description": "Optional git user.name for commits.",
                      "defaultValue": ""
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Gemini API key (Google AI Studio) for Gemini CLI; the simplest login on a remote box.",
                      "defaultValue": ""
                    },
                    "GIT_USER_EMAIL": {
                      "isOptional": true,
                      "description": "Optional git user.email for commits.",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. OpenAI API key for Codex CLI (alternative to `codex login --device-auth` with ChatGPT).",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Claude Code uses this Anthropic API key instead of a Claude subscription login.",
                      "defaultValue": ""
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets OpenCode use OpenRouter models. Other providers: run `opencode auth login`.",
                      "defaultValue": ""
                    },
                    "SSH_AUTHORIZED_KEYS": {
                      "isOptional": true,
                      "description": "Recommended. Your SSH public key(s) for user 'dev', one per line (several on one line also work). Keys added to ~/.ssh/authorized_keys persist too.",
                      "defaultValue": ""
                    },
                    "DEVBOX_ENV_PASSTHROUGH": {
                      "isOptional": true,
                      "description": "Optional comma-separated names of extra variables to expose in SSH and web terminal shells.",
                      "defaultValue": ""
                    },
                    "CLAUDE_CODE_OAUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. Long-lived Claude subscription token from `claude setup-token`, for headless use without the login prompt.",
                      "defaultValue": ""
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Grace period for sshd, the web terminal and Caddy to stop cleanly on redeploy.",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "b903c6b7-32b2-5aba-b43b-69a55dc80eb8": {
                      "mountPath": "/home"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Dev Box",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-19T22:14:48.327Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-19T22:09:37.384Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7c1481d9bca048f087f2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 282,
    "typical_build_seconds": 212,
    "typical_start_seconds": 21,
    "slowest_service": "Dev Box"
  }
}
