Skip to content

Quickstart

Go to codecosts.com and click Get Started Free. Sign in with email, Google, or GitHub — no credit card required.

In the dashboard, go to Settings and create a proxy endpoint. Give it a name like “my-project” or “production”.

You’ll get a URL like https://codecosts.com/proxy/my-project.

Set the ANTHROPIC_BASE_URL environment variable to your proxy endpoint URL. Any Claude client that respects this variable will route through Codecosts automatically.

Terminal window
export ANTHROPIC_BASE_URL=https://codecosts.com/proxy/my-project
claude "What is 2 + 2?"

That’s it. Your existing API key and auth flow work unchanged — Codecosts forwards everything to Anthropic transparently.

Every API call appears in the Traces tab within seconds. Click any trace to see the full detail:

  • Token breakdown — input, output, cache creation, cache read, and calculated cost
  • Full request — model, system prompt, tools, messages
  • Full response — parsed assistant output, or raw SSE for streaming calls
  • Traces Guide — filtering, searching, and understanding your usage
  • API Reference — explore the usage and management endpoints
  • SDK Guide — query usage data programmatically
  • CLI — check usage from the terminal