GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Model cost shows $0 when provider omits cost in models.dev · Issue #29971 · anomalyco/opencode

Model cost shows $0 when provider omits cost in models.dev #29971

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Model cost shows $0 when provider omits cost in models.dev#29971
Copy link
Assignees
rekram1-node

Description

@kameshsampath
kameshsampath
opened on May 30, 2026
Issue body actions

Description

When a provider's models.dev entry omits the cost field (intentionally, because the provider bills via its own credit system), opencode displays $0 in the model picker. This is misleading — users see $0 and assume the model is free, when it actually has a cost billed through the provider.

The cost() function in provider.ts uses c?.input ?? 0 which collapses "no cost data" and "actually free" into the same value. The two cases should be distinguished.

Concrete example: the Snowflake Cortex provider in models.dev uses omit = ["cost"] on all models because pricing is in Snowflake credits, not USD. See anomalyco/models.dev — snowflake-cortex.

Steps to reproduce

  1. Add a provider to models.dev with omit = ["cost"] on a model
  2. Open the model picker in opencode
  3. Model shows $0 instead of no cost / unknown

Activity

  1. github-actions
    assigned
    rekram1-node
    on May 30, 2026
  2. github-actions commented on May 30, 2026

    @github-actions
    github-actionsBot
    on May 30, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [SambaNova] Cost not displayed for MiniMax M2.7 via SambaNova provider #26088: Cost not displayed for models via SambaNova provider — similar symptom where cost shows as absent/zero for models where provider doesn't supply pricing data
    • Cost is always displayed as zero ($0.00) for custom models that extend built-in ones #4162 (closed): Cost always $0.00 for custom models extending built-in ones — different root cause but same $0 display symptom
  3. kameshsampath commented on Jun 9, 2026

    @kameshsampath
    kameshsampath
    on Jun 9, 2026
    ContributorAuthor
    More actions

    @rekram1-node in the v1.16.2 I still see the cost being shown for provider models with omit cost. Attaching the ones I see with Snowflake Provider - I will keep this open, see that there is a fix in WIP.

    Image
  4. github-actions commented on Aug 8, 2026

    @github-actions
    github-actionsBot
    on Aug 8, 2026 – with GitHub Actions
    Contributor
    More actions

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

  5. github-actions
    closed this as not plannedon Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.