# OpenViking: A Self-Evolving Context Database for AI Agents

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/volcengine-openviking
Generated for open source discovery and AI-assisted research.

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.

GitHub: https://github.com/volcengine/OpenViking
OSRepos URL: https://osrepos.com/repo/volcengine-openviking

## 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.

## Topics

- AI Agents
- Context Database
- Agent Memory
- RAG
- Python
- Self-Evolving AI
- Agent Plugins
- LLM Applications

## Repository Information

Last analyzed by OSRepos: Sat Aug 29 2026 13:23:03 GMT+0100 (Western European Summer Time)
Detail views: 3
GitHub clicks: 1

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## 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](https://openviking.ai/studio "OpenViking Studio Live Demo" target="_blank") live demo.

For local installation:

bash
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:

bash
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/](https://openviking.ai/ "OpenViking Website" target="_blank")
*   **Live Demo (OpenViking Studio):** [https://openviking.ai/studio](https://openviking.ai/studio "OpenViking Studio Live Demo" target="_blank")
*   **GitHub Repository:** [https://github.com/volcengine/OpenViking](https://github.com/volcengine/OpenViking "OpenViking GitHub Repository" target="_blank")
*   **Documentation:** [https://docs.openviking.ai/](https://docs.openviking.ai/ "OpenViking Documentation" target="_blank")
*   **Blog:** [https://blog.openviking.ai/](https://blog.openviking.ai/ "OpenViking Blog" target="_blank")
*   **Discord Community:** [https://discord.com/invite/eHvx8E9XF3](https://discord.com/invite/eHvx8E9XF3 "OpenViking Discord" target="_blank")
*   **X (Twitter):** [https://x.com/openvikingai](https://x.com/openvikingai "OpenViking on X" target="_blank")