← All docs

Coding tools

Claude Code / Anthropic SDK

Updated

Generate your config

Pick one or more models and press Confirm. The config below is regenerated so every model you picked is ready to use. The first model you pick becomes the default. Context, output limits, and prices come from the model catalog. This tool runs as an agent, so only models that support tool calling are listed.

Loading models…

Claude Code sends requests in the Anthropic Messages format (/v1/messages). Change the base URL and the key, and it works with everyais.

Connect

  1. Create an API key in the dashboard and add credits.
  2. In "Generate your config" above, pick your models and press Confirm. Only models that support tool calling are listed. Claude models also get a "Reasoning effort" choice.
  3. Paste the result into ~/.claude/settings.json and replace everyais_your_api_key with your key. If the file already exists, merge in the same keys.
  4. Restart Claude Code and check that your models are listed in /model.

Keep the key in your user settings file (~/.claude/settings.json). A project's .claude/settings.json gets committed to the repository, which would publish the key.

Model order

Your picks fill Claude Code's model aliases in order.

PickSlot
1stThe default model and opus
2ndsonnet
3rdhaiku, which also runs background work

With fewer than three picks, earlier models fill the empty slots. Pick a fast, inexpensive model last.

Settings

KeyWhat it does
ANTHROPIC_BASE_URLSends requests to everyais. Claude Code appends /v1/messages itself, so leave /v1 off
ANTHROPIC_AUTH_TOKENYour everyais key, sent as an Authorization: Bearer header and used ahead of a signed-in claude.ai account
ANTHROPIC_DEFAULT_OPUS_MODEL · ANTHROPIC_DEFAULT_SONNET_MODEL · ANTHROPIC_DEFAULT_HAIKU_MODELThe three slots above. If they are empty, Claude Code may request its own default model names and get 404
CLAUDE_CODE_MAX_OUTPUT_TOKENSMaximum output tokens per request. It applies to every model, so it is the smallest output limit among your picks. It is left out if any pick's limit is unknown
CLAUDE_CODE_MAX_CONTEXT_TOKENSContext size for models that are not Claude. Without it, Claude Code assumes 200K tokens and compacts the conversation at that size. It does not apply to Claude models
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETASTurns off request fields for experimental features. everyais does not accept some of them yet
modelThe default model when Claude Code starts
modelPickerThe /model list. replaceBuiltInOptions: true shows your picks instead of Claude Code's built-in list. Applies only from the user settings file and needs Claude Code 2.1.242 or later
modelSettings.<model>.effortLevelReasoning effort for a Claude model: low, medium, high, or xhigh. This key does not accept max. Inside Claude Code, change it with /effort

You can also pass the key as ANTHROPIC_API_KEY. Claude Code then sends it as an x-api-key header and asks once whether to use it.

Note: Claude Code counts tokens with POST /v1/messages/count_tokens before each request. That call is free. Usage and spend are on the dashboard usage page.

Models that are not Claude

You can pick models such as Gemini or GPT. Claude Code builds its requests for Claude, so tool calls and the thinking display may look different. Confirm the connection with a Claude model first. Claude Code sends no reasoning effort to these models, so they answer at their default effort.

Anthropic SDK

The official Anthropic SDKs (Python and TypeScript) read these two environment variables, so your code stays the same.

bash
export ANTHROPIC_BASE_URL="https://api.everyais.com"
export ANTHROPIC_API_KEY="everyais_your_api_key"

Use everyais model IDs such as everyais/claude-sonnet-5-5. Supported parameters are listed in Messages.

Troubleshooting

SymptomWhat to check
404 with /v1/v1 in the URLRemove the trailing /v1 from the base URL
401Check the key again, including stray spaces around it
404 model_not_foundCheck the model IDs and the key's allowed models. All three ANTHROPIC_DEFAULT_*_MODEL values must be set
400Check that CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS is "1". If it persists, look at the field named in error.param
Requests still go to your claude.ai subscriptionSave settings.json and fully restart Claude Code
Contact support