{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ef89b339-0737-4186-933b-e3b93520d0e6",
    "slug": "tabby",
    "name": "Tabby | Open-Source AI Code Assistant on Railway",
    "description": "Self Host Tabby. AI code completions, chat, and codebase search",
    "url": "https://railway.com/deploy/tabby",
    "upstream": {
      "image": "tabbyml/tabby"
    }
  },
  "services": [
    {
      "name": "Tabby",
      "source": {
        "image": "tabbyml/tabby"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Tabby",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TABBY_ROOT",
      "service": "Tabby",
      "description": "Root data directory on volume",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Tabby",
      "description": "Run as root for volume access",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "TABBY_WEBSERVER_JWT_TOKEN_SECRET",
      "service": "Tabby",
      "description": "JWT signing key (UUID format)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tabby"
      }
    },
    "cli": "railway deploy --template tabby",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ef89b339-0737-4186-933b-e3b93520d0e6",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e39fca55-57c5-43da-9754-55550ab11e45": {
                  "icon": "https://media.githubusercontent.com/media/TabbyML/tabby/main/clients/vscode/assets/tabby.png",
                  "name": "Tabby",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export LD_LIBRARY_PATH=/usr/local/cuda-12.4/compat:$LD_LIBRARY_PATH && /opt/tabby/bin/tabby-cpu serve --model StarCoder-1B --chat-model Qwen2-1.5B-Instruct --device cpu --host 0.0.0.0 --port 8080'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "tabbyml/tabby"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8080"
                    },
                    "TABBY_ROOT": {
                      "isOptional": false,
                      "description": "Root data directory on volume",
                      "defaultValue": "/data"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root for volume access",
                      "defaultValue": "0"
                    },
                    "TABBY_WEBSERVER_JWT_TOKEN_SECRET": {
                      "isOptional": false,
                      "description": "JWT signing key (UUID format)",
                      "defaultValue": "{{TABBY_WEBSERVER_JWT_TOKEN_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "e39fca55-57c5-43da-9754-55550ab11e45": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T13:51:19.841Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7c3543fd11f545c28f28",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 65,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Tabby"
  }
}
