{"id":29806323,"url":"https://github.com/seifghazi/claude-code-proxy","last_synced_at":"2025-07-28T14:08:06.614Z","repository":{"id":301993149,"uuid":"1010850920","full_name":"seifghazi/claude-code-proxy","owner":"seifghazi","description":"Proxy that captures and visualizes in-flight Claude Code requests and conversations. ","archived":false,"fork":false,"pushed_at":"2025-07-25T13:55:04.000Z","size":3265,"stargazers_count":120,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-25T20:47:13.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seifghazi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T23:30:03.000Z","updated_at":"2025-07-25T20:22:11.000Z","dependencies_parsed_at":"2025-06-30T02:26:22.402Z","dependency_job_id":"aa130050-8d09-4e7d-9c3d-f18f3326e9bd","html_url":"https://github.com/seifghazi/claude-code-proxy","commit_stats":null,"previous_names":["seifghazi/claude-code-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seifghazi/claude-code-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seifghazi%2Fclaude-code-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seifghazi%2Fclaude-code-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seifghazi%2Fclaude-code-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seifghazi%2Fclaude-code-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seifghazi","download_url":"https://codeload.github.com/seifghazi/claude-code-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seifghazi%2Fclaude-code-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267527835,"owners_count":24102019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-28T14:05:57.122Z","updated_at":"2025-07-28T14:08:06.606Z","avatar_url":"https://github.com/seifghazi.png","language":"TypeScript","readme":"# Claude Code Proxy\n\n![Claude Code Proxy Demo](demo.gif)\n\nA dual-purpose monitoring solution that serves as both a proxy for Claude Code requests and a visualization dashboard for your Claude API conversations.\n\n## What It Does\n\nClaude Code Proxy serves two main purposes:\n\n1. **Claude Code Proxy**: Intercepts and monitors requests from Claude Code (claude.ai/code) to the Anthropic API, allowing you to see what Claude Code is doing in real-time\n2. **Conversation Viewer**: Displays and analyzes your Claude API conversations with a beautiful web interface\n\n## Features\n\n- **Transparent Proxy**: Routes Claude Code requests through the monitor without disruption\n- **Request Monitoring**: SQLite-based logging of all API interactions\n- **Live Dashboard**: Real-time visualization of requests and responses\n- **Conversation Analysis**: View full conversation threads with tool usage\n- **Easy Setup**: One-command startup for both services\n\n## Quick Start\n\n### Prerequisites\n- Go 1.20+\n- Node.js 18+\n- Claude Code\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/seifghazi/claude-code-proxy.git\n   cd claude-code-proxy\n   ```\n\n2. **Set up your environment variables**\n   ```bash\n   cp .env.example .env\n   ```\n\n3. **Install and run** (first time)\n   ```bash\n   make install  # Install all dependencies\n   make dev      # Start both services\n   ```\n   \n   Or use the script that does both:\n   ```bash\n   ./run.sh\n   ```\n\n4. **Subsequent runs** (after initial setup)\n   ```bash\n   make dev\n   # or\n   ./run.sh\n   ```\n\n5. **Using with Claude Code**\n\nTo use this proxy with Claude Code, set:\n```bash\nexport ANTHROPIC_BASE_URL=http://localhost:3001\n```\n\nThen launch Claude Code using the `claude` command.\n\nThis will route Claude Code's requests through the proxy for monitoring.\n\n### Access Points\n- **Web Dashboard**: http://localhost:5173\n- **API Proxy**: http://localhost:3001\n- **Health Check**: http://localhost:3001/health\n\n## Advanced Usage\n\n### Running Services Separately\n\nIf you need to run services independently:\n\n```bash\n# Run proxy only\nmake run-proxy\n\n# Run web interface only (in another terminal)\nmake run-web\n```\n\n### Available Make Commands\n\n```bash\nmake install    # Install all dependencies\nmake build      # Build both services\nmake dev        # Run in development mode\nmake clean      # Clean build artifacts\nmake db-reset   # Reset database\nmake help       # Show all commands\n```\n\n## Configuration\n\nCreate a `.env` file with:\n```\nPORT=3001\nDB_PATH=requests.db\nANTHROPIC_FORWARD_URL=https://api.anthropic.com\n```\n\nSee `.env.example` for all available options.\n\n\n## Project Structure\n\n```\nclaude-code-proxy/\n├── proxy/                  # Go proxy server\n│   ├── cmd/               # Application entry points\n│   ├── internal/          # Internal packages\n│   └── go.mod            # Go dependencies\n├── web/                   # React Remix frontend\n│   ├── app/              # Remix application\n│   └── package.json      # Node dependencies\n├── run.sh                # Start script\n├── .env.example          # Environment template\n└── README.md            # This file\n```\n\n## Features in Detail\n\n### Request Monitoring\n- All API requests logged to SQLite database\n- Searchable request history\n- Request/response body inspection\n- Conversation threading\n\n### Prompt Analysis\n- Automatic prompt grading\n- Best practices evaluation\n- Complexity assessment\n- Response quality metrics\n\n### Web Dashboard\n- Real-time request streaming\n- Interactive request explorer\n- Conversation visualization\n- Performance metrics\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":["TypeScript","Proxies \u0026 Model Integrations"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseifghazi%2Fclaude-code-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseifghazi%2Fclaude-code-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseifghazi%2Fclaude-code-proxy/lists"}