OpenViking is an AI agent context database open-sourced by Volcano Engine, with the goal of using a single file system to unify everything an agent knows: knowledge, memory, and skills.
Purpose
Most agent memory is a black box: text in, embeddings out, with no way to see what is actually stored. OpenViking organizes context as a virtual file system under viking://, where agents can navigate just like working with files—ls, tree, read, write, grep—and users can open any directory to inspect and edit what the agent knows. Each directory comes with a generated summary, so agents can scan summaries first before deciding what to read.
Main capabilities
- Unified file system: resources store documents and code; memory retains user preferences and experience; skills define how to perform tasks, not just extracted facts. Every item has a viking:// URI for browsing and retrieval.
- Directory-level retrieval: scope semantic search to a project or memory subtree instead of scanning a flat vector pool. find runs queries directly; search plans retrieval based on session context.
- Context layering: generated directory summaries (L0) and overviews (L1) let agents judge relevance before opening full content (L2).
- Sessions as files: committing a session archives the conversation and extracts memory as Markdown that can be inspected, edited, and merged. With VikingBot enabled, ov compile can organize source material into a wiki, knowledge graph, or report.
- Three loading levels: L0 (summary) one-sentence summary for quick relevance checks; L1 (overview) core information and usage scenarios for planning; L2 (details) complete raw data, read only when needed.
How to use
First set up an OpenViking server; if you already have a server, you can skip directly to integrating with an agent. Self-deployment requires uv, Python 3.10+, and a model provider that offers an embedding model and VLM.
Install OpenViking and run the setup wizard to configure models:
uvx openviking init
init writes ~/.openviking/ov.conf, and supports Volcengine, OpenAI, Codex OAuth, Kimi, GLM, and local Ollama. The server runs in the foreground, so the terminal must stay open.
You can also use the Volcano Engine-hosted OpenViking service, with the first 50 files free. After activating it on the Volcano Engine product page, create a key in the console under User Management → API Key. The server address is https://api.vikingdb.cn-beijing.volces.com/openviking。
Explore with the CLI: the openviking package includes the ov CLI. Once the server is running, import a repository and search:
ov find
ov find returns matching context with URIs for further inspection. For client configuration (ov config), standalone CLI installation, and index maintenance, see CLI setup.
Build your own integration using the Python, Go, or TypeScript SDK, or the HTTP API.
Agent integration: connect coding agents to OpenViking for cross-session memory. The memory plugin installer covers Claude Code, Codex, Cursor, TRAE, OpenCode, and more, and detects installed tools. Prepare the server address, and an API key if authentication is enabled. Run the installer, select the tool and server (self-hosted/local, Volcengine OpenViking Cloud, or a custom URL). If authentication is enabled, enter a user key rather than a root key. Then restart the agent. The installer requires macOS or Linux, Node.js 18+, and curl, with no sudo needed. On Windows, use the desktop app.
Desktop app (Beta): available for macOS and Windows x64, it can configure supported local agent integrations, inspect recall and capture events in sessions, and sync local memory and skills to OpenViking.
VikingBot: an AI agent framework built on OpenViking. The official Docker image bundles VikingBot, which starts by default alongside the server and console UI.
Production deployment: run the open-source server in your own environment under AGPLv3, with no activation key required. The server supports account and user isolation and optional resource ACLs. Configure authentication before exposing it beyond localhost.
Commercial editions: Volcengine hosts and operates OpenViking, with personal and enterprise plans covering individual and team use, plus migration tools for open-source deployments. BYOC or offline editions add distributed deployment and official support, activated via a license key.
When to use
- Coding agents that need cross-session memory.
- Agent applications that need unified management of knowledge bases, user preferences, and task skills.
- Developers who need inspectable, editable memory rather than black-box embeddings.
- RAG scenarios that need directory-level semantic retrieval to reduce token consumption.
Limitations
- Self-deployment requires uv, Python 3.10+, and a model provider offering embedding models and a VLM.
- The plugin installer requires macOS or Linux, Node.js 18+, and curl; on Windows, use the desktop app.
- Memory is processed in the background, so a preference just stated may not be found immediately.
- The main project uses AGPLv3; crates/ov_cli and examples use Apache 2.0; examples/hermes-plugin retains the MIT license. Rewriting and re-open-sourcing this project as a whole is prohibited; translating all or most of the project code into another programming language requires prior written authorization from Volcengine.
- The commercial hosted service is free for the first 50 files; see the service documentation for subsequent plans and limits.
Evaluation and papers
OpenViking 0.3.22 was evaluated on long-conversation user memory (LoCoMo) and multi-turn agent tasks (tau2-bench). The memory evaluation used Doubao 2.0 Pro as the VLM and Doubao-embedding-vision-251215 as the embedding model. User memory (LoCoMo): with OpenViking, all three agent integrations reached 80–83% accuracy, versus 24–57% for native memory, with input tokens reduced by 34.3–91.0% and query latency reduced by 58.45–66.10%. Agent experience (tau2-bench): experiential memory improved task success rates by +6.87pp in the retail scenario and +11.87pp in the airline scenario.
Related papers include VikingMem, Directory-Aware Query and Maintenance in Vector Databases, and VikingRAG.
Community and contributions
Docs: docs.openviking.ai; Blog: blog.openviking.ai; Chat: Lark, WeChat, Discord, X. Bug fixes and new features are welcome; see CONTRIBUTING.md. For security and privacy, see SECURITY.md.