Skip to content

Troubleshooting

Start with:

Terminal window
kunji doctor

It checks Python, your settings folder, the keychain and your providers, and says what’s wrong.

'pip' is not recognized or Fatal error in launcher

Section titled “'pip' is not recognized or Fatal error in launcher”

Your pip command points to a Python that’s missing or moved. Run pip through Python:

Terminal window
python -m pip install kunji

If python isn’t found either, try py -m pip install kunji, or reinstall Python from python.org with “Add python.exe to PATH” ticked.

kunji is installed but its folder isn’t on your PATH. This always works:

Terminal window
python -m kunji

To fix it for good on Windows, find the folder with python -m pip show -f kunji (look for Scripts\kunji.exe) and add that Scripts folder to PATH, or reinstall Python with the PATH box ticked.

error: externally-managed-environment (Linux)

Section titled “error: externally-managed-environment (Linux)”

Your system Python is managed by the OS. Use pipx: pipx install kunji.

The key is wrong, expired or has no credit. Create a new key on the provider’s site and run kunji keys add <provider> again. Check with kunji keys test.

You’ve hit the provider’s limit or run out of credit. Wait a minute, check your billing on the provider’s site, or set a fallback model.

The model name is wrong or not available to your account. List real names with kunji models <provider>.

Add one with kunji keys add <provider>, or set the provider’s environment variable.

Common on Linux servers without a desktop. Install GNOME Keyring or KWallet, or use environment variables like OPENAI_API_KEY.

Start Ollama (open the app or run ollama serve) and check ollama list shows a model.

Check your internet connection, VPN or proxy. If you’re behind a company proxy, set HTTPS_PROXY.

Use Windows Terminal instead of the old Command Prompt window, and a font with box characters (Cascadia Mono is the default). To turn colours off: set NO_COLOR=1.

You’ve hit a limit you set. Raise it (kunji budget set openai 5) or remove it (kunji budget clear openai).

kunji doesn’t know that model’s price. See When a price is unknown.

kunji upgrade says I’m up to date, but there’s a new version

Section titled “kunji upgrade says I’m up to date, but there’s a new version”

The check is cached for a day. Run python -m pip install --upgrade kunji.

Upgrade fails on Windows with a “file in use” error

Section titled “Upgrade fails on Windows with a “file in use” error”

Close every kunji window and run python -m pip install --upgrade kunji again.

Open an issue with the output of kunji doctor and kunji version. Never paste your API key.