anomalyco / anomalyco/opencode

Built-in Synthetic provider: "Authorization header required" + ghost models persist after disabling

Open
#39,072 2 comments 0 reactions 1 assignee View on GitHub

@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/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
  1. Fix the built-in Synthetic provider so it correctly sends the Authorization header after a state reset.
  2. Automatically hide models belonging to a disabled/disconnected provider.
  3. Add a "Remove all models from this provider" option in settings.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.