Self-host OpenViking
react@0.1.11Context filesystem for AI agent memory, RAG and skills
docker run -d --name openviking -p 1933:1933 -v ~/.openviking:/app/.openviking --restart unless-stopped ghcr.io/volcengine/openviking:latest- Stars
- 42 208
- Port
- 1933 (OpenViking HTTP API service, also serving the Web Studio UI at /studio)
ghcr.io/volcengine/openvikingWhat is OpenViking?
OpenViking, made by Volcano Engine, is an open-source context database that gives AI agents one store they can actually look inside. Knowledge resources, user memories and skills are all addressed through viking:// URIs laid out like a directory tree, exposing file-style operations (ls, tree, read, write, grep) so agents navigate what they know and humans can inspect or edit stored context directly. Retrieval is directory-aware: semantic queries can be confined to a subtree such as one project's docs, find() answers a query straight away while search() plans around session context, and every processed directory ships L0 and L1 summaries so full text is loaded only when an agent decides it matters. Once a session is committed, the conversation is archived and Markdown memories are extracted; with VikingBot enabled, ov compile distills material into wikis, knowledge graphs or reports. To run it yourself: install with pip or uv and answer the openviking-server init wizard, which writes ~/.openviking/ov.conf; or start the ghcr.io/volcengine/openviking image (an example compose file is in the repo), a documented Systemd unit, or the one-click Railway template. The HTTP service binds port 1933, and Studio, the built-in browser UI, shares that origin under /studio. An embedding model provider is required (Volcengine Doubao is recommended; OpenAI, VikingDB, Jina or a local Ollama also work), and VLM plus rerank models are optional. Default access uses layered API keys (root and per-account user keys); OIDC, LDAP and a trusted-gateway mode can replace them, alongside multi-account isolation and opt-in resource ACLs. Agents hook in via a memory-plugin installer for Cursor, TRAE, OpenCode, Claude Code and Codex among others, Python/Go/TypeScript SDKs, an HTTP API or an MCP endpoint; a beta desktop console covers macOS and Windows. The server code is AGPL-3.0 and needs no activation key, while Volcengine sells a managed SaaS (50 files free) and a license-key self-managed enterprise edition; the team publishes LoCoMo and tau2-bench evaluations showing accuracy gains over native agent memory.
OpenViking alternatives
Open-WebUIOpen WebUI is a self-hosted AI platform connecting to Ollama and OpenAI-compatible APIs with RAG, plugins, voice/video calls, and enterprise auth on your hardware.CompareOpen-WebUI with OpenViking
openchronicle-mcpOpenChronicle is a self-hosted, open-source memory database for LLM agents with persistent keyword and semantic memory, project namespacing, and MCP support.Compareopenchronicle-mcp with OpenViking
OpenKnowledgeOpen-source, self-hosted WYSIWYG markdown editor and LLM wiki with MCP agent editing, git-backed sync and team sharing.CompareOpenKnowledge with OpenViking
Big-AGISelf-hosted, open-source AI workspace for experts: run 2 to 24 models in parallel with Beam, personas, image generation, voice and BYO API keys via Docker.CompareBig-AGI with OpenViking
WeKnoraTencent's open-source knowledge framework for teams: self-hosted RAG Q&A with citations, agents with sandboxed skills, and auto-generated wikis on swappable LLMs.CompareWeKnora with OpenViking
TaskingAIAn open-source, self-hosted BaaS stack for building LLM agents: unified model APIs, RAG, built-in tools and an admin console, deployed with Docker Compose.CompareTaskingAI with OpenViking
orbitSelf-hosted AI gateway connecting private data to local or hosted LLMs via one OpenAI-compatible API with built-in auth, quotas, audit logs, and admin UI.Compareorbit with OpenViking
OpenWorkSelf-hosted and open-source, this Electron workspace puts AI agents to work on local files; over 50 providers, Ollama support, and a self-hosted Den control plane.CompareOpenWork with OpenViking
Should you self-host OpenViking?
OpenViking scores 82/100 on selfhost.directory (how scoring works) and ranks #10 of 209 in AI Agents. It has 42 208 GitHub stars, +2 592 in the last 30 days.
It shipped 66 stable releases in the past year. The latest, react@0.1.11, came out on 13 November 2026. New versions land roughly every 1 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Orca (91/100, 124 444 stars). It scores higher overall, so compare the two before you pick. See OpenViking vs Orca side by side.
Features
- Agent memory extraction
- Browsable context filesystem
- CLI
- Coding-agent memory plugin
- Context compilation
- Desktop AppBeta, macOS and Windows x64.
- Directory-scoped semantic search
- HTTP API & SDKs
- Layered context summaries
- MCP Server
- Metrics & Observability
- Multi-tenant accounts & ACLs
- Session Management
- VikingBot agent framework
- Web UI (Studio)
OpenViking README
OpenViking is an open-source context database for AI agents — one filesystem for everything an agent knows: knowledge, memory, and skills.
Most agent memory is a black box: text goes in, embeddings come out, and nobody can see what was actually stored. OpenViking organizes context as a virtual filesystem under viking:// instead. Agents navigate it like files — ls, tree, read, write, grep — and you can open any directory to inspect and edit what your agent knows. Every directory carries a generated summary, so agents can scan summaries first and decide what to read.
FAQ
How do I add resources?
Call client.add_resource() with a local path or web URL, optionally a parent directory and a reason used for summaries, then wait for processing with client.wait_processed().
What file formats are supported?
Text (.txt, .md, .json, .yaml), code (.py, .js, .ts, .go, .java, .cpp, etc.), documents (.pdf, .docx), images (.png, .jpg, .jpeg, .gif, .webp), video (.mp4, .mov, .avi) and audio (.mp3, .wav, .m4a).
How do I initialize the client?
Instantiate SyncHTTPClient with the server URL and an API key; embedding, VLM and storage configuration is managed server-side through ov.conf, not the client.
What Embedding providers are supported?
Volcengine (recommended), OpenAI, VikingDB, Jina and Ollama (local, no API key required), with Dense, Sparse and Hybrid embedding modes supported.
How do I configure OpenViking?
Create ~/.openviking/ov.conf with your model providers and credentials; it is loaded automatically, or point elsewhere with OPENVIKING_CONFIG_FILE or --config.
How do I install/upgrade OpenViking?
Run: pip install openviking --upgrade --force-reinstall.
What should I do if I encounter "AGFS binding library not found"?
The RAGFS shared library is missing or unloadable; check that a prebuilt wheel exists for your Python version and platform and reinstall, building from source only if no wheel is available.
How does OpenViking access the AGFS filesystem?
Through an in-process Rust binding (ragfs_python / RAGFSBindingClient); the older AGFS HTTP client mode is no longer supported, though the server HTTP API and ov CLI are unaffected.
What are the environment requirements?
Python 3.10 or higher, an embedding model (Volcengine Doubao recommended) as a required dependency, optional VLM and rerank models, and Rust/Cargo plus GCC 9+ or Clang 11+ only when building from source.
What is Viking URI? What's its purpose?
It is the unified resource identifier format viking://{scope}/{path}, addressing resources, per-user memories, skills, peer scopes and optional account-wide agent skills in one tree.
What is the L0/L1/L2 layered model? Why is it needed?
L0 is a short directory abstract (~256 chars) for filtering, L1 an overview (~4,000 chars) for navigation and reranking, L2 the original content read only on demand — this lets agents locate material before loading full text.
What's the fundamental difference between OpenViking and traditional vector databases?
A vector DB mainly stores vectors for similarity search; OpenViking adds context directories, layered summaries, resource ingestion, sessions and memory management. If you only need similarity queries, your existing database may suffice.
What is OpenViking? What problems does it solve?
It organizes an agent's resources, memories and skills as files that apps can browse by path, search semantically and read on demand, targeting fragmented context, weak retrieval, opaque retrieval and limited memory iteration across sessions.
More in AI Agents
OpenWorkSelf-hosted and open-source, this Electron workspace puts AI agents to work on local files; over 50 providers, Ollama support, and a self-hosted Den control plane.
OperantOperant is a self-hosted AI agent runtime for macOS/Linux that lets multiple LLMs collaborate on coding with hierarchical approval, memory, and a visual workflow editor.
OpikOpik is an open-source, self-hostable LLM observability platform with tracing, evaluation, and production monitoring.
OrcaSelf-hosted, open-source agent IDE that runs Claude Code, Codex, or any CLI coding agent in parallel git worktrees on desktop or a headless orca serve server.
ORG-2Open-source, self-hosted desktop app that records coding-agent sessions as replayable trajectories, with a Rust harness, launchers for 20+ CLIs, and team review.
os1OS1 is a self-hosted, open-source AI platform with autonomous agents, deep research, real-time collaborative chats, and a PWA workspace. Full data control, extensible.
os-modaA self-hosted NixOS operating system where an AI agent manages your server through structured tools, with tamper-proof audit logs and instant rollback.
OtoDockOtoDock is a self-hosted platform for AI agents with departments, RBAC, phone, apps, and sandboxed execution — free for 5 users.
OuroborosA locally-run AI agent that preserves its identity across sessions, spawns specialist sub-agents, and rewrites its own codebase.
OverClickOverClick is a self-hosted, open-source Kanban board for hybrid human-AI teams where AI agents claim and execute tasks via MCP, reporting token usage and time per card.
pacaSelf-hosted and open-source Scrum tooling: AI agents share the board and the sprint with people, plus IAM-style role policies and WASM plugins.
PadPad is a self-hosted, open-source project management tool for developers and AI agents. Single binary with web UI, CLI, and AI skill backed by SQLite or PostgreSQL.
0 comments