AgenTrace is a service for sharing Claude Code sessions and managing implementation plans with your team.
Live 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
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.
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 init --url <url> --proxy <proxy> |
Setup with HTTP proxy |
npx agentrace init --url <url> --local |
Setup for current project only |
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 enable AgenTrace only for specific projects (not globally), use the --local option:
cd ~/projects/my-project
npx agentrace init --url http://localhost:9080 --localThis will:
- Install hooks in
{project}/.claude/settings.jsoninstead of global settings - Configure MCP server in local scope (stored in
~/.claude.jsonunderprojects.{path})
Use --local --separate-local-config to also store the config (API key) in the project directory.
If you want to pause session tracking without removing your configuration:
# Disable hooks
npx agentrace off
# Re-enable hooks later
npx agentrace onIf you need to connect through an HTTP proxy:
# Using --proxy option
npx agentrace init --url http://localhost:9080 --proxy http://proxy.example.com:8080
# With authentication
npx agentrace init --url http://localhost:9080 --proxy http://user:pass@proxy.example.com:8080The CLI also supports HTTPS_PROXY and HTTP_PROXY environment variables as a fallback.
See CLI README for more details.
| Variable | Default | Description |
|---|---|---|
DB_TYPE |
sqlite | Database type (memory, sqlite, postgres, dynamodb, 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 |
| dynamodb | dynamodb://us-east-1/agentrace_ |
AWS Serverless |
| turso | libsql://[db-name]-[org].turso.io?authToken=[token] |
Edge/Serverless |
Note: For DynamoDB, the path component (e.g.,
agentrace_) is used as a table name prefix. Tables will be created asagentrace_sessions,agentrace_users, etc.
# 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
# DynamoDB
docker run -d -p 9080:9080 \
-e DB_TYPE=dynamodb \
-e DATABASE_URL="dynamodb://us-east-1/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.json - Configuration from
~/.agentrace/
To remove project-local settings only:
npx agentrace uninstall --localdocker stop agentrace && docker rm agentracedocker rmi satetsu888/agentrace:latestrm -rf ./dataMIT

