kunji keys
Add, list, test and remove AI provider API keys stored in your OS keychain.
Examples
Section titled “Examples”# Add a key (interactive)kunji keys add
# Add a key for one providerkunji keys add groq
# Add a key from a scriptecho $GROQ_API_KEY | kunji keys add groq --key-stdin
# See your keys (masked)kunji keys list
# Check every key workskunji keys test
# Remove a keykunji keys remove groqkunji keys add
Section titled “kunji keys add”Add or replace a provider’s API key (stored in your OS keychain).
kunji keys add [provider] [options]Arguments
| Name | Required | Description |
|---|---|---|
provider |
no | Provider id, e.g. openai, anthropic, gemini. |
Options
| Option | Description |
|---|---|
--model, -m |
Default model for this provider. |
--key-stdin |
Read the key from stdin (for scripts). |
--no-verify |
Skip the online key check. |
kunji keys list
Section titled “kunji keys list”Show which providers have keys (keys are masked).
kunji keys list [options]Options
| Option | Description |
|---|---|
--all, -a |
Include providers without keys. |
kunji keys remove
Section titled “kunji keys remove”Delete a provider’s key from the keychain and forget its settings.
kunji keys remove <provider> [options]Arguments
| Name | Required | Description |
|---|---|---|
provider |
yes | Provider id |
Options
| Option | Description |
|---|---|
--yes, -y |
Don’t ask for confirmation. |
kunji keys test
Section titled “kunji keys test”Check every configured key against its provider.
kunji keys test [provider]Arguments
| Name | Required | Description |
|---|---|---|
provider |
no | Only test this provider. |
Run kunji keys --help in your terminal to see this in place.