Use Anthropic in your terminal
Use Anthropic models with your own key. You pay Anthropic directly; kunji never sees your bill.
Set up
Section titled “Set up”- Create an API key at https://console.anthropic.com/settings/keys.
- Run
kunji keys add anthropicand paste the key. kunji checks it works, then stores it in your OS keychain. - Pick a default model from the list (type to search).
- Run
kunjiand start chatting.
Details
Section titled “Details”| Provider id | anthropic |
| Type | Anthropic API |
| API address | https://api.anthropic.com |
| Key variable | ANTHROPIC_API_KEY |
Use it
Section titled “Use it”kunji models anthropic # see available modelskunji use anthropic:<model> # make one your defaultkunji chat -m anthropic:<model> # or chat with it onceInside a chat, switch to it with /model anthropic:<model>; the conversation carries over.
Use an environment variable instead
Section titled “Use an environment variable instead”For CI or scripts you can skip the keychain:
export ANTHROPIC_API_KEY=your-key-herekunji ask -m anthropic:<model> "Hello"