Claude Code
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.
Set up Respan
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.
Example projects
Tracing
Gateway
Claude Code stores conversation transcripts as JSONL files. The Respan hook reads new entries on the Stop event and exports them as structured traces.
Setup
Prerequisites
- Claude Code installed (
npm install -g @anthropic-ai/claude-code) - Python 3.8+ with
requestslibrary
View your trace
Open the Traces page to see hierarchical conversation traces with thinking blocks, tool calls, and token usage.
Captured data
Span types
Debugging
Check the log file for issues.
The hook tracks processed turns in ~/.claude/state/respan_state.json. Delete it to reprocess all turns.