Skip to main content

Overview

OpenViking can be deployed as a standalone HTTP server, providing persistent, high-performance context support for your AI Agents. This enables:

Centralized Context

Share context across multiple agents and applications

Production Ready

Built on FastAPI and Uvicorn for high performance

Multi-client Support

Python SDK, Rust CLI, and REST API access

Scalable

Deploy on cloud infrastructure for high availability

Prerequisites

Before deploying OpenViking server, ensure you have:
  • OpenViking installed: pip install openviking --upgrade
  • Model configuration ready (VLM and embedding models)
  • Server configuration file at ~/.openviking/ov.conf
See the Quick Start guide for installation and configuration details.

Starting the Server

Basic Usage

1

Prepare Configuration

Create your server configuration file at ~/.openviking/ov.conf:
~/.openviking/ov.conf
2

Start the Server

Launch OpenViking server:
You should see:
3

Verify Health

Test that the server is running:
Expected response:

Running in Background

For long-running deployments:

Client Connections

Python SDK

Connect to OpenViking server using the Python SDK:

With Authentication

If your server has authentication enabled:

Async Client

For async applications:

Rust CLI

Configure the Rust CLI to connect to your server:
1

Create CLI Configuration

Create ~/.openviking/ovcli.conf:
~/.openviking/ovcli.conf
Or set environment variable:
2

Use CLI Commands

REST API

Access OpenViking directly via HTTP:

Cloud Deployment: Volcengine ECS

For production deployments, we recommend Volcengine Elastic Compute Service (ECS) with veLinux for optimal performance.

Instance Provisioning

Recommended specifications for Volcengine ECS Console:

Environment Setup

1

Mount Data Disk

After instance creation, mount the data disk:
2

Install Dependencies

3

Create Virtual Environment

4

Install OpenViking

Server Configuration and Launch

1

Create Configuration Directory

2

Create Configuration File

Add your configuration (see Basic Usage section above for template).
Vim Quick Reference:
  • Press i to enter Insert mode
  • Paste your configuration
  • Press Esc then type :wq to save and exit
3

Launch Server

To stop the service:
4

Verify Server Status

Production Testing

1

Configure Local Client

On your local machine, create ~/.openviking/ovcli.conf:
Replace YOUR-SERVER-IP with your ECS instance’s public IP.
2

System Health Check

3

Functional Testing

Docker Deployment (Optional)

For containerized deployments:
Dockerfile
Build and run:

Configuration Options

Server Configuration Reference

Environment Variables

Monitoring and Maintenance

Health Monitoring

Log Management

Resource Management

Security Considerations

Production Security Checklist:
  • Configure firewall rules to restrict access
  • Use HTTPS with reverse proxy (nginx/caddy)
  • Enable API authentication
  • Regularly update OpenViking and dependencies
  • Monitor logs for suspicious activity
  • Backup workspace data regularly
  • Use environment variables for sensitive credentials

Reverse Proxy Example (Nginx)

Next Steps

API Reference

Complete API documentation

Authentication

Secure your OpenViking server

Monitoring

Monitor your production deployment

Examples

Production integration examples