hermes - 💡(How to fix) Fix [Feature]: OpenCode Free provider plugin

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Problem or Use Case

OpenCode offers a free tier of models (big-pickle, deepseek-v4-flash-free, mimo-v2.5-free, nemotron-3-super-free) that requires no API key, but Hermes currently has no dedicated provider for it (and the Zen or Go one does not work). Users must either use a paid provider or work around the missing integration.

Proposed Solution

A new opencode-free provider plugin (alongside existing opencode-zen and opencode-go) that:

  • Auto-detects via OPENCODE_FREE_API_KEY env var (value unused — for detection only)
  • Lists free models using the same filter logic as the opencode CLI: cost.input == 0 AND status != "deprecated" from models.dev
  • Strips Authorization headers at the transport level (the free tier rejects them)
  • Integrates with both hermes model (CLI) and /model (TUI)

Alternatives Considered

Using opencode-zen with an empty/missing key, but the Zen provider's model listing requires a valid API key and the free tier models aren't isolated.

Feature Type

Other

Scope

Medium (few files, < 300 lines)

Contribution

  • I'd like to implement this myself and submit a PR

Debug Report (optional)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Feature]: OpenCode Free provider plugin