Watchtower: A Local Proxy for Monitoring Claude Code API Traffic

What Watchtower Does
Watchtower is a local HTTP proxy combined with a real-time web dashboard. It intercepts all API traffic between Claude Code (or the Codex CLI) and their backend APIs. This allows developers to see every request, Server-Sent Events (SSE) stream, tool definition, system prompt, token usage, and rate limit in real time.
Key Features and Motivation
The tool was built using Claude Code itself. According to the creator, Claude Code typically sends 2-3 API calls per user message: one for quota checks, another for token counts, and then the actual streaming request. It also spawns subagents with completely different system prompts and smaller tool sets. The main system prompt alone is reported to be over 20,000 tokens. Normally, this internal communication is not visible to the user.
Setup and Usage
Installation is done via npm:
npm install -g watchtower-ai && watchtower-ai
To use it, run Claude Code while pointing it at the proxy by setting an environment variable:
ANTHROPIC_BASE_URL=http://localhost:8024 claude
The dashboard interface opens in your browser at http://localhost:8025.
Project Details
The entire project—including the proxy server, provider detection, SSE parsing, and the dashboard UI—was built using Claude Code. It is released under the MIT license, is free and open source, and has no paid tiers or account requirements.
The creator states this tool is useful for developers who want to see reasoning traces, understand token consumption patterns, or learn how the agent harness works in order to build better AI agents themselves.
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenYak: Open-Source Desktop AI Agent for Local File Management and Automation
OpenYak is an open-source desktop AI assistant that runs entirely on your machine, offering file management, data analysis, and office automation with 100+ AI models through OpenRouter and 20+ BYOK providers.

Mia: Local AI Workspace Daemon with Native Android App and P2P Streaming
Mia is a daemon that runs on your machine and pairs with a native Android app over P2P, allowing you to kick off and monitor long-running AI coding tasks from your phone. It supports OpenCode, Claude Code, Gemini CLI, and Codex agents, streaming output directly to your device in real time.

Claude Sleuth: A 56-Task Investigation Workflow for Claude AI
Claude Sleuth is a structured investigation workflow for Claude AI with 6 phases and 56 tasks, featuring persistent state storage via Cloudflare D1 and standardized output conventions including ISO 8601 timestamps, POLE entity records, and ICD 203 probability language.

ClawProxy: Self-Hosted AI Routing Proxy with Dashboard
ClawProxy is an open-source, self-hosted proxy that centralizes management of multiple AI API keys and models. It provides a unified endpoint, smart key rotation, provider fallback, and real-time logging via a React dashboard.