Supports containerized deployment of the Cipher memory agent framework with Docker Compose
Provides vector storage capabilities for storing and retrieving AI agent memories and embeddings
Supports Ollama as a local LLM provider for running memory-enhanced AI agents with locally hosted models
Integrates with OpenAI's GPT models as an LLM provider for the memory-powered AI agent framework
Enables persistent chat history storage and session management for AI agent conversations
Provides local database storage for chat history and session data with the AI memory system
Cipher
Overview
Cipher is an opensource memory layer specifically designed for coding agents. Compatible with Cursor, Windsurf, Claude Desktop, Claude Code, Gemini CLI, AWS's Kiro, VS Code, and Roo Code through MCP, and coding agents, such as Kimi K2. (see more on examples)
Built by Byterover team
Key Features:
- 🔌 MCP integration with any IDE you want.
- 🧠 Auto-generate AI coding memories that scale with your codebase.
- 🔄 Switch seamlessly between IDEs without losing memory and context.
- 🤝 Easily share coding memories across your dev team in real time.
- 🧬 Dual Memory Layer that captures System 1 (Programming Concepts & Business Logic & Past Interaction) and System 2 (reasoning steps of the model when generating code).
- ⚙️ Install on your IDE with zero configuration needed.
Quick Start 🚀
NPM Package (Recommended for Most Users)
Docker
💡 Note: Docker builds automatically skip the UI build step to avoid ARM64 compatibility issues with lightningcss. The UI is not included in the Docker image by default.
To include the UI in the Docker build, use:
docker build --build-arg BUILD_UI=true .
From Source
CLI Usage 💻
⚠️ Note: When running MCP mode in terminal/shell, export all environment variables as Cipher won't read from
.env
file.💡 Tip: CLI mode automatically continues or creates the "default" session. Use
/session new <session-name>
to start a fresh session.
The Cipher Web UI provides an intuitive interface for interacting with memory-powered AI agents, featuring session management, tool integration, and real-time chat capabilities.
Configuration
Cipher supports multiple configuration options for different deployment scenarios. The main configuration file is located at memAgent/cipher.yml
.
Basic Configuration ⚙️
📖 See Configuration Guide for complete details.
Environment Variables 🔐
Create a .env
file in your project root with these essential variables:
💡 Tip: Copy
.env.example
to.env
and fill in your values:
MCP Server Usage
Cipher can run as an MCP (Model Context Protocol) server, allowing integration with MCP-compatible clients like Claude Desktop, Cursor, Windsurf, and other AI coding assistants.
Quick Setup
To use Cipher as an MCP server in your MCP client configuration:
📖 See MCP Integration Guide for complete MCP setup and advanced features.
👉 Built‑in tools overview — expand the dropdown below to scan everything at a glance. For full details, see docs/builtin-tools.md
📘.
- Memory
cipher_extract_and_operate_memory
: Extracts knowledge and applies ADD/UPDATE/DELETE in one stepcipher_memory_search
: Semantic search over stored knowledgecipher_store_reasoning_memory
: Store high-quality reasoning traces
- Reasoning (Reflection)
cipher_extract_reasoning_steps
(internal): Extract structured reasoning stepscipher_evaluate_reasoning
(internal): Evaluate reasoning quality and suggest improvementscipher_search_reasoning_patterns
: Search reflection memory for patterns
- Workspace Memory (team)
cipher_workspace_search
: Search team/project workspace memorycipher_workspace_store
: Background capture of team/project signals
- Knowledge Graph
cipher_add_node
,cipher_update_node
,cipher_delete_node
,cipher_add_edge
cipher_search_graph
,cipher_enhanced_search
,cipher_get_neighbors
cipher_extract_entities
,cipher_query_graph
,cipher_relationship_manager
- System
cipher_bash
: Execute bash commands (one-off or persistent)
Tutorial Video: Claude Code with Cipher MCP
Watch our comprehensive tutorial on how to integrate Cipher with Claude Code through MCP for enhanced coding assistance with persistent memory:
Click the image above to watch the tutorial on YouTube.
For detailed configuration instructions, see the CLI Coding Agents guide.
Documentation
📚 Complete Documentation
Topic | Description |
---|---|
Configuration | Complete configuration guide including agent setup, embeddings, and vector stores |
LLM Providers | Detailed setup for OpenAI, Anthropic, AWS, Azure, Qwen, Ollama, LM Studio |
Embedding Configuration | Embedding providers, fallback logic, and troubleshooting |
Vector Stores | Qdrant, Milvus, In-Memory vector database configurations |
Chat History | PostgreSQL, SQLite session storage and management |
CLI Reference | Complete command-line interface documentation |
MCP Integration | Advanced MCP server setup, aggregator mode, and IDE integrations |
Workspace Memory | Team-aware memory system for collaborative development |
Examples | Real-world integration examples and use cases |
🚀 Next Steps
For detailed documentation, visit:
Contributing
We welcome contributions! Refer to our Contributing Guide for more details.
Community & Support
cipher is the opensource version of the agentic memory of byterover which is built and maintained by the byterover team.
- Join our Discord to share projects, ask questions, or just say hi!
- If you enjoy cipher, please give us a ⭐ on GitHub—it helps a lot!
- Follow @kevinnguyendn on X
Contributors
Thanks to all these amazing people for contributing to cipher!
MseeP.ai Security Assessment Badge
Star History
License
Elastic License 2.0. See LICENSE for full terms.
This server cannot be installed
Cipher is an opensource memory layer specifically designed for coding agents. Compatible with Cursor, Windsurf, Claude Desktop, Claude Code, Gemini CLI, AWS's Kiro, VS Code, and Roo Code through MCP, and coding agents, such as Kimi K2.
Related MCP Servers
- -securityAlicense-qualityA MCP server for Hide – headless IDE for coding agents.Last updated -10PythonMIT License
- -securityAlicense-qualityCreates and manages encoded messages using zero-width characters and advanced Unicode steganography techniques, enabling quantum-themed puzzle generation with hidden secrets.Last updated -3JavaScriptMIT License
- AsecurityAlicenseAqualityA fully featured coding agent that uses symbolic operations (enabled by language servers) and works well even in large code bases. Essentially a free to use alternative to Cursor and Windsurf Agents, Cline, Roo Code and others.Last updated -258,767PythonMIT License
- AsecurityAlicenseAqualityA coding agent toolkit that transforms LLMs into coding assistants capable of working directly on your codebase with semantic code retrieval and editing tools, providing IDE-like capabilities without requiring API subscriptions.Last updated -33PythonMIT License