Show HN: Claude proxy to record interactions-browse, search sessions, usage, MCP
hackernews
|
|
📰 뉴스
#anthropic
#claude
#하드웨어/반도체
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
Claude Code를 위한 로컬 프록시 도구로, 모든 요청과 응답을 아카이빙하고 웹 UI를 통해 세션 탐색, 전문 검색, 토큰 사용량 및 비용 추적이 가능합니다. 내장된 MCP 서버를 제공하여 에이전트가 과거 세션을 조회해 이미 결제한 컨텍스트를 다시 생성하는 비용을 절감할 수 있습니다. 사용자는 127.0.0.1:5555에서 서버를 실행하고 ANTHROPIC_BASE_URL을 설정하여 일반적인 HTTP 서버처럼 사용할 수 있습니다.
본문
A local proxy for Claude Code that archives every request and response, with a web UI for browsing sessions, searching transcripts, inspecting raw API traffic, tracking token usage and cost, and an MCP server for Claude to inspect past sessions. - Find any past conversation. Full-text search across every session you've ever run, with ranked results and highlighted snippets. - See what Claude costs you. Token and dollar spend broken down by session, account, and model, plus a live chart of how close you are to your 5-hour and weekly rate limits. - Let Claude search its own history. A built-in MCP server so the agent can look up what you discussed last week instead of re-deriving context you already paid for. Run cctape with uv: uvx cctape On first run, your browser opens to a setup page at http://127.0.0.1:5555/setup with the one env var you need to copy. After that, run claude as usual — sessions appear in the UI as they happen. Pass --no-browser to skip the auto-open. Add to ~/.zshrc (or ~/.bashrc ): export ANTHROPIC_BASE_URL=http://127.0.0.1:5555/proxy Add to user settings: "claudeCode.environmentVariables": [ {"name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:5555/proxy"} ] Register the MCP server with the claude CLI so Claude Code can search its own archive: claude mcp add --transport http cctape http://127.0.0.1:5555/mcp This exposes search_transcripts and get_session_window to the agent. --host /--port — bind address (defaults:127.0.0.1 ,5555 )--no-browser — don't auto-open the browser on first runCCTAPE_DB — database path (default:~/.cctape/cctape.db ) cctape is a regular HTTP server; run it under whatever supervisor you like (launchd, systemd, tmux, etc.). Once it's up on 127.0.0.1:5555 and your ANTHROPIC_BASE_URL points at /proxy , it just stays out of the way. Clone the repo and run the frontend + backend separately during development. Build the frontend once (output is served by the backend from backend/src/cctape/static/ ): cd frontend && npm install && npm run build Start the backend with reload: cd backend && uv run uvicorn --reload --factory --port=5555 cctape:create_app Open http://127.0.0.1:5555. The frontend can also run on its own dev server with HMR: cd frontend && npm run dev Pre-commit hooks run ruff, pyright, pytest, eslint, and tsc.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유