Skip to content

[FEATURE]: Allow pattern-matching for provider blacklist/whitelist in config #18326

Closed as not planned

Description

@flexdinesh

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I blacklist all old models so only newer models show up in /model suggestions.

This is an example of my current config

  "provider": {
    "opencode": {
      "blacklist": [
        "claude-3-5-haiku",
        "claude-haiku-4-5",
        "claude-opus-4-1",
        "claude-opus-4-5",
        "claude-opus-4-6",
        "claude-sonnet-4",
        "claude-sonnet-4-5",
        "claude-sonnet-4-6",
        "gemini-3-pro",
        "glm-4.6",
        "glm-4.7",
        "glm-4.7-free",
        "gpt-5-codex",
      ],
    },
…

I would prefer it I could write it as

  "provider": {
    "opencode": {
      "blacklist": [
        "claude*",
        "gemini-3-pro",
        "glm-4*",
        "gpt-5-codex",
      ],
    },
…

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 20, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 20, 2026
  3. github-actions commented on Mar 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  4. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 4, 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