Server Deployment
OpenViking can run as a standalone HTTP server, allowing multiple clients to connect over the network.
Quick Start
# Create or refresh ~/.openviking/ov.conf with the setup wizard
openviking-server init
# If you select OpenAI Codex in the wizard, init can import/login Codex for you
# Validate local config, model access, and auth before starting
openviking-server doctor
# Start server (reads ~/.openviking/ov.conf by default)
openviking-server
# Or specify a custom config path
openviking-server --config /path/to/ov.conf
# Verify it's running
curl http://localhost:1933/health
# {"status": "ok"}Command Line Options
| Option | Description | Default |
|---|---|---|
--config | Path to ov.conf file | ~/.openviking/ov.conf |
--host | Host to bind to | 127.0.0.1 |
--port | Port to bind to | 1933 |
Examples
# With default config
openviking-server
# With custom port
openviking-server --port 8000
# With custom config, host, and port
openviking-server --config /path/to/ov.conf --host 127.0.0.1 --port 8000Configuration
The server reads all configuration from ov.conf. See Configuration Guide for full details on config file format.
The server section in ov.conf controls server behavior:
{
"server": {
"host": "0.0.0.0",
"port": 1933,
"root_api_key": "your-secret-root-key",
"cors_origins": ["*"]
},
"storage": {
"workspace": "./data",
"agfs": { "backend": "local" },
"vectordb": { "backend": "local" }
}
}Deployment Modes
Standalone (Embedded Storage)
Server manages local RAGFS and VectorDB. Configure the storage path in ov.conf:
{
"storage": {
"workspace": "./data",
"agfs": { "backend": "local" },
"vectordb": { "backend": "local" }
}
}openviking-serverDeploying with Systemd (Recommended)
For Linux systems, you can use Systemd to manage OpenViking as a service, enabling automatic restart and startup on boot. Firstly, you should tried to install and configure openviking on your own.
Create Systemd Service File
Create /etc/systemd/system/openviking.service file:
[Unit]
Description=OpenViking HTTP Server
After=network.target
[Service]
Type=simple
# Replace with your working directory
WorkingDirectory=/var/lib/openviking
# Choose one of the following start methods
ExecStart=/usr/bin/openviking-server
Restart=always
RestartSec=5
# Path to config file
Environment="OPENVIKING_CONFIG_FILE=/etc/openviking/ov.conf"
[Install]
WantedBy=multi-user.targetManage the Service
After creating the service file, use the following commands to manage the OpenViking service:
# Reload systemd configuration
sudo systemctl daemon-reload
# Start the service
sudo systemctl start openviking.service
# Enable service on boot
sudo systemctl enable openviking.service
# Check service status
sudo systemctl status openviking.service
# View service logs
sudo journalctl -u openviking.service -fConnecting Clients
Python SDK
import openviking as ov
client = ov.SyncHTTPClient(url="http://localhost:1933", api_key="your-key", agent_id="my-agent")
client.initialize()
results = client.find("how to use openviking")
client.close()CLI
The CLI reads connection settings from ovcli.conf. Create ~/.openviking/ovcli.conf:
{
"url": "http://localhost:1933",
"api_key": "your-key"
}Or set the config path via environment variable:
export OPENVIKING_CLI_CONFIG_FILE=/path/to/ovcli.confThen use the CLI:
python -m openviking ls viking://resources/curl
curl http://localhost:1933/api/v1/fs/ls?uri=viking:// \
-H "X-API-Key: your-key"Cloud Deployment
Docker
OpenViking provides pre-built Docker images published to GitHub Container Registry. All persistent state — ov.conf, ovcli.conf, and the workspace data — lives under /app/.openviking inside the container, so a single mount is enough:
docker run -d \
--name openviking \
-p 1933:1933 \
-p 8020:8020 \
-v ~/.openviking:/app/.openviking \
--restart unless-stopped \
ghcr.io/volcengine/openviking:latestBy default, the Docker image starts:
- OpenViking HTTP service on port
1933 - OpenViking Console on port
8020 vikingbotgateway
Upgrade the container:
docker stop openviking
docker pull ghcr.io/volcengine/openviking:latest
docker rm -f openviking
# Then re-run docker run ...If you want to disable vikingbot for a specific container run, you can use either of the following:
docker run -d \
--name openviking \
-p 1933:1933 \
-p 8020:8020 \
-v ~/.openviking:/app/.openviking \
--restart unless-stopped \
ghcr.io/volcengine/openviking:latest \
--without-botdocker run -d \
--name openviking \
-e OPENVIKING_WITH_BOT=0 \
-p 1933:1933 \
-p 8020:8020 \
-v ~/.openviking:/app/.openviking \
--restart unless-stopped \
ghcr.io/volcengine/openviking:latestWhen docker -v is not available
Some managed platforms (Railway, Fly.io, Heroku-style PaaS) don't let you bind-mount a host path. If ov.conf doesn't exist when the container starts, the entrypoint will not crash — it prints a fix-it message and waits for the file to appear. You have two ways to provide it:
Option A: pass the full config through OPENVIKING_CONF_CONTENT. The entrypoint writes the env value to OPENVIKING_CONFIG_FILE (defaults to /app/.openviking/ov.conf) before starting the server:
docker run -d \
--name openviking \
-p 1933:1933 \
-p 8020:8020 \
-e OPENVIKING_CONF_CONTENT="$(cat ~/.openviking/ov.conf)" \
--restart unless-stopped \
ghcr.io/volcengine/openviking:latestOption B: configure interactively after the container is up. While the container is sleeping (waiting for ov.conf), docker exec in and run the setup wizard — it honors OPENVIKING_CONFIG_FILE and writes to the path the server is watching:
docker exec -it openviking openviking-server initAs soon as ov.conf appears, the entrypoint resumes and starts the server + console automatically.
You can also use Docker Compose, which provides a docker-compose.yml in the project root:
docker compose up -dAfter startup, you can access:
- API service:
http://localhost:1933 - Console UI:
http://localhost:8020
To build the image yourself, pass an explicit OpenViking version: docker build --build-arg OPENVIKING_VERSION=0.3.12 -t openviking:latest .
Kubernetes + Helm
The project provides a Helm chart located at examples/k8s-helm/:
helm install openviking ./examples/k8s-helm \
--set openviking.config.embedding.dense.api_key="YOUR_API_KEY" \
--set openviking.config.vlm.api_key="YOUR_API_KEY"For a detailed cloud deployment guide (including Volcengine TOS + VikingDB + Ark configuration), see the Cloud Deployment Guide.
Health Checks
| Endpoint | Auth | Purpose |
|---|---|---|
GET /health | No | Liveness probe — returns {"status": "ok"} immediately |
GET /ready | No | Readiness probe — checks AGFS, VectorDB, APIKeyManager |
# Liveness
curl http://localhost:1933/health
# Readiness
curl http://localhost:1933/ready
# {"status": "ready", "checks": {"agfs": "ok", "vectordb": "ok", "api_key_manager": "ok"}}Use /health for Kubernetes liveness probes and /ready for readiness probes.
Related Documentation
- Authentication - API key setup
- Observability & Diagnostics - Health checks, tracing, and debugging
- API Overview - Complete API reference
