Getting Started
Install and launch the AI Agent Session Center in under a minute.
Prerequisites#
- Node.js 18+ — Download↗
- jq (recommended) — JSON enrichment for hook events
# macOS
brew install jq
# Ubuntu/Debian
sudo apt-get install jqWithout jq, hooks still work but send unenriched JSON (no PID, TTY, or terminal detection).
One-Command Install#
npx ai-agent-session-centerThis does everything:
- Downloads and runs the setup wizard (first time only)
- Installs hook scripts into your CLI config files
- Starts the dashboard server at http://localhost:3333
- Opens your browser automatically
Setup Wizard#
On first run, an interactive wizard asks 6 questions:
| Step | Question | Default | |------|----------|---------| | 1 | Server port | 3333 | | 2 | Which AI CLIs to hook | Claude only | | 3 | Hook density | Medium (12 events) | | 4 | Debug mode | Off | | 5 | Session history retention | 24 hours | | 6 | Dashboard password | None |
Re-run the wizard anytime with npx ai-agent-session-center --setup.
Your First Session#
- Start the dashboard — it opens at
http://localhost:3333 - Open a terminal and run your AI CLI (e.g.,
claude) - Watch the dashboard — a 3D robot appears representing your session
- Click the robot to see full session details, terminal, and prompt history
The robot animates based on what the AI agent is doing:
- Green idle — no activity, robot hangs out at the coffee lounge
- Cyan prompting — you sent a prompt, robot walks to a desk
- Orange working — tools are running, charging effect on the robot
- Yellow approval — the agent needs your permission, visor flashes
Alternative Install Methods#
Global Install#
npm install -g ai-agent-session-center
ai-agent-session-centerFrom Source#
git clone https://github.com/coding-by-feng/ai-agent-session-center.git
cd ai-agent-session-center
npm install
npm run devCLI Options#
ai-agent-session-center [options]
--port <number> Server port (default: 3333)
--no-open Don't auto-open browser
--debug Enable verbose logging
--setup Re-run the setup wizardWhat Gets Installed#
The setup process adds hook scripts to your CLI config files:
| CLI | Config File | Hook Script |
|-----|------------|-------------|
| Claude Code | ~/.claude/settings.json | ~/.claude/hooks/dashboard-hook.sh |
| Gemini CLI | ~/.gemini/settings.json | ~/.gemini/hooks/dashboard-hook-gemini.sh |
| Codex | ~/.codex/config.toml | ~/.codex/hooks/dashboard-hook-codex.sh |
All hooks are installed with "_source": "ai-agent-session-center" so they can be cleanly removed with npm run uninstall-hooks.