Skip to content

agent: Add Opencode Zen provider#49589

Merged
benbrandt merged 10 commits intozed-industries:mainfrom
ripgrim:main
Mar 23, 2026
Merged

agent: Add Opencode Zen provider#49589
benbrandt merged 10 commits intozed-industries:mainfrom
ripgrim:main

Conversation

@ripgrim
Copy link
Copy Markdown

@ripgrim ripgrim commented Feb 19, 2026

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Per Opencode's website:

Zen gives you access to a curated set of AI models that OpenCode has tested and benchmarked specifically for coding agents. No need to worry about inconsistent performance and quality, use validated models that work.

  • Testing select models and consulting their teams
  • Working with providers to ensure they're delivered properly
  • Benchmarking all model-provider combinations we recommend

There are so many models available, but only a few work well with coding agents. Most providers configure them differently with varying results.

The models under the Zen umbrella typically have a more reliable token(s) per second speed with minimal outages. The opencode ecosystem has improved my workflow if not many others' !

Release Notes:

@ripgrim ripgrim requested review from a team as code owners February 19, 2026 11:30
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 19, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @ripgrim on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 19, 2026
@ripgrim
Copy link
Copy Markdown
Author

ripgrim commented Feb 19, 2026

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 19, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 19, 2026

The cla-bot has been summoned, and re-checked this pull request!

@maxdeviant maxdeviant changed the title Agent: Add Opencode Zen provider agent: Add Opencode Zen provider Feb 19, 2026
@zed-industries-bot
Copy link
Copy Markdown
Contributor

zed-industries-bot commented Feb 19, 2026

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against fbee25e

@HiteshRohira
Copy link
Copy Markdown

We need this!!!

@github-actions
Copy link
Copy Markdown

📏 PR Size: 1148 lines changed (Size XL)

Please note: this PR exceeds the 400 LOC soft limit.

  • Consider splitting into separate PRs if the changes are separable
  • Ensure the PR description includes a guided tour in the "How to Review" section so reviewers know where to start

benbrandt and others added 2 commits March 23, 2026 11:19
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
@benbrandt benbrandt enabled auto-merge (squash) March 23, 2026 11:03
@SomeoneToIgnore SomeoneToIgnore added the area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features label Mar 23, 2026
@benbrandt benbrandt merged commit adb3533 into zed-industries:main Mar 23, 2026
31 checks passed
AmaanBilwar pushed a commit to AmaanBilwar/zed that referenced this pull request Mar 23, 2026
Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Per Opencode's website:
> Zen gives you access to a curated set of AI models that OpenCode has
tested and benchmarked specifically for coding agents. No need to worry
about inconsistent performance and quality, use validated models that
work.
> - [x] Testing select models and consulting their teams
> - [x] Working with providers to ensure they're delivered properly
> - [x] Benchmarking all model-provider combinations we recommend

There are so many models available, but only a few work well with coding
agents. Most providers configure them differently with varying results.

The models under the Zen umbrella typically have a more reliable
token(s) per second speed with minimal outages. The opencode ecosystem
has improved my workflow if not many others' !

Release Notes:
- Added [Opencode Zen](https://opencode.ai/zen) to list of providers

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
@Vlaaaaaaad
Copy link
Copy Markdown

For other curious people, OpenCode Go can also be used by configuring the Go API URL and by configuring a Custom Model for MiniMax M2.7 (the other Go models are also available in Zen and are included in the default provider config):

  "language_models": {
    "opencode": {
      "api_url": "https://opencode.ai/zen/go",
      "available_models": [
        {
          "name": "minimax-m2.7",
          "max_tokens": 200000,
          "max_output_tokens": 128000,
          "protocol": "openai_chat",
        }
      ]
    },
  }

Attempting to use non-Go models will fail with an language model provider API endpoint not found error.

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

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions large-pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants