SillyTavern + Claude

SillyTavern with a Claude subscription

SillyTavern runs on your Claude Pro, Max or Ultra plan when you skip the Claude source and use Chat Completion with the Custom (OpenAI-compatible) source: set the Custom Endpoint to https://api.plan2api.com/v1, paste your p2a_ key from Plan2API and enter claude/claude-sonnet-5. No Anthropic Console key, no prepaid credits, and Plan2API Free costs $0.

Chat Completion Source
Custom (OpenAI-compatible)
Custom Endpoint ends with
/v1
Model ID
claude/claude-sonnet-5
Context size
Up to 1,000,000 tokens

Updated

Why the Claude source won't take your subscription

SillyTavern's built-in Claude source wants an API key from the Anthropic Console, and SillyTavern's own docs list Claude as prepaid credits charged per prompt. A Claude subscription doesn't cover that: Pro includes no API credits, and the monthly credits on Max and Ultra ($100 and $200) expire every billing cycle.

The reverse proxy fields inside the Claude source, Proxy Server URL and Proxy Password, don't change that. SillyTavern still sends Anthropic Messages requests to /messages on the proxy with an x-api-key header, so they only fit a proxy that speaks Anthropic's API.

The route that works is the Custom (OpenAI-compatible) source, which connects to any server that speaks the OpenAI API. Plan2API is that server for your Claude plan.

SillyTavern settings for a Claude subscription

Stop the endpoint at /v1. SillyTavern adds /chat/completions on its own, and a doubled path returns 404.

SillyTavern API Connections settings for Claude through Plan2API
SettingValue
APIChat Completion
Chat Completion SourceCustom (OpenAI-compatible)
Custom Endpoint (Base URL)https://api.plan2api.com/v1
Custom API KeyYour Plan2API key, starting with p2a_
Enter a Model IDclaude/claude-sonnet-5 or claude/claude-opus-5-5

Connect SillyTavern to your Claude plan

  1. Sign up at plan2api.com/connect with your Google account.
  2. Connect Claude by signing in with the Claude account that has your Pro, Max or Ultra plan.
  3. Copy your p2a_ API key.
  4. In SillyTavern, open API Connections and set API to Chat Completion.
  5. Pick Custom (OpenAI-compatible) as the Chat Completion Source.
  6. Paste https://api.plan2api.com/v1 into Custom Endpoint (Base URL) and your key into Custom API Key.
  7. Type claude/claude-sonnet-5 into Enter a Model ID, click Connect and send a test message.

Reverse proxy, SillyTavern-Subscriptions or Plan2API

There are three ways people wire Claude into SillyTavern. Only one needs nothing but your Claude login.

Plan2API also puts ChatGPT, Gemini and Kimi behind the same key when you connect more plans, so switching models is a Model ID change. SillyTavern with ChatGPT Plus covers the GPT side.

Ways to connect Claude to SillyTavern
RouteWhat you needWhere it runs
Claude source with an API keyAnthropic Console key and prepaid creditsAny SillyTavern install
Claude source reverse proxyA proxy that speaks Anthropic's Messages API, plus its passwordWherever that proxy runs
SillyTavern-Subscriptions pluginServer plugins turned on and the Claude Code CLI logged in on the same machineOnly the machine running SillyTavern
Plan2APIYour Claude login and a p2a_ key in the Custom sourceHosted, so any SillyTavern install

Claude settings worth changing in SillyTavern

  • Context Size: up to 1,000,000 tokens on claude/claude-sonnet-5 and claude/claude-opus-5-5, 200,000 on claude/claude-haiku-4-5.
  • Max Response Length: up to 128,000 tokens.
  • Temperature and Top P: ignored on Claude, so leave them alone.
  • Reasoning effort: add reasoning_effort under Additional Parameters, Include Body Parameters, with any value from none to max.

The full sampler and prompt post-processing breakdown lives in the main SillyTavern setup guide.

Include Body Parameters
reasoning_effort: high

Troubleshooting SillyTavern with a Claude plan

SillyTavern shows the HTTP status in its error toast. Match it here.

SillyTavern errors with Claude through Plan2API
ErrorFix
404The endpoint includes /chat/completions; cut it back to https://api.plan2api.com/v1
401 invalid_api_keyPaste the full key starting with p2a_ into Custom API Key
403 no_credentialsClaude isn't connected in Plan2API, or you picked another provider's model from Available Models
400 model_not_foundTypo in the Model ID; copy claude/claude-sonnet-5 exactly
429 subscription_quota_exhaustedYour Claude plan hit its usage limit; Retry-After says when it frees up

Use the AI subscriptions you already pay for as one OpenAI-compatible API key.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

Get an email when a new model drops

Free alerts for new models from OpenAI, Anthropic, Google and Moonshot AI. How it works

FAQ

Can I use my Claude subscription in SillyTavern?

Yes. Connect your Claude Pro, Max or Ultra account to Plan2API, then use SillyTavern's Custom (OpenAI-compatible) source with the endpoint https://api.plan2api.com/v1 and your p2a_ key. You don't need an Anthropic Console API key.

Does SillyTavern's Claude reverse proxy work with a Claude Pro or Max plan?

Not by itself. The reverse proxy fields in the Claude source send Anthropic Messages API requests, so they need a proxy that speaks Anthropic's format. Plan2API connects through the Custom (OpenAI-compatible) source instead.

What endpoint URL do I enter in SillyTavern for Claude?

Enter https://api.plan2api.com/v1 in Custom Endpoint (Base URL). Leave off /chat/completions, because SillyTavern adds it for you.

Do I need the SillyTavern-Subscriptions plugin?

No. That plugin needs server plugins turned on and a logged-in Claude Code CLI on the same machine as SillyTavern. Plan2API is hosted, so nothing gets installed next to SillyTavern.

What context size should I set for Claude in SillyTavern?

Claude Sonnet 5 and Claude Opus 5.5 take up to 1,000,000 tokens and claude/claude-haiku-4-5 takes 200,000. Set Max Response Length up to 128,000.

Sources

  1. SillyTavern Docs: Chat Completions sourcesdocs.sillytavern.app
  2. SillyTavern Docs: API Connectionsdocs.sillytavern.app
  3. SillyTavern source: chat-completions.jsgithub.com
  4. SillyTavern-Subscriptions on GitHubgithub.com
  5. Claude Help Center: Monthly API credits for Max and Team planssupport.claude.com
  6. Claude pricingclaude.com

Guides

80