Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Use AI
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
What is Claude Code?
Claude Code is Anthropic’s agentic coding tool that lives in your terminal. It can understand your codebase, edit files, run commands, and handle complex multi-step coding tasks using extended thinking and a rich set of built-in tools.Setup
Prerequisite: Claude Code must be installed before integrating with Respan.
Use Claude Code normally
View your traces
Open the Traces page to see your Claude Code conversations with full hierarchy — thinking blocks, tool calls, and responses.
Configuration
Customize the integration with flags:| Flag | Env var | Default | Description |
|---|---|---|---|
--global | — | Both | Write user-level global config (~/.claude/settings.json). |
--local | — | Both | Write per-project config (.claude/settings.local.json). |
--customer-id | RESPAN_CUSTOMER_ID | — | Customer/user identifier for traces. |
--project-id | RESPAN_PROJECT_ID | — | Respan project ID. |
--span-name | — | claude-code | Root span name. |
--workflow-name | — | claude-code | Workflow name for traces. |
--attrs | — | — | Custom attributes JSON (e.g. '{"env":"prod"}'). |
--base-url | RESPAN_BASE_URL | https://api.respan.ai/api | Respan API base URL. |
--dry-run | — | — | Preview changes without writing files. |
Captured Data
| Data | Description |
|---|---|
| User prompt | The user’s input text |
| Assistant response | Claude Code’s final response |
| Thinking blocks | Extended thinking / reasoning content |
| Tool calls | Tool name, input, and output (Read, Write, Bash, Glob, Grep, etc.) |
| Token usage | Input, output, and cache tokens |
| Timing | Start time, end time, latency |
| Model | Model name used (e.g. claude-sonnet-4-20250514, claude-opus-4-20250514) |
Span Types
| Span | log_type | Description |
|---|---|---|
| Root | agent | The complete conversation turn |
| Thinking | generation | Extended thinking / reasoning blocks |
| Tool | tool | Tool invocations (file reads, writes, shell commands, glob, grep, etc.) |