{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5a4945a5-72b3-407b-8699-308606b38386",
    "slug": "ai-coding-workstation-claude-code-codex-",
    "name": "AI Coding Workstation (Claude Code, Codex, Gemini CLI)",
    "description": "Browser VS Code and terminal with AI coding CLIs and a persistent home.",
    "url": "https://railway.com/deploy/ai-coding-workstation-claude-code-codex-",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/ai-coding-workstation-railway"
    }
  },
  "services": [
    {
      "name": "Workstation",
      "source": {
        "repo": "https://github.com/baranberkay96/ai-coding-workstation-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home",
      "tcp_ports": [
        2222
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Workstation",
      "description": "Time zone for shells and tools (e.g. Europe/Istanbul).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Workstation",
      "description": "Port code-server listens on; the public domain targets it.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PASSWORD",
      "service": "Workstation",
      "description": "Login password for the browser IDE (code-server). Generated at deploy; copy it from this variable. Minimum 12 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SSH_PORT",
      "service": "Workstation",
      "description": "Port sshd listens on inside the container; the TCP proxy targets it.",
      "secret": false,
      "strategy": "default",
      "default": "2222"
    },
    {
      "key": "SSH_PASSWORD",
      "service": "Workstation",
      "description": "Password for SSH as user 'coder' through the TCP proxy. Clear it to allow key-only SSH; with no password and no keys, sshd is not started.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Workstation",
      "description": "Grace period for code-server and running CLIs to exit cleanly on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ai-coding-workstation-claude-code-codex-"
      }
    },
    "cli": "railway deploy --template ai-coding-workstation-claude-code-codex-",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5a4945a5-72b3-407b-8699-308606b38386",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "23e63710-5d5f-5570-96c1-ef7d9f86c05b": {
                  "icon": "https://raw.githubusercontent.com/coder/code-server/main/src/browser/media/pwa-icon-192.png",
                  "name": "Workstation",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/ai-coding-workstation-railway",
                    "branch": "main",
                    "rootDirectory": "/services/workstation"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Time zone for shells and tools (e.g. Europe/Istanbul).",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Port code-server listens on; 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": ""
                    },
                    "PASSWORD": {
                      "isOptional": true,
                      "description": "Login password for the browser IDE (code-server). Generated at deploy; copy it from this variable. Minimum 12 characters.",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "SSH_PORT": {
                      "isOptional": true,
                      "description": "Port sshd listens on inside the container; the TCP proxy targets it.",
                      "defaultValue": "2222"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "Optional GitHub token for gh and HTTPS git (configured as git credential helper at start).",
                      "defaultValue": ""
                    },
                    "SSH_PASSWORD": {
                      "isOptional": true,
                      "description": "Password for SSH as user 'coder' through the TCP proxy. Clear it to allow key-only SSH; with no password and no keys, sshd is not started.",
                      "defaultValue": "{{SSH_PASSWORD}}"
                    },
                    "GIT_USER_NAME": {
                      "isOptional": true,
                      "description": "Optional git user.name for commits.",
                      "defaultValue": ""
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Gemini CLI uses it instead of a Google login.",
                      "defaultValue": ""
                    },
                    "GIT_USER_EMAIL": {
                      "isOptional": true,
                      "description": "Optional git user.email for commits.",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Codex CLI uses it instead of a ChatGPT login (codex login --device-auth).",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Claude Code uses it instead of a Claude.ai login. Leave empty to log in with your Pro/Max subscription.",
                      "defaultValue": ""
                    },
                    "OPENROUTER_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets OpenCode use OpenRouter models.",
                      "defaultValue": ""
                    },
                    "SSH_AUTHORIZED_KEYS": {
                      "isOptional": true,
                      "description": "Optional SSH public keys (one per line) allowed to log in as 'coder'. Keys you add to ~/.ssh/authorized_keys also persist.",
                      "defaultValue": ""
                    },
                    "WORKSTATION_ENV_PASSTHROUGH": {
                      "isOptional": true,
                      "description": "Optional comma-separated names of extra variables to expose in SSH sessions (the browser terminal sees all variables).",
                      "defaultValue": ""
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Grace period for code-server and running CLIs to exit cleanly on redeploy.",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "2222": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "34291808-8dfe-5389-98d1-acbccab52257": {
                      "mountPath": "/home"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Workstation",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T14:38:03.403Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8fd5296ae1244b779096",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 219,
    "typical_build_seconds": 141,
    "typical_start_seconds": 10,
    "slowest_service": "Workstation"
  }
}
