Skip to content

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

Closed as not planned

Description

@drfrangipane

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.

Activity

  1. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    This issue might be related to an existing issue. Please check:

  2. drfrangipane commented on Jul 27, 2026

    @drfrangipane
    Author

    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?

  3. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions