LiteLLM の背後に無制限 Claude

LiteLLM の背後に無制限 Claude

LiteLLM は多数のアプリの通信を 1 つのエンドポイントに集約するため、スタック内で最も密な負荷を持ちます。定額無制限がその総量を固定費に変えます。

Configure model_list

Each config.yaml entry pairs a client-facing model_name with litellm_params. The model field's prefix sets the wire protocol — openai/<model> for the gateway's OpenAI-compatible surface (api_base with /v1), or anthropic/<model> for native Messages (root api_base).

Point api_base at the unlimited gateway and read the key via os.environ/<VAR> so it loads at proxy start.

The suffix gotcha

anthropic/<model> auto-appends /v1/messages to the root; disable that with LITELLM_ANTHROPIC_DISABLE_URL_SUFFIX=true for custom paths. openai/<model> appends /chat/completions to a /v1 base. Keep the prefix aligned with the gateway surface or you get 400s.

The client-facing model_name stays arbitrary, so your apps can keep their own naming while LiteLLM maps to the gateway.

LiteLLM in front of Claude Code

A favourite setup is LiteLLM as a local proxy that Claude Code points at — 'litellm claude code proxy'. The proxy exposes one stable endpoint, you swap upstreams in config.yaml, and the unlimited plan covers all of it.

Searches for 'litellm claude max' reflect users wanting heavy Claude usage without the meter. A flat-rate gateway upstream is exactly that.

Why concentrated volume wants flat-rate

Per-token billing on the proxy's combined stream is the hardest cost in the stack to forecast. Flat-rate unlimited turns it into a single line item.

You can fan many teams and apps through one LiteLLM endpoint and keep the bill fixed for the period.

# config.yaml
model_list:
  - model_name: claude-sonnet-4-5
    litellm_params:
      model: openai/claude-sonnet-4-5
      api_base: https://claudeapikey.dev/v1
      api_key: os.environ/AIPRIME_KEY

FAQ

How do I route LiteLLM to unlimited Claude?
Add a model_list entry: model: openai/claude-sonnet-4-5, api_base {SITE}/v1, api_key via os.environ. Or anthropic/<model> with the root api_base.

openai/ or anthropic/ prefix?
openai/ for the OpenAI-compatible surface (base with /v1); anthropic/ for native Messages (root + /v1/messages).

Stop LiteLLM appending /v1/messages?
Set LITELLM_ANTHROPIC_DISABLE_URL_SUFFIX=true and give the full path.

Why unlimited behind LiteLLM?
The proxy concentrates many apps' traffic into the densest stream in your stack — flat-rate unlimited makes that aggregate a fixed cost.

Start using Claude in minutes

Get an API key — no Anthropic account or waitlist required.

Get your API key

その他の Claude API ガイド

Anthropic-Compatible API とは何かClaude APIクレジットの購入方法Claude APIを最安級で使う方法Claude API エラー — Rate Limit、400、500、529 の原因と修正Claudeモデル比較Claude API 料金をわかりやすく解説Claude API Gateway と Anthropic Direct の比較暗号資産でClaude APIを支払う方法ウェイトリストなしで Claude API にアクセスClaude Code API コスト — 料金体系と削減方法Claude Code API キー — 取得方法と設定手順Claude API キーの取得方法Claudeのトークン使用量を減らす方法OpenAI互換APIでClaudeを使う方法ClaudeでUnlimited Hermes Agentを動かすRunning Unlimited OpenClaw on Claude「無制限」のClaude APIアクセスとは何を意味するのかClaude Opus 4.8 を無制限で使うClaude 無制限利用 — プランと料金Claude APIでAiderを無制限に使う無制限 Claude で Cherry Studio を動かすClaude Code を無制限に使うClaude APIでClineを無制限に使う無制限 Claude で Codex を動かすClaude APIでCursorを無制限に使う無制限 Claude で Factory Droid を動かす無制限 Claude で GitHub Copilot を動かすJetBrains IDEでClaudeを無制限に使うKilo Code を無制限 Claude で無制限 Claude で LangChain を構築するn8n ワークフローを無制限 Claude でClaude APIでOpenCodeを無制限に使うClaude APIでRoo Codeを無制限に使うVS CodeでClaudeを無制限に使う無制限 Claude で Zed を動かす