QuotioQuotio
Integrations

Claude Code

Claude Code

Quotio integrates with the claude CLI tool (Claude Code) by providing a local proxy server that routes requests through configured Anthropic providers.

Note: You need to generate an API key from Quotio's API Keys tab to authenticate with the proxy.

Configuration Methods

There are two ways to configure Claude Code with Quotio: automatic (recommended) or manual.

  1. Ensure Proxy is Running: Go to Dashboard tab and start the proxy if not already running
  2. Configure Agent: Go to Agents tab → Find Claude Code → Click Configure
  3. Follow Setup: The app will guide you through environment variable setup
Automatic Claude Code configuration

This method automatically sets up the required environment variables and config files.

Manual Configuration

If automatic setup doesn't work for your setup, configure manually by setting environment variables:

export ANTHROPIC_BASE_URL="http://localhost:8317"
export ANTHROPIC_API_KEY="your-generated-api-key-here"
Manual Claude Code configuration

Verify your specific version of claude-code supports these variables. If not, you may need to use a config file.

How it works

  1. You run claude "Refactor this file".
  2. The request is sent to localhost:8317.
  3. Quotio receives the request.
  4. Quotio checks your Anthropic agents.
  5. If your primary Claude key is exhausted, Quotio switches to the backup Claude key.
  6. The request is forwarded to Anthropic's actual API.
  7. The response is streamed back to your terminal.

Benefits

  • Unified Billing: Track how much your CLI usage costs alongside your IDE usage.
  • Uninterrupted Coding: Never get stopped by a "Credit Limit Reached" error in the middle of a refactor session.

Next Steps

Learn about integrating with OpenCode.

OpenCode

On this page