Skip to content

[feature]: Support all providers from models.dev instead of a hardcoded allowlist #101

Description

@EriDeLee

Pre-flight checks

  • I searched existing issues and did not find a duplicate request.
  • I reviewed current behavior on the production released OpenCode version.

OpenCode version reviewed

1.15.10

Problem statement

Some models don't show pricing or quota info because the code only loads a small hardcoded list of providers from models.dev. Many other providers (especially Chinese and coding-plan ones) are ignored even though they exist on models.dev.

Proposed change

Make the system automatically use every provider returned by the models.dev API instead of maintaining a hardcoded allowlist. Also add a few alias mappings so coding-plan providers can resolve pricing.

Alternatives considered

No response

Acceptance criteria

  • All providers and models from models.dev are dynamically supported
  • Common coding-plan providers (zhipuai, alibaba, minimax, etc.) resolve pricing correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions