Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dallay/corvus/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Corvus implements a full-stack memory system with zero external dependencies. All components (vector search, keyword search, embedding cache) are built-in and optimized for performance.Memory Backends
Corvus supports multiple memory backends with identical API:SQLite (Default)
Hybrid vector + keyword search with FTS5Best for: Most use cases, production deployments
SurrealDB
Distributed graph database backendBest for: Multi-agent systems, shared memory
Markdown
Flat-file storage for simple setupsBest for: Development, testing, portability
None
Explicit no-op memory (disabled)Best for: Stateless agents, temporary instances
SQLite Backend (Recommended)
Default memory backend with hybrid search:Architecture
| Layer | Implementation |
|---|---|
| Vector DB | Embeddings stored as BLOB, cosine similarity search |
| Keyword Search | FTS5 virtual tables with BM25 scoring |
| Hybrid Merge | Custom weighted merge function |
| Embeddings | OpenAI or custom endpoint |
| Chunking | Line-based with heading preservation |
| Caching | LRU cache with 10,000 entry limit |
Configuration Fields
Memory backend:
sqlite, surreal, markdown, or none.Automatically save conversation context to memory.
Embedding provider:
openai: OpenAI embeddings APIcustom:https://your-api.com: Custom endpointnone: Disable embeddings (keyword-only search)
Embedding model name.
Embedding vector dimensions.
Weight for vector similarity in hybrid search (0.0-1.0).
Weight for keyword BM25 in hybrid search (0.0-1.0).
Minimum hybrid score (0.0-1.0) for a memory to be included in context.Memories scoring below this threshold are dropped to prevent irrelevant context bleeding.
Maximum embedding cache entries before LRU eviction.
Maximum tokens per chunk for document splitting.
SurrealDB Backend
Distributed memory backend for multi-agent systems:Environment Variables
Configuration Fields
SurrealDB endpoint URL:
- HTTP:
http://127.0.0.1:8000 - WebSocket:
ws://127.0.0.1:8000/rpc
SurrealDB namespace.
SurrealDB database name.
Username for authentication (ignored if
token is set).Password for authentication (ignored if
token is set).JWT token for authentication (preferred over username/password).
Allow plain HTTP for loopback addresses only (127.0.0.1, ::1).Non-loopback HTTP URLs are rejected unless this is
false and the URL is HTTPS.Markdown Backend
Flat-file storage for simple setups:~/.corvus/workspace/memory/.
Memory Hygiene
Automatic memory management to prevent unbounded growth:Run automatic memory hygiene (archiving + retention cleanup).
Archive daily/session files older than N days.
Purge archived files older than N days.
For SQLite backend: prune conversation rows older than N days.
Response Caching
Cache LLM responses to save tokens on repeated prompts:Enable LLM response caching to avoid paying for duplicate prompts.
TTL in minutes for cached responses.
Maximum cached responses before LRU eviction.
Memory Snapshots
Periodic export of core memories to Markdown:Enable periodic export of core memories to
MEMORY_SNAPSHOT.md.Run snapshot during hygiene passes (heartbeat-driven).
Auto-hydrate from
MEMORY_SNAPSHOT.md when brain.db is missing.SQLite Advanced Settings
Maximum seconds to wait when opening the database (e.g., file locked).
None: Wait indefinitely (default)- Recommended max:
300(5 minutes)
Memory Tools
The agent automatically uses these tools to manage memory:| Tool | Description |
|---|---|
memory_store | Save information to long-term memory |
memory_recall | Search memory using hybrid vector + keyword search |
memory_forget | Delete specific memories |
Complete Example
Migration from OpenClaw
Migrate existing OpenClaw memories:- Identity and soul definitions
- Conversation history
- Long-term memories
- User preferences
Next Steps
Security Configuration
Configure gateway security, autonomy levels, and runtime isolation