A self-hosted service for sharing Claude Code sessions and managing implementation plans with your team.
Since Claude Code logs contain source code and environment information, AgenTrace is designed to run on your local machine or internal network rather than on the public internet.
Demo: https://satetsu888.github.io/agentrace
- Session Sharing: Automatically capture and share Claude Code conversations with your team
- Plan Management: Create and track implementation plans via Claude Code's MCP tools
docker run -d --name agentrace -p 9080:9080 -v $(pwd)/data:/data satetsu888/agentrace:latestnpx agentrace init --url http://localhost:9080This will:
- Open your browser for registration/login
- Automatically configure API key
- Install Claude Code hooks and MCP server
Once setup is complete:
- Your Claude Code sessions will be automatically sent to the server
- Plan management tools will be available in Claude Code
Open http://localhost:9080 to:
- Review shared sessions
- View and manage implementation plans
After setup, Claude Code can use the following MCP tools:
| Tool | Description |
|---|---|
search_plans |
Search plans with filtering options |
read_plan |
Read a plan by ID |
create_plan |
Create a new plan |
update_plan |
Update an existing plan |
set_plan_status |
Change plan status (scratch/planning/implementation/complete) |
Claude Code will automatically use these tools when discussing implementation plans.
| Command | Description |
|---|---|
npx agentrace init --url <url> |
Initial setup with browser authentication |
npx agentrace login |
Open web dashboard in browser |
npx agentrace on |
Enable hooks (keeps credentials) |
npx agentrace off |
Disable hooks temporarily (keeps credentials) |
npx agentrace uninstall |
Remove all hooks and configuration |
If you want to pause session tracking without removing your configuration:
# Disable hooks
npx agentrace off
# Re-enable hooks later
npx agentrace on| Variable | Default | Description |
|---|---|---|
DB_TYPE |
sqlite | Database type (memory, sqlite, postgres, mongodb, turso) |
DATABASE_URL |
/data/agentrace.db | Database connection string |
DEV_MODE |
false | Enable debug logging |
GITHUB_CLIENT_ID |
- | GitHub OAuth Client ID |
GITHUB_CLIENT_SECRET |
- | GitHub OAuth Client Secret |
| DB_TYPE | DATABASE_URL Example | Use Case |
|---|---|---|
| memory | - | Development/Testing |
| sqlite | /data/agentrace.db |
Local/Small-scale |
| postgres | postgres://user:pass@localhost:5432/agentrace?sslmode=disable |
Production |
| mongodb | mongodb://user:pass@localhost:27017/agentrace |
AWS DocumentDB |
| turso | libsql://[db-name]-[org].turso.io?authToken=[token] |
Edge/Serverless |
# SQLite (default)
docker run -d -p 9080:9080 -v $(pwd)/data:/data satetsu888/agentrace:latest
# PostgreSQL
docker run -d -p 9080:9080 \
-e DB_TYPE=postgres \
-e DATABASE_URL="postgres://user:pass@host:5432/agentrace?sslmode=disable" \
satetsu888/agentrace:latest
# MongoDB
docker run -d -p 9080:9080 \
-e DB_TYPE=mongodb \
-e DATABASE_URL="mongodb://user:pass@host:27017/agentrace" \
satetsu888/agentrace:latest
# Turso
docker run -d -p 9080:9080 \
-e DB_TYPE=turso \
-e DATABASE_URL="libsql://your-db-your-org.turso.io?authToken=your-token" \
satetsu888/agentrace:latestTo completely remove AgenTrace:
npx agentrace uninstallThis removes:
- Claude Code hooks from
~/.claude/settings.json - MCP server configuration from
~/.claude/claude_desktop_config.json - Configuration from
~/.agentrace/
docker stop agentrace && docker rm agentracedocker rmi satetsu888/agentrace:latestrm -rf ./dataMIT