Skip to content

Anthropic (Claude) with Empryo

Anthropic makes the Claude models. Anthropic is built into Empryo: save your API key once with --set-key and every Claude model your key can access is available for chat, code and every task-router slot.

How you connect
API key
How you pay
Anthropic's own API prices, on one bill

What you get

Example models

  • claude-opus-4-8
  • claude-opus-4-7
  • claude-opus-4-6
  • claude-sonnet-4-6
  • claude-sonnet-4-5
  • claude-haiku-4-5

When to use it

Pick Anthropic when you want to use Claude directly, with no gateway in between. Claude's tiers map well onto Empryo's task router: Opus for the hardest coding work, Sonnet for a balance of speed and quality, and Haiku for cheap, fast jobs like search, review and compaction. That way you pay for a top model only where it matters. With a direct key you pay Anthropic's own prices and get one bill. If you want many model families behind one key, use a gateway such as LLM Gateway or OpenRouter instead.

Set it up

Quick startLink to this section

Anthropic is built into Empryo, so all you need is an API key.

  1. Get a key at console.anthropic.com (it starts with sk-ant-).
  2. Save it:
bash
empryo --set-key anthropic sk-ant-...
  1. Launch Empryo, press Ctrl+L, and pick a Claude model.

The key is written to your OS keychain when one is available (Login Keychain on macOS, libsecret on Linux, DPAPI on Windows), with a ~/.empryo/secrets.json file fallback otherwise. Inspect what's stored with empryo --list-providers.

Verify and browse modelsLink to this section

bash
empryo --list-providers          # confirm anthropic shows a key
empryo --list-models anthropic   # list available Claude models

Pass a key per-launchLink to this section

For a one-off session or CI, export the env var instead of storing it, nothing is persisted:

bash
ANTHROPIC_API_KEY=sk-ant-... empryo

Empryo's default lookup order is env var → keychain → file. If a shell-exported key keeps overriding a stored one, flip the order in ~/.empryo/config.json:

json
{ "keyPriority": "app" }

Make Claude the defaultLink to this section

Model strings are anthropic/<model>. Set a default in ~/.empryo/config.json (or .empryo/config.json for one project):

json
{
  "defaultModel": "anthropic/claude-opus-4-8",
  "thinking": { "mode": "adaptive" }
}

Route Claude tiers per taskLink to this section

Empryo's task router lets you assign a different model to each kind of job. A cheap, fast model for read-only research and a strong one for code:

json
{
  "taskRouter": {
    "spark":     "anthropic/claude-haiku-4-5",
    "ember":     "anthropic/claude-opus-4-8",
    "webSearch": "anthropic/claude-haiku-4-5",
    "verify":    "anthropic/claude-haiku-4-5",
    "compact":   "anthropic/claude-haiku-4-5"
  }
}

spark runs read-only research agents, ember runs code-writing agents, and the rest cover web search, adversarial review, and context compaction. Tune slots live in the TUI with /router.

Remove a keyLink to this section

Run /keys inside the TUI to list providers with delete shortcuts, or remove it from the keychain directly (e.g. security delete-generic-password -a empryo -s anthropic-api-key on macOS).

Keys or subscriptions

Anthropic (Claude) connects the way marked below. You can mix ways across task-router slots.

  • API keyAnthropic (Claude)Paste a key once. Empryo keeps it in your system keychain, and you pay the provider for what you use.
  • Sign inApprove Empryo in your browser and use a plan or credits you already have. There is no key to copy.
  • On your machineRun open models on your own computer. No key, no per-token bill, and nothing has to leave your machine.
  • Any compatible APIOne block of JSON config turns any OpenAI-compatible endpoint into a provider, including your own server.