{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bc2ad634-ed27-4973-9145-a867800e4d97",
    "slug": "openvscode-server",
    "name": "OpenVSCode Server",
    "description": "OpenVSCode Server 1.105: VS Code in the browser, token-protected.",
    "url": "https://railway.com/deploy/openvscode-server",
    "upstream": {
      "image": "gitpod/openvscode-server:1.105.1"
    }
  },
  "services": [
    {
      "name": "openvscode",
      "source": {
        "image": "gitpod/openvscode-server:1.105.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/workspace",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "openvscode",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "OPENVSCODE_URL",
      "service": "openvscode",
      "description": "Provide a value for OPENVSCODE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "openvscode",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "OPENVSCODE_TOKEN",
      "service": "openvscode",
      "description": "Provide a value for OPENVSCODE_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "openvscode",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openvscode-server"
      }
    },
    "cli": "railway deploy --template openvscode-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bc2ad634-ed27-4973-9145-a867800e4d97",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "636646b6-59bf-43ba-9457-705cc620cb6f": {
                  "icon": "https://raw.githubusercontent.com/gitpod-io/openvscode-server/openvscode-server-v1.109.5/src/vs/workbench/browser/media/code-icon.svg",
                  "name": "openvscode",
                  "deploy": {
                    "startCommand": "sh -c 'exec ${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server --host :: --port 3000 --connection-token \"$OPENVSCODE_TOKEN\" --default-folder /home/workspace'",
                    "healthcheckPath": "/version",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gitpod/openvscode-server:1.105.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "3000"
                    },
                    "OPENVSCODE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/?tkn=${{OPENVSCODE_TOKEN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "OPENVSCODE_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{OPENVSCODE_TOKEN}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "636646b6-59bf-43ba-9457-705cc620cb6f": {
                      "mountPath": "/home/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "openvscode",
      "method": "GET",
      "path": "/version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-24T22:14:48.880Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-24T19:42:12.375Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d996b42f34804983ac98",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 39,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "openvscode"
  }
}
