Use any model with Claude Code

Claude Code speaks the Anthropic API, and CompanyFabric exposes /v1/messages alongside the OpenAI-compatible endpoint. Override the base URL and every model in the library becomes available to your agent — including non-Anthropic ones through the messages translation layer.

Step by step

Setup

  1. 1

    Set the base URL and your CompanyFabric key in your environment:

    export ANTHROPIC_BASE_URL="https://api.companyfabric.com"
    export ANTHROPIC_API_KEY="$COMPANYFABRIC_API_KEY"
  2. 2

    Pick the model per session (any catalog id works):

    claude --model anthropic/claude-sonnet-4-5
    # or route to a different provider through the same key:
    claude --model openai/gpt-5.5
  3. 3

    Verify billing: every turn's exact cost appears in your CompanyFabric dashboard usage feed.

Recommended

Models that shine in Claude Code

FAQ

Frequently asked questions

Does subscription-based Claude Code work with a gateway?

Gateway routing applies to API-key usage. If you use a Claude subscription, keep it — add the gateway for overflow, other models, or team keys with spend caps.

Can I cap what Claude Code spends?

Yes — per-key budget caps are set in the dashboard; the key stops at the cap instead of surprising you at invoice time.

One key. Every model. Exact prices.

One key gives Claude Code the whole library. Free starter credits included — no subscription required.