anomalyco / anomalyco/opencode
Built-in Synthetic provider: "Authorization header required" + ghost models persist after disabling
@rekram1-node is already working on this.
Since Jul 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Version
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/completionsworks 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
Authorizationheader after a state reset. - Automatically hide models belonging to a disabled/disconnected provider.
- Add a "Remove all models from this provider" option in settings.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.