Overview
The Fallom proxy for Claude Code gives you:- Cost tracking - See exactly how much each coding session costs
- Performance monitoring - Track latency and token usage
- Session replay - Review conversations and decisions Claude made
- Error detection - Catch and debug Claude Code issues
Quick Start
Set one environment variable to route all Claude Code requests through Fallom:Setup
1. Get your Fallom API Key
Get your API key from the Fallom dashboard. Your key will look like:flm_abc123xyz...
2. Set the base URL
Add this to your shell profile (~/.zshrc, ~/.bashrc, etc.):
Replace
flm_YOUR_KEY_HERE with your actual Fallom API key from step 1.3. Reload your shell
4. Use Claude Code normally
How it works
- Receives your Claude Code request
- Logs the trace to Fallom (async, non-blocking)
- Forwards to Anthropic API unchanged
- Streams the response back to you in real-time
- Logs the final trace with usage data
What you’ll see in Fallom
Each Claude Code session creates traces with:| Field | Description |
|---|---|
| Session ID | Groups all requests in the same coding session |
| Model | Which Claude model was used (Sonnet, Haiku, etc.) |
| Duration | How long the request took |
| Tokens | Input and output token counts |
| Cost | Calculated cost based on token usage |
| Messages | Full conversation context |
| Tool calls | Which tools Claude used (file edits, bash commands, etc.) |
Advanced Configuration
Custom metadata
Pass custom metadata via environment variables starting withX_FALLOM_:
Different environments
Use different Fallom keys for different environments:Disable temporarily
To disable Fallom for a single command:Pricing
The Fallom proxy is free to use. You only pay for:- Your Claude Code API usage (to Anthropic)
- Your Fallom plan (for trace storage and analytics)
Troubleshooting
Claude Code not sending traces
-
Check the environment variable is set:
-
Verify your Fallom API key:
- Go to app.fallom.com/settings/api-keys
- Check that your key is active
-
Check Railway logs:
- The proxy logs all requests
- Look for errors in the Railway dashboard
Requests failing
If Claude Code requests fail after setting the base URL:-
Remove the base URL temporarily:
If this works, the issue is with the proxy.
-
Check your Anthropic API key:
-
Contact support:
- Share the error message
- Include your Fallom API key (first 8 characters only)
Traces not appearing in dashboard
Traces should appear within 1-2 seconds. If they don’t:-
Check the correct organization:
- Ensure you’re viewing the right org in Fallom
-
Verify API key permissions:
- API key might not have trace write permissions
-
Check filters:
- Clear any filters in the traces view
Security
- API keys never logged - Your Anthropic API key is never stored
- TLS encryption - All traffic uses HTTPS
- No data retention - Proxy doesn’t store any request/response data
- Open source - Proxy code is auditable
Examples
Track costs per project
Debug a specific session
Monitor token usage
All traces include:usage.input_tokens- Tokens in your prompt + contextusage.output_tokens- Tokens in Claude’s responseusage.cache_read_input_tokens- Tokens loaded from cacheusage.cache_creation_input_tokens- New tokens cached

