OpenViking: A Self-Evolving Context Database for AI Agents
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
OpenViking is an open-source context database designed for AI agents, unifying agent memory, knowledge RAG, and skills into a virtual filesystem. It allows agents to browse their context deterministically using familiar commands like `ls` and `tree`. This innovative approach aims to enhance agent performance and reduce token spend by loading content in tiered layers.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introdução
OpenViking is an open-source context database specifically designed for AI agents. It unifies agent memory, knowledge RAG, and skills into a single virtual filesystem, accessible via the viking:// protocol. This innovative approach allows AI agents to browse and manage their context deterministically, using familiar commands like ls, tree, and find, rather than querying a black-box vector store. Content is processed into three tiers, L0 abstract, L1 overview, and L2 details, and loaded on demand, significantly reducing token spend and improving efficiency. Every retrieval leaves a trajectory, making debugging and observation straightforward.
Porquê usar OpenViking
OpenViking offers several compelling advantages for developing and deploying AI agents:
- One filesystem for all context: Memories, resources, and skills are organized under
viking://URIs, enabling agents to locate and manipulate context deterministically, similar to a developer working with files. This provides a structured and predictable environment for agent operations. - Tiered loading cuts token spend: Each entry is processed into L0 (abstract), L1 (overview), and L2 (details) layers upon writing. Content is then loaded only as deep as the current task requires, optimizing token usage and reducing operational costs.
- Directory recursive retrieval: Vector search first identifies the highest-scoring directory, then drills down layer by layer. This ensures that retrieval results arrive with their surrounding context intact, providing richer and more relevant information to the agent.
- Observable retrieval: Every query preserves its directory-browsing trajectory. If a result seems incorrect, developers can trace the exact path that produced it, greatly aiding debugging and understanding of agent behavior.
- Sessions become memory: After a session commits, OpenViking asynchronously extracts user preferences and agent experience, integrating them into long-term memory. This allows agents to learn and evolve over time, improving their performance and personalization.
OpenViking has demonstrated significant improvements in user memory accuracy and agent task success, as detailed in its benchmark reports.
Instalação
To get started with OpenViking, ensure you have Python 3.10 or higher installed. For a quick hands-on experience without installation, you can try the OpenViking Studio live demo.
pip install openviking --upgrade
openviking-server init # interactive wizard: providers, models, ov.conf
openviking-server doctor # validate setup
openviking-server # start (background: nohup openviking-server > openviking.log 2>&1 &)
The init command guides you through provider setup, supporting Volcengine, OpenAI, Codex OAuth, Kimi, GLM, and local Ollama. The doctor command verifies your configuration, Python version, provider connectivity, and disk space.
Exemplos de Uso
Once the OpenViking server is running, you can interact with it using the ov client CLI:
ov status
ov add-resource https://github.com/volcengine/OpenViking # --wait
ov ls viking://resources/
ov tree viking://resources/volcengine -L 2
# wait some time for semantic processing if not --wait
ov find "what is openviking"
ov grep "openviking" --uri viking://resources/volcengine/OpenViking/docs/en
OpenViking also offers integrations with various AI agents, including Claude Code, Codex, OpenClaw, Hermes, LangChain, and more, allowing you to inject OpenViking recall into your agent's context and auto-commit session memory.
Links Úteis
Explore OpenViking further through these official resources:
- Website: https://openviking.ai/
- Live Demo (OpenViking Studio): https://openviking.ai/studio
- GitHub Repository: https://github.com/volcengine/OpenViking
- Documentation: https://docs.openviking.ai/
- Blog: https://blog.openviking.ai/
- Discord Community: https://discord.com/invite/eHvx8E9XF3
- X (Twitter): https://x.com/openvikingai
Related repositories
Similar repositories that may be relevant next.

Craft Agents: An Agent-Native Desktop App for LLM Interaction
August 27, 2026
Craft Agents is an open-source desktop application designed for effective interaction with large language model (LLM) agents. It enables intuitive multitasking, seamless connection to any API or service, and a document-centric workflow within a fluid user interface. Built with agent-native software principles, it offers high customizability and supports multiple LLM providers.

LoopX: Long-Horizon Agent Control Plane for Governed AI Workflows
August 25, 2026
LoopX is an open, provider-neutral, and stateful control plane designed for long-horizon AI agents. It enables durable, governed work across various agent harnesses, including Codex App and Claude Code. LoopX provides essential capabilities for managing complex, long-running tasks, ensuring objectives, gates, and handoffs remain stable and reviewable.

Athena-Public: Your Local-First Agentic PKM for Smarter AI Decisions
August 25, 2026
Athena-Public is a powerful local-first agentic Personal Knowledge Management (PKM) system designed to enhance your decision-making. It provides persistent memory, structured reasoning, and governed AI agents that operate across various Large Language Models. This unique approach allows you to own your data and context, while renting the intelligence from any LLM.

CLI Agent Orchestrator: Multi-Agent Orchestration for AI Coding CLIs
August 24, 2026
The CLI Agent Orchestrator (CAO) is a powerful tool designed to coordinate multiple AI coding CLIs, enabling a supervisor to delegate tasks to specialist agents in parallel or sequence. It achieves this by running a local `cao-server` and launching provider CLIs within isolated tmux terminal sessions. This setup allows for efficient management and orchestration of various AI coding assistants.
Source repository
Open the original repository on GitHub.