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