Prerequisites
- Node.js 20+
- An MCP-compatible client (Claude Desktop, Claude Code, Cursor, VS Code, etc.)
Installation
- npx (Recommended)
- Global Install
No installation required. Configure your MCP client to run via npx:
Automatic Setup (Recommended)
If you have@cohaku/cli installed globally:
- Initialize the database
- Auto-detect installed AI tools (Claude Code, Cursor, VS Code, Windsurf, etc.)
- Register the MCP server with each detected tool
Manual Setup
For manual configuration, see the individual integration guides:Claude Code
Claude Desktop
Cursor
VS Code
Windsurf
OpenCode
Verify Connection
Start your MCP client and check that the Cohaku tools appear. You should see 24 tools includingadd_memory, search_memories, get_context, session_start, generate_claude_md, etc.
First Usage
Once connected, your AI agent can immediately start using Cohaku:CLI Commands
If installed globally, thecohaku CLI provides commands for all memory operations:
| Command | Description |
|---|---|
cohaku init | Initialize database and register MCP with detected tools |
cohaku memory add | Store a new memory |
cohaku memory search | Search memories |
cohaku memory context | Load prioritized context |
cohaku graph entity add | Add a knowledge graph entity |
cohaku graph | Search the knowledge graph |
cohaku generate <tool> | Export memories to editor config |
cohaku status | Show memory statistics |
Configuration
The default database path is~/.config/cohaku/memory.db. This can be configured via environment variables:
| Variable | Default | Description |
|---|---|---|
COHAKU_DB_PATH | ~/.config/cohaku/memory.db | SQLite database file path |
Next Steps
- Learn about Memory Layers to understand how memories are organized
- Browse the MCP Tools reference for all available tools
- Explore the CLI reference for terminal-based memory management
- See all Integrations for supported AI coding tools