Open Source · Local-first · MIT License

Deep Agent Analytics

A local gateway and observability platform for AI agents: capture every request, inspect every tool call, and account for every token.

npm install -g deepaa
12Providers built-in
46Models built-in
100%Runs locally
0Data uploaded
http://localhost:3210/dashboard
Deepaa 仪表盘(深色)Deepaa 仪表盘(浅色)

The Always-On AI Inspector
that Captures Your Workflows
End-to-End

Always-On Capture

Capture Real HTTP Evidence

Intercept complete requests and responses from any OpenAI or Anthropic compatible endpoint, including prompts, tool calls, streaming events, token usage, and upstream metadata—no agent code changes required.

View Docs →
http://localhost:3210/sessions
Raw request evidence in session tracing(深色)Raw request evidence in session tracing(浅色)
Self-Evolving Structure

Session → Thread → Turn → Step Hierarchy

Automatically group sessions by target + model + date. Recursive threads collapse independently. Each turn breaks down into steps—tool calls and model responses at a glance.

View Example →
http://localhost:3210/sessions
Session → Thread → Turn → Step hierarchy view(深色)Session → Thread → Turn → Step hierarchy view(浅色)
Pricing Intelligence

Token & Cost Accounting

Real-time cost calculation from a built-in catalog of 12 providers / 46 models, with off-peak rate windows and plan credit conversion. Provider × model summaries, cache hit rates, and multiplier comparisons in one view.

View Pricing →
http://localhost:3210/token-pricing
Token pricing center(深色)Token pricing center(浅色)
Provider Control Plane

Unified Provider Management

Connect official presets and custom relays in one click. Plan quota windows, balance sync, keys, and model mappings managed centrally; the pricing catalog is published remotely so clients always stay current.

View Docs →
http://localhost:3210/proxy-management
Provider management(深色)Provider management(浅色)
An AI Workforce

Not a Chatbot. Not a Prompt Tool.

SDK LogsDeepaa
Only see final resultsComplete HTTP request/response chain
Can't trace back promptsPreserve original prompts & system messages
Tool calls are black boxesEvery tool call's input & output visible
Token usage needs manual trackingAuto-aggregate Session/Thread/Turn usage
Cost estimation by guessworkReal-time pricing for 12 providers, including off-peak rates
Debug with console.logOne-click curl command generation
Multi-turn conversations hard to correlateAuto-group sessions by target + model + date

Up and Running in 2 Minutes

One-command install on macOS and Windows via npm. All data stays 100% local.

One-Prompt Install via Your Local Agent

Copy the prompt below and paste it into Claude Code, Codex, Cursor, or any local agent — it will install and launch Deepaa for you.

Install and start Deepaa (a local-first AI agent gateway & observability tool) on this machine:
1. Check the Node.js version — 22+ is required; if missing or outdated, install the LTS release first;
2. Run npm install -g deepaa for a global install; on a slow network, switch the npm registry to https://registry.npmmirror.com first;
3. Once installed, run deepaa to start the service — the browser opens http://localhost:3210 automatically (proxy on port 3211);
4. Verify the Web UI is reachable and report the URL back to me.

Prerequisite · Node.js 22+

# Install with Homebrew
brew install node

# Or download from nodejs.org

Get Started

1. Install the CLI
npm install -g deepaa
2. Start
deepaa

Your browser opens http://localhost:3210 automatically (proxy on port 3211).

⚡
Faster Downloads in China

Use the npmmirror registry to speed up installation:

# Configure npm mirror globally (recommended)
npm config set registry https://registry.npmmirror.com

# Or per-install
npm install -g deepaa --registry=https://registry.npmmirror.com

Node.js installer mirror (CN): npmmirror.com/mirrors/node

Environment Variable Setup

Point Claude Code or Codex clients at the local proxy.

# Claude Code
export ANTHROPIC_BASE_URL=http://localhost:3211/claude

# Codex
export OPENAI_BASE_URL=http://localhost:3211/codex/v1

FAQ