Claude Code is Anthropic’s agentic coding tool that lives in your terminal. Respan gives you hierarchical traces of every conversation including thinking blocks, tool calls, and token usage — and gateway routing through the Anthropic-compatible Respan endpoint.
Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.
Run npx @respan/cli setup to set up with your coding agent.
Claude Code stores conversation transcripts as JSONL files. The Respan hook reads new entries on the Stop event and exports them as structured traces.
npm install -g @anthropic-ai/claude-code)requests libraryOpen the Traces page to see hierarchical conversation traces with thinking blocks, tool calls, and token usage.
Check the log file for issues.
The hook tracks processed turns in ~/.claude/state/respan_state.json. Delete it to reprocess all turns.