Troubleshooting
To debug issues with CoDev Code, start by checking the logs and local data it stores on disk.
Logs
Log files are written to:
- macOS/Linux:
~/.local/share/codev/log/ - Windows: Press
WIN+Rand paste%USERPROFILE%\.local\share\codev\log
Log files are named with timestamps (e.g., 2025-01-09T123456.log) and the most recent 10 log files are kept.
You can set the log level with the --log-level command-line option to get more detailed debug information. For example, codev --log-level DEBUG.
Storage
CoDev Code stores session data and other application data on disk at:
- macOS/Linux:
~/.local/share/codev/ - Windows: Press
WIN+Rand paste%USERPROFILE%\.local\share\codev
This directory contains:
auth.json- Authentication data like API keys, OAuth tokenslog/- Application logsproject/- Project-specific data like session and message data- If the project is within a Git repo, it is stored in
./<project-slug>/storage/ - If it is not a Git repo, it is stored in
./global/storage/
- If the project is within a Git repo, it is stored in
Uninstall
To uninstall the CoDev Code CLI and remove its related files, run:
codev uninstallThe command shows what will be removed and asks for confirmation. See the CLI reference for options to keep your configuration or application data.
To remove CoDev Desktop, see Uninstall in the CoDev Desktop docs.
Desktop app
CoDev Desktop has its own troubleshooting page: Troubleshooting in the CoDev Desktop docs, covering plugins, the cache, server connections, Gatekeeper, Wayland and WebView2, sandboxes, and how to reset the app's stored state.
Common issues
Here are some common issues and how to resolve them.
CoDev Code won't start
- Check the logs for error messages
- Try running with
--print-logsto see output in the terminal - Ensure you have the latest version with
codev upgrade
Authentication issues
- Try re-authenticating with the
/connectcommand in the TUI - Check that your API keys are valid
- Ensure your network allows connections to the provider's API
Model not available
- Check that you've authenticated with the provider
- Verify the model name in your config is correct
- Some models may require specific access or subscriptions
If you encounter ProviderModelNotFoundError you are most likely incorrectly
referencing a model somewhere.
Models should be referenced like so: <providerId>/<modelId>
Examples:
openai/gpt-4.1openrouter/google/gemini-2.5-flashopencode/kimi-k2
To figure out what models you have access to, run codev models
ProviderInitError
If you encounter a ProviderInitError, you likely have an invalid or corrupted configuration.
To resolve this:
-
First, verify your provider is set up correctly by following the providers guide
-
If the issue persists, try clearing your stored configuration:
rm -rf ~/.local/share/codevOn Windows, press
WIN+Rand delete:%USERPROFILE%\.local\share\codev -
Re-authenticate with your provider using the
/connectcommand in the TUI.
AI_APICallError and provider package issues
If you encounter API call errors, this may be due to outdated provider packages. CoDev Code dynamically installs provider packages (OpenAI, Anthropic, Google, etc.) as needed and caches them locally.
To resolve provider package issues:
-
Clear the provider package cache:
rm -rf ~/.cache/codevOn Windows, press
WIN+Rand delete:%USERPROFILE%\.cache\codev -
Restart CoDev Code to reinstall the latest provider packages
This will force CoDev Code to download the most recent versions of provider packages, which often resolves compatibility issues with model parameters and API changes.
Copy/paste not working on Linux
Linux users need to have one of the following clipboard utilities installed for copy/paste functionality to work:
For X11 systems:
apt install -y xclip
# or
apt install -y xselFor Wayland systems:
apt install -y wl-clipboardFor headless environments:
apt install -y xvfb
# and run:
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
export DISPLAY=:99.0CoDev Code will detect if you're using Wayland and prefer wl-clipboard, otherwise it will try to find clipboard tools in order of: xclip and xsel.