Skip to content

[Question] Policy on third-party open-source apps using Zen free-tier models #49144

Closed as not planned

Description

@cosmichut

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

Hi opencode team — we're building a free IT assistant tool: a non-commercial, open-source (MIT-planned) Windows maintenance
assistant for office workers with no IT skills (adware cleanup, startup optimization, troubleshooting guidance).

TL;DR: we'd like to offer Zen free-tier models as our zero-config default, and to vendor your @opencode-ai/llm engine package
(MIT) as our LLM request layer. Before doing either, we want your explicit blessing.

Questions:

  1. Is third-party open-source use of the Zen free tier permitted under your ToS, with or without restrictions (rate limits,
    attribution, specific User-Agent)?
  2. If yes, is there a sanctioned way to identify our app (e.g. a dedicated header or UA string you would whitelist)?
  3. Are you comfortable with us vendoring @opencode-ai/llm in this way? Any requests beyond the MIT license terms (attribution
    wording, a note that we're unaffiliated, etc.)?
  4. If the free tier is off-limits for third parties, would a paid Zen API key be the recommended path for an app like ours?

We're happy to comply with whatever policy you set — attribution, linking to opencode, rate limiting, or staying out entirely.
Thanks for the great work on opencode.

Background & context (click to expand)

Who our users are. Office workers with no IT skills at all — when their PC slows down or gets hijacked by adware, they usually
just live with it, or fall for overpriced "PC cleaner" scams. We want to give them a trustworthy free tool that actually fixes
these problems, explained in plain language they can understand.

How we use LLMs. (a) intent classification and explaining diagnostic results in plain language; (b) reasoning about
troubleshooting approaches for problems our local knowledge base can't cover; (c) occasionally drafting short
analysis/remediation scripts (e.g. Python) to locate or fix an issue. Safety note: all consequential decisions are made by a
local deterministic rule engine, and every script or action goes through a mandatory user-confirmation gate with audit logging
before execution — the LLM never executes anything by itself.

What we observed. The free tier currently requires the x-opencode-session header (400 MissingSessionID, "OpenCode's free tier can
only be used in OpenCode"). We have NOT worked around this and won't: we would never ship the session-layer headers or present
ourselves as the opencode client — requests from our app would be honestly identified however you prefer.

Vendoring. @opencode-ai/llm is MIT licensed — thank you. If we vendor it, your copyright notice stays intact and our README will
carry clear attribution plus a note that we're unaffiliated.

Activity

  1. edge513 commented on Sep 16, 2026

    @edge513

    Adding a concrete user case: I use Hermes Agent (NousResearch/hermes-agent) and would like to access Union Alpha through OpenCode Zen from Hermes. I am asking as a user, not on behalf of the Hermes maintainers.

    The Zen documentation lists union-alpha at https://opencode.ai/zen/v1/messages. A minimal unauthenticated request using that Messages API, honestly identified as Hermes and without an x-opencode-session header, returned HTTP 400:

    {"type":"error","error":{"type":"MissingSessionID","message":"Error from provider (Console): OpenCode's free tier can only be used in OpenCode"}}

    Could the team clarify:

    1. Is Union Alpha's free promotion intentionally restricted to the official OpenCode client, or may third-party agents such as Hermes use it?
    2. If third-party access is permitted, what is the supported authentication/session-header contract? In particular, is a third-party client's own session ID allowed, while retaining its honest client identity?
    3. If it is not supported currently, is there a planned opening date or a public issue/release announcement to follow?
    4. Would an authenticated Zen API key or a paid plan provide a supported route to this specific model, or is it client-restricted regardless?

    I am looking for an officially supported integration, not a workaround for client restrictions or free-tier limits. Thanks for clarifying!

  2. cosmichut commented on Oct 11, 2026

    @cosmichut
    Author

    Follow-up in the spirit of transparency (a one-line objection is enough — no detailed response needed):

    Since we haven't heard back, here is the approach we now plan to take:

    • We will NOT send opencode client identity headers from our own code, and will NOT reverse-engineer or mimic the free-tier gate.
    • Instead, we plan to bundle the official, unmodified opencode binary (MIT) as an optional, user-enabled engine component, driven through its documented local server API (opencode serve). All requests to Zen would be issued by the genuine opencode process itself, via its native request path — nothing trimmed from request building, credentials, tool surface, or User-Agent.
    • Tool execution inside opencode would be disabled through the documented permission config (bash/edit/write: deny). We only consume the model's text output; every consequential action in our app goes through our own confirmation + audit layer.
    • Free models would default to the ones you mark as zero-retention, with clear in-app disclosure for any that may train on data.
    • Attribution: your copyright notice stays intact, our THIRD-PARTY-LICENSES credits opencode and notes we are unaffiliated, and we will never market our app as endorsed by you.

    If this form of bundling is against your policy, just say so here and we will drop the Zen path entirely and stay BYOK-only. Thanks again for opencode.

  3. Tarquinen commented on Oct 20, 2026

    @Tarquinen
    Member

    Thanks for reaching out! OpenCode's free models are meant to be used only from within OpenCode's own clients, so direct API calls and third-party apps are rejected on purpose. For API access from other tools, please use the paid models on OpenCode Zen or Go: https://opencode.ai/v2/docs/console/go. Closing this issue.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

No one assigned

    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