Skip to content

Use Anthropic in your terminal

Use Anthropic models with your own key. You pay Anthropic directly; kunji never sees your bill.

  1. Create an API key at https://console.anthropic.com/settings/keys.
  2. Run kunji keys add anthropic and paste the key. kunji checks it works, then stores it in your OS keychain.
  3. Pick a default model from the list (type to search).
  4. Run kunji and start chatting.
Provider id anthropic
Type Anthropic API
API address https://api.anthropic.com
Key variable ANTHROPIC_API_KEY
Terminal window
kunji models anthropic # see available models
kunji use anthropic:<model> # make one your default
kunji chat -m anthropic:<model> # or chat with it once

Inside a chat, switch to it with /model anthropic:<model>; the conversation carries over.

For CI or scripts you can skip the keychain:

Terminal window
export ANTHROPIC_API_KEY=your-key-here
kunji ask -m anthropic:<model> "Hello"