You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenCode Desktop v1.18.4, Windows 10, active Synthetic API key (syn_...)
Context
After resetting OpenCode state (to recover from a separate WSL crash), the built-in Synthetic provider stopped working.
Problem 1: Authorization header required
Error returned: Unauthorized: Authorization header required. (previously Invalid API Key)
The API key is valid and active.
Direct curl/PowerShell test against https://api.synthetic.new/openai/v1/chat/completions works correctly with the same key.
Workaround: I created a custom OpenAI-compatible provider in OpenCode (ID: synthetic-custom, baseURL: https://api.synthetic.new/openai/v1) — everything works fine with the same key.
Problem 2: Ghost models in the selector
When the built-in Synthetic provider is disabled, its models (GLM 5.2, GLM 5.2 (syn:large:text), etc.) remain visible in the model selector. Manual removal one by one via right-click is required.
Suggestions
Fix the built-in Synthetic provider so it correctly sends the Authorization header after a state reset.
Automatically hide models belonging to a disabled/disconnected provider.
Add a "Remove all models from this provider" option in settings.
Thanks for linking to #36181. The Authorization header issue is covered.
However, the ghost models problem (models persisting in the selector after the provider is disabled) is a separate issue not covered by #36181. Should I open a separate ticket for it, or track it here?
Activity
github-actions commentedon Jul 27, 2026
This issue might be related to an existing issue. Please check:
Authorization header requiredafter a state reset/new session — auth credentials not being reloaded correctly after opencode state is cleared.drfrangipane commentedon Jul 27, 2026
Thanks for linking to #36181. The Authorization header issue is covered.
However, the ghost models problem (models persisting in the selector after the provider is disabled) is a separate issue not covered by #36181. Should I open a separate ticket for it, or track it here?
github-actions commentedon Sep 26, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.