Overview
This guide walks you through:- Getting a Mubit API key
- Installing Codaph
- Setting up your first project
- Running your first sync
- Exploring the TUI
- Setting up MCP integration (optional)
Time to complete: 5-10 minutes
Prerequisites
Required
Required
- A repository you want to inspect
- A coding agent CLI you use (Codex, Claude Code, or Gemini CLI)
- Node.js 18 or higher
- Git installed
Optional (Recommended)
Optional (Recommended)
- OpenAI API key for enhanced query/chat quality
ghCLI for auto-detecting GitHub actor ID
Step 1: Get Your Mubit API Key
Codaph uses Mubit for shared cloud memory and sync. You need a Mubit API key to enable collaboration features.Create a Mubit account
Navigate to console.mubit.ai and create an account or sign in.
Generate an API key
In the Mubit console:
- Navigate to the developer/API access area
- Click Create API Key
- Copy the key and store it securely
Optional: Get an OpenAI key
For OpenAI-assisted query/chat synthesis:
- Get an API key from platform.openai.com
- Default model is
gpt-4.1-mini(configurable viaOPENAI_MODEL)
Without OpenAI, Codaph falls back to Mubit responses for queries.
Step 2: Install Codaph
See the Installation Guide for detailed instructions. Quick options:Step 3: Configure API Keys
Set your Mubit API key globally (recommended beforecodaph init):
Keys are stored in
~/.codaph/settings.json. If you skip this step, codaph init will prompt for the Mubit key.Step 4: Initialize Your Project
Navigate to your repository and run the initialization wizard:Run codaph init
- Prompt for Mubit API key if not configured
- Detect agent providers (
.codex/,.claude/,.gemini/) - Let you multi-select which agents to track
- Set up automatic sync hooks (post-commit, agent-complete)
- Create
.codaph/project.jsonand.codaph/mcp/claude-code.json
Non-interactive setup (CI/scripts)
Non-interactive setup (CI/scripts)
For automated environments, use explicit flags:
Step 5: Run Your First Sync
Pull cloud activity and sync local state:codaph pull and codaph sync are equivalent commands. Both run the fast Mubit-first sync path.Step 6: Explore the TUI
Launch the terminal UI to browse agent activity:TUI Quick Reference
Navigation
Navigation
Session Actions
Session Actions
s- Run sync now (push + pull)r- Pull cloud activity (manual refresh)c- Filter by contributor/actorm- Open Mubit chat panel (requires OpenAI)
Inspection
Inspection
Inside a session:
- View prompts, thoughts, and reasoning
- Browse file diffs with syntax highlighting
- See timeline of events with timestamps
Step 7: Query Mubit (Optional)
Ask semantic questions about your codebase:With
OPENAI_API_KEY configured, Codaph synthesizes concise answers using OpenAI on top of Mubit evidence. Without it, you get raw Mubit responses.Step 8: Backfill History (Optional)
Import older local agent sessions from Codex, Claude Code, or Gemini CLI:Step 9: Set Up MCP Integration (Optional)
Connect Claude Code to Codaph via MCP for programmatic access:User scope (
~/.claude.json) is recommended because one setup works across all repos. Codaph tools accept cwd to target specific projects.- Open Claude Code
- Navigate to
/mcp - Confirm
codaphshowsconnected
Verify Your Setup
Check that everything is working:codaph status:
- Mubit runtime: enabled
- Sync automation: enabled
- Last remote pull: recent timestamp
- Agent providers: your selected providers (codex, claude-code, etc.)
Team Quickstart
For teams sharing a Mubit project:Use the same Mubit project ID
Set
--mubit-project-id <owner/repo> or let Codaph auto-detect from git remote origin.Unique actor IDs
Codaph auto-detects actor ID from
gh api user, git config, or $USER. Ensure each person has a unique ID.Troubleshooting
Mubit connection fails
Mubit connection fails
Check your API key:Verify key is set:Or check settings file:
No sessions show up
No sessions show up
Run a backfill to import local history:Check if agent directories exist:
TUI shows errors
TUI shows errors
Check sync state:Try a fresh pull:
MCP connection failed
MCP connection failed
Test the server directly:Re-run setup:Check Claude Code
/mcp panel for errors.Next Steps
TUI Guide
Master all TUI keyboard shortcuts and workflows.
CLI Reference
Explore all available commands and flags.
Collaboration
Set up team workflows with shared Mubit memory.
Architecture
Understand Codaph’s dual-store design and pipeline flow.