Opencode Common Issues Troubleshooting

Quick solutions to the most common Opencode problems.

Bad Request Error

Symptom: Getting "Bad Request" or 400 errors

Solutions:

  1. Check your API key is valid
  2. Verify model name is correct
  3. Ensure your account has credits

Connection Failed

Symptom: Cannot connect to AI provider

Solutions:

  1. Check internet connection
  2. Verify firewall settings
  3. Try a different provider

Model Not Found

Symptom: "Model not found" error

Solutions:

  1. Check model name spelling
  2. Verify provider supports the model
  3. Update to latest Opencode version

Configuration Issues

Symptom: Config not loading

Solutions:

  1. Check JSON syntax
  2. Verify file location
  3. Check file permissions

Next Steps