{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0e3d1760-2495-4145-b034-e0ec3009ec27",
    "slug": "openviking",
    "name": "OpenViking",
    "description": "Context database for AI agents with persistent semantic storage",
    "url": "https://railway.com/deploy/openviking",
    "upstream": {
      "image": "ghcr.io/volcengine/openviking:latest"
    }
  },
  "services": [
    {
      "name": "OpenViking",
      "source": {
        "image": "ghcr.io/volcengine/openviking:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/.openviking",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "OpenViking",
      "description": "Server port. Railway's edge proxies HTTPS to this port.",
      "secret": false,
      "strategy": "default",
      "default": "1933"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "OpenViking",
      "description": "REQUIRED. Your OpenAI API key, used for embeddings and the VLM.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENVIKING_WITH_BOT",
      "service": "OpenViking",
      "description": "Keep 1 to enable the built-in bot. Set 0 only when you explicitly want to run the API server without it.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "OPENVIKING_CONF_CONTENT",
      "service": "OpenViking",
      "description": "Initial server configuration. Used only when ov.conf does not exist; after first startup, edit the volume-backed ov.conf or delete it before redeploying.",
      "secret": false,
      "strategy": "default",
      "default": "{\n  \"storage\": {\n    \"workspace\": \"/app/.openviking/data\",\n    \"vectordb\": {\n      \"name\": \"context\",\n      \"backend\": \"local\",\n      \"project\": \"default\"\n    },\n    \"agfs\": {\n      \"backend\": \"local\",\n      \"timeout\": 10\n    }\n  },\n  \"server\": {\n    \"host\": \"0.0.0.0\",\n    \"port\": 1933,\n    \"workers\": 1,\n    \"root_api_key\": \"${OPENVIKING_ROOT_API_KEY}\",\n    \"cors_origins\": [\n      \"*\"\n    ]\n  },\n  \"embedding\": {\n    \"dense\": {\n      \"provider\": \"openai\",\n      \"api_base\": \"https://api.openai.com/v1\",\n      \"api_key\": \"${OPENAI_API_KEY}\",\n      \"model\": \"text-embedding-3-small\",\n      \"dimension\": 1536\n    }\n  },\n  \"vlm\": {\n    \"provider\": \"openai\",\n    \"api_base\": \"https://api.openai.com/v1\",\n    \"api_key\": \"${OPENAI_API_KEY}\",\n    \"model\": \"gpt-5.6-terra\"\n  }\n}"
    },
    {
      "key": "OPENVIKING_ROOT_API_KEY",
      "service": "OpenViking",
      "description": "Auto-generated root API key. Paste it into Studio settings to bootstrap accounts and users.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openviking"
      }
    },
    "cli": "railway deploy --template openviking",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0e3d1760-2495-4145-b034-e0ec3009ec27",
            "serializedConfig": {
              "services": {
                "298907a4-8a5d-4d28-b84a-d0939a840869": {
                  "icon": "https://cdn.jsdelivr.net/gh/volcengine/OpenViking@e302f0450f9ece85f96785e79363a42dba5bd7e0/docs/images/ov-logo-square.png",
                  "name": "OpenViking",
                  "deploy": {
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/volcengine/openviking:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Server port. Railway's edge proxies HTTPS to this port.",
                      "defaultValue": "1933"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "REQUIRED. Your OpenAI API key, used for embeddings and the VLM.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "OPENVIKING_WITH_BOT": {
                      "isOptional": false,
                      "description": "Keep 1 to enable the built-in bot. Set 0 only when you explicitly want to run the API server without it.",
                      "defaultValue": "1"
                    },
                    "OPENVIKING_CONF_CONTENT": {
                      "isOptional": false,
                      "description": "Initial server configuration. Used only when ov.conf does not exist; after first startup, edit the volume-backed ov.conf or delete it before redeploying.",
                      "defaultValue": "{\n  \"storage\": {\n    \"workspace\": \"/app/.openviking/data\",\n    \"vectordb\": {\n      \"name\": \"context\",\n      \"backend\": \"local\",\n      \"project\": \"default\"\n    },\n    \"agfs\": {\n      \"backend\": \"local\",\n      \"timeout\": 10\n    }\n  },\n  \"server\": {\n    \"host\": \"0.0.0.0\",\n    \"port\": 1933,\n    \"workers\": 1,\n    \"root_api_key\": \"${OPENVIKING_ROOT_API_KEY}\",\n    \"cors_origins\": [\n      \"*\"\n    ]\n  },\n  \"embedding\": {\n    \"dense\": {\n      \"provider\": \"openai\",\n      \"api_base\": \"https://api.openai.com/v1\",\n      \"api_key\": \"${OPENAI_API_KEY}\",\n      \"model\": \"text-embedding-3-small\",\n      \"dimension\": 1536\n    }\n  },\n  \"vlm\": {\n    \"provider\": \"openai\",\n    \"api_base\": \"https://api.openai.com/v1\",\n    \"api_key\": \"${OPENAI_API_KEY}\",\n    \"model\": \"gpt-5.6-terra\"\n  }\n}"
                    },
                    "OPENVIKING_ROOT_API_KEY": {
                      "isOptional": false,
                      "description": "Auto-generated root API key. Paste it into Studio settings to bootstrap accounts and users.",
                      "defaultValue": "{{OPENVIKING_ROOT_API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "79427a47-7881-428e-b029-cd27dc9ed140": {
                      "mountPath": "/app/.openviking"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "OpenViking",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T16:14:39.735Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:10:54.785Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e5b23ae4b2f646428fed",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 78,
    "typical_build_seconds": 10,
    "typical_start_seconds": 20,
    "slowest_service": "openviking"
  }
}
