openviking
An Agent-native context database
What it is and what it does
OpenViking is an open-source context database designed for AI agents that replaces traditional vector stores with a filesystem-like interface. Instead of querying a black-box retrieval system, agents browse context using familiar commands (`ls`, `tree`, `find`, `grep`) on a `viking://` protocol namespace. Content is processed into three layers on write—L0 (abstract, ~100 tokens), L1 (overview, ~2k tokens), and L2 (full details)—and loaded on demand to reduce token spend and latency.
The package includes a server component, a CLI client, and integrations for popular AI agents. It supports ingesting resources from URLs, GitHub repos, and local files, then automatically extracts and commits session memory after agent interactions. Retrieval is observable: each query preserves its directory-browsing trajectory so you can debug why a result was retrieved. The fact sheet shows benchmarks reporting 80–83% accuracy on user memory tasks with 34.3–91.0% reduction in input tokens and 58.45–66.10% latency improvement.
Use it for:
- Build AI agents with persistent, searchable memory that survives across sessions and reduces token consumption on long conversations.
- Ingest and organize technical documentation, code repositories, and web content as agent-accessible context with semantic search.
- Debug agent retrieval behavior by inspecting the directory-browsing trajectory that produced each result.
- Integrate OpenViking recall into existing agent frameworks via provided plugins and integrations.
- Extract and store agent experience and user preferences as long-term memory after multi-turn sessions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OpenViking is a context database for AI agents that organizes memories, resources, and skills as a virtual filesystem under the `viking://` protocol, with tiered content loading (abstract, overview, details) and observable retrieval trajectories.
Yes, with conditions. OpenViking is actively maintained with recent releases and solves a real problem for AI agent developers—observable, token-efficient context retrieval. However, the AGPL-3.0 license requires copyleft compliance in derivative works, and the 58 runtime dependencies create medium install friction. Install if you are building agents that need persistent, debuggable memory and can accept the license terms; avoid if you need a permissive-licensed context store or want minimal dependencies.
Install
openviking on PyPI
pip
pip install openvikinguv
uv add openvikingpoetry
poetry add openvikingInstalling openviking
Before you install
Medium install friction due to 58 runtime dependencies including openai, fastapi, scrapy, and pdfplumber. Active maintenance with recent releases (8 days old) and strong community signal. Requires Python 3.10 or higher and includes a CLI setup wizard for provider configuration.
License in practice
Licensed under AGPL-3.0, which requires that any modifications or derivative works distributed must also be released under AGPL-3.0. This is a copyleft license; using this package in a proprietary application requires careful consideration of your distribution model.
Quickstart
pip install openviking
openviking-server init
openviking-server
# In another terminal:
ov add-resource https://github.com/example/repo
ov find "search query"
Requires Python 3.10 or higher. The `init` wizard requires interactive setup of an LLM provider (Volcengine, OpenAI, Ollama, etc.) and writes configuration to ~/.openviking/ov.conf before the server can start.
Verify before relying
- Whether the 58 runtime dependencies can be selectively installed or if all are required for basic operation
- Performance characteristics and absolute throughput of retrieval at scale
- Whether AGPL-3.0 copyleft applies to agents using OpenViking as a service vs. bundled deployment
Package facts
| License | AGPL-3.0 (agpl) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 58 — openviking-sdk, pydantic, typing-extensions, pyyaml, httpx, pdfplumber, scrapy, trafilatura, feedparser, defusedxml, openai, requests, charset-normalizer, python-docx, olefile, xlrd, python-pptx, openpyxl, ebooklib, json-repair, apscheduler, volcengine, volcengine-python-sdk, fastapi, uvicorn, xxhash, jinja2, tabulate, urllib3, protobuf |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 400,754/month — #6,935 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openviking-0.4.13-cp310-abi3-macosx_14_0_arm64.whl; openviking-0.4.13-cp310-abi3-macosx_15_0_x86_64.whl; openviking-0.4.13-cp310-abi3-manylinux_2_31_aarch64.whl; openviking-0.4.13-cp310-abi3-manylinux_2_31_x86_64.whl; openviking-0.4.13-cp310-abi3-win_amd64.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
memsearchMemsearch builds a searchable semantic memory…
permissive · top 15,000 on PyPI
omnigentOmnigent is an open-source orchestration layer…
permissive · top 15,000 on PyPI
mem0aiMem0 adds a persistent, searchable memory layer…
permissive · top 5,000 on PyPI
stashaiStash is a CLI and MCP server that creates a…
permissive · top 15,000 on PyPI
openhands-agent-serverProvides a REST and WebSocket API server for…
unclear · top 5,000 on PyPI
ouroboros-aiOuroboros is an Agent OS that turns vague AI…
permissive · top 15,000 on PyPI
agent-framework-azure-aiIntegrates Azure AI Foundry memory capabilities…
permissive · top 15,000 on PyPI
openhands-workspaceProvides Python and REST APIs for building…
unclear · top 15,000 on PyPI
langmemLangMem provides memory management tools for…
permissive · top 15,000 on PyPI
agent-framework-mem0Integrates Mem0 persistent memory into…
permissive · top 15,000 on PyPI