This quickstart guide will walk you through setting up Cipher, ByteRover’s memory-powered AI agent framework with MCP integration. Follow these steps to install Cipher, configure your agent, set up environment variables, and start using Cipher in both CLI and MCP modes.
# Clone and setupgit clone https://github.com/campfirein/cipher.gitcd cipher# Configure environmentcp .env.example .env# Edit .env with your API keys# Start with Dockerdocker-compose up --build -d# Testcurl http://localhost:3000/health
First, you’ll need to configure your agent settings in the memAgent/cipher.yml file. This file controls your LLM provider, MCP servers, and system prompts.
Create or modify memAgent/cipher.yml with your preferred settings:
Copy
# MCP Servers (optional)mcpServers: filesystem: type: stdio command: npx args: - -y - '@modelcontextprotocol/server-filesystem' - .# If you don't wanna add any mcp server, leave this like this:# mcpServers: {}# Choose ONLY ONE of the following LLM providersllm: provider: openai model: gpt-4o-mini apiKey: $OPENAI_API_KEY maxIterations: 50# System Prompt - User customizablesystemPrompt: enabled: true content: | You are an AI programming assistant focused on coding and reasoning tasks.
💡 Heads up! All the config variables below come with sensible defaults. You only need to add them to your .env file if you want to override something—otherwise, you’re good to go!
# Install globallynpm install -g @byterover/cipher# Interactive modecipher# One-shot commandcipher "Add this to memory as common causes of 'CORS error' in local dev with Vite + Express."
CLI Mode Commands
Copy
# Session management/session list # List all sessions/session new [id] # Create new session/session switch <id> # Switch to session# Configuration and stats/config # Show current config/stats # Show memory statistics/help # Show help
Note: When you start Cipher in CLI mode, the active session is always set to default unless you create or switch to another session.