Opencode Common Issues Troubleshooting
Quick solutions to the most common Opencode problems.
Bad Request Error
Symptom: Getting "Bad Request" or 400 errors
Solutions:
- Check your API key is valid
- Verify model name is correct
- Ensure your account has credits
Connection Failed
Symptom: Cannot connect to AI provider
Solutions:
- Check internet connection
- Verify firewall settings
- Try a different provider
Model Not Found
Symptom: "Model not found" error
Solutions:
- Check model name spelling
- Verify provider supports the model
- Update to latest Opencode version
Configuration Issues
Symptom: Config not loading
Solutions:
- Check JSON syntax
- Verify file location
- Check file permissions