Run your Ai conversations through your own Claude Code subscription, right from the CogmemUI web interface. Includes built-in CogmemAi persistent memory so your Ai remembers you across every session.
- Routes CogmemUI chat through your local Claude Code CLI (uses your $200/mo subscription)
- Gives the Ai access to your local files (read, write, edit, search)
- Automatically connects CogmemAi persistent memory (if you have an API key)
- Runs on
localhostonly — your data never leaves your machine
- Node.js v18 or newer
- Claude Code installed and signed in (
claude login)
npm install -g cogmemui-localcogmemui-localThe companion will start and display a bearer token. Copy it.
- Open CogmemUI
- Go to Settings > Local Server
- Paste the token and click Save & Connect
- Enable "Use Local Ai" to route chat through your Claude subscription
That's it! Your token is saved automatically — you only need to do this once.
Run this command to create a desktop shortcut and auto-start on login:
cogmemui-local setupThis creates:
- A desktop shortcut ("CogmemUI Local") for manual start
- A startup entry so the companion runs automatically when you log in
If you have a CogmemAi API key, add it in CogmemUI Settings > API Keys. The companion will automatically give your Ai access to CogmemAi memory tools — no extra configuration needed.
cogmemui-local [options]
--port <number> Port to listen on (default: 3847)
--allow-dir <path> Allowed directory (can specify multiple)
--origin <url> Allowed CORS origin (can specify multiple)
--reset-token Generate a new bearer token
--help, -h Show this help
The companion runs a local HTTP server on 127.0.0.1:3847. When you send a message in CogmemUI with "Use Local Ai" enabled:
- CogmemUI sends your message + context to the companion
- The companion spawns
claude -pwith your system prompt and memory context - If you have a CogmemAi API key, the companion automatically configures memory tools
- Claude's response streams back to CogmemUI in real-time
Your Claude subscription handles the Ai costs. CogmemUI handles the interface. CogmemAi handles the memory.
- Runs on
localhostonly (127.0.0.1) — not accessible from the network - Bearer token authentication on every request
- File access is sandboxed to your home directory by default
- Shell commands are disabled by default
MIT