{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e885e1cd-9833-46ec-9688-49a38ca201c5",
    "slug": "openbot-lite-1",
    "name": "OpenBot Lite",
    "description": "OpenBot Lite: persistent AI coworker bots (AG-UI) with vault + audit log",
    "url": "https://railway.com/deploy/openbot-lite-1",
    "upstream": {
      "repo_url": "https://github.com/mc9max/openbot-lite"
    }
  },
  "services": [
    {
      "name": "openbot-lite",
      "source": {
        "repo": "https://github.com/mc9max/openbot-lite"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "openbot-lite",
      "description": "HTTP listen port. Must match the EXPOSE and Railway domain port.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "openbot-lite",
      "description": "OpenAI (or any OpenAI-compatible gateway) API key that the built-in bots use. Replace with a real key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MANAGED_AGENT_TOKEN",
      "service": "openbot-lite",
      "description": "Bearer token the external AG-UI harness presents when this server calls tools back. Only needed with MANAGED_AGENT_AG_UI_URL.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INTELLIGENCE_API_KEY",
      "service": "openbot-lite",
      "description": "CopilotKit Intelligence project runtime key (cpk-...). Create one at https://intelligence.copilotkit.ai (API Keys) or via the CopilotKit CLI.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INTELLIGENCE_API_URL",
      "service": "openbot-lite",
      "description": "CopilotKit Intelligence platform API (durable threads, memory, history).",
      "secret": false,
      "strategy": "default",
      "default": "https://api.intelligence.copilotkit.ai"
    },
    {
      "key": "INTELLIGENCE_GATEWAY_WS_URL",
      "service": "openbot-lite",
      "description": "CopilotKit Intelligence realtime gateway (WebSocket) for live agent events.",
      "secret": false,
      "strategy": "default",
      "default": "wss://realtime.intelligence.copilotkit.ai"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openbot-lite-1"
      }
    },
    "cli": "railway deploy --template openbot-lite-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e885e1cd-9833-46ec-9688-49a38ca201c5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0998a770-97b0-4ad3-afce-43020819893e": {
                  "icon": null,
                  "name": "openbot-lite",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/openbot-lite",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port. Must match the EXPOSE and Railway domain port.",
                      "defaultValue": "3001"
                    },
                    "BOT_MODEL": {
                      "isOptional": true,
                      "description": "Optional. Override the built-in bots' model. Empty = provider defaults (gpt-5.5 / claude-sonnet-4-5 / gemini-2.5-flash).",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "OpenAI (or any OpenAI-compatible gateway) API key that the built-in bots use. Replace with a real key.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "OPENAI_BASE_URL": {
                      "isOptional": true,
                      "description": "Optional. Empty = call OpenAI directly. Set to point at any OpenAI-compatible endpoint (vLLM, Ollama, LiteLLM).",
                      "defaultValue": ""
                    },
                    "MANAGED_AGENT_TOKEN": {
                      "description": "Bearer token the external AG-UI harness presents when this server calls tools back. Only needed with MANAGED_AGENT_AG_UI_URL.",
                      "defaultValue": "{{MANAGED_AGENT_TOKEN}}"
                    },
                    "INTELLIGENCE_API_KEY": {
                      "isOptional": false,
                      "description": "CopilotKit Intelligence project runtime key (cpk-...). Create one at https://intelligence.copilotkit.ai (API Keys) or via the CopilotKit CLI.",
                      "defaultValue": "{{INTELLIGENCE_API_KEY}}"
                    },
                    "INTELLIGENCE_API_URL": {
                      "isOptional": false,
                      "description": "CopilotKit Intelligence platform API (durable threads, memory, history).",
                      "defaultValue": "https://api.intelligence.copilotkit.ai"
                    },
                    "MANAGED_AGENT_AG_UI_URL": {
                      "isOptional": true,
                      "description": "Optional. Endpoint of an external AG-UI harness (LangGraph / Mastra / CrewAI) to mount alongside the built-in bots.",
                      "defaultValue": ""
                    },
                    "INTELLIGENCE_GATEWAY_WS_URL": {
                      "isOptional": false,
                      "description": "CopilotKit Intelligence realtime gateway (WebSocket) for live agent events.",
                      "defaultValue": "wss://realtime.intelligence.copilotkit.ai"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  },
                  "volumeMounts": {
                    "0998a770-97b0-4ad3-afce-43020819893e": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-29T22:14:51.071Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-29T20:14:46.264Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_460d3f6ff754459fab67",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 371,
    "typical_build_seconds": 226,
    "typical_start_seconds": 127,
    "slowest_service": "openbot-lite"
  }
}
