Skip to main content
idapt
HomeCodeAI ModelsPricing
Sign inStart free trial

Claude Code with idapt

Route Claude Code's inference through idapt: one environment variable, per-key spend caps included.

Last reviewed 2026-07-17

Point it at idapt

bash
export ANTHROPIC_BASE_URL="https://idapt.app/api/anthropic/v1"
export ANTHROPIC_API_KEY="$IDAPT_API_KEY"
claude

Claude Code reads both variables at startup; unset them to switch back.

Going further

bash
# Optional: give Claude Code your idapt workspace over MCP
claude mcp add --transport http idapt https://idapt.app/api/mcp \
  --header "Authorization: Bearer $IDAPT_API_KEY"

Inference routing and workspace access are independent; use either or both.

Pitfalls

Spend caps make agent keys safe

Mint a dedicated key with a lifetime, monthly, or daily USD cap before handing it to an agent. The cap is enforced on every metered endpoint.

References

  • Connect Claude Code over MCP
  • Per-key spend caps
  • Anthropic-compatible API reference

More quickstarts

Anthropic SDKAiderCline
  • Home
  • Pricing
  • AI Models
  • Image models
  • Voice models
  • Video models
  • Rankings
  • New models
  • Model status
  • Multi-Model Chat
  • Agents
  • Computers
  • Drive
  • Automations
  • AI Gateway
  • All features →
  • LLM cost calculator
  • Token counter
  • All free tools →
  • Blog
  • Use cases
  • Comparisons
  • Best of
  • Benchmarks
  • Demos
  • Changelog
  • Help center
  • FAQ
  • Privacy
  • Compare all models
  • Support
  • idapt Code
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)