Use Mistral in your terminal
Use Mistral models with your own key. You pay Mistral directly; kunji never sees your bill.
Set up
Section titled “Set up”- Create an API key at https://console.mistral.ai/api-keys.
- Run
kunji keys add mistraland 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 | mistral |
| Type | OpenAI-compatible API |
| API address | https://api.mistral.ai/v1 |
| Key variable | MISTRAL_API_KEY |
Use it
Section titled “Use it”kunji models mistral # see available modelskunji use mistral:<model> # make one your defaultkunji chat -m mistral:<model> # or chat with it onceInside a chat, switch to it with /model mistral:<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 MISTRAL_API_KEY=your-key-herekunji ask -m mistral:<model> "Hello"