Title: AI Provider for OpenCode
Author: thaikolja
Published: <strong>June 14, 2026</strong>
Last modified: August 4, 2026

---

Search plugins

![](https://ps.w.org/nominal-ai-provider-for-opencode/assets/banner-772x250.png?
rev=3634607)

![](https://ps.w.org/nominal-ai-provider-for-opencode/assets/icon.svg?rev=3622596)

# AI Provider for OpenCode

 By [thaikolja](https://profiles.wordpress.org/thaikolja/)

[Download](https://downloads.wordpress.org/plugin/nominal-ai-provider-for-opencode.1.0.0.zip)

 * [Details](https://mlt.wordpress.org/plugins/nominal-ai-provider-for-opencode/#description)
 * [Reviews](https://mlt.wordpress.org/plugins/nominal-ai-provider-for-opencode/#reviews)
 *  [Installation](https://mlt.wordpress.org/plugins/nominal-ai-provider-for-opencode/#installation)
 * [Development](https://mlt.wordpress.org/plugins/nominal-ai-provider-for-opencode/#developers)

 [Support](https://wordpress.org/support/plugin/nominal-ai-provider-for-opencode/)

## Description

WordPress can talk to AI services through a shared system called the PHP AI Client.
That system still needs a small bridge for each service you want to use. This plugin
is the bridge for [OpenCode](https://opencode.ai/go?ref=SMXJFA241V).

Once the plugin is active, OpenCode becomes available as an AI option on your site.
You can generate text, continue multi-step conversations, and see which models OpenCode
currently offers. There is no separate settings page and nothing you need to wire
up by hand.

In short: install, activate, add your OpenCode key, and you are set.

#### Features

 * **Text generation**: Write, summarize, rewrite, or analyze content with OpenCode’s
   language models.
 * **Conversation memory**: Follow-up messages can keep earlier context, so exchanges
   feel more natural.
 * **Up-to-date model list**: The plugin asks OpenCode which models are available,
   so new ones can show up without a plugin update.
 * **Works out of the box**: After activation, OpenCode is registered automatically
   with WordPress’s AI system.

#### Requirements

 * PHP 7.4 or newer on your hosting plan.
 * **WordPress 7.0 or newer** is the simple path: AI support is already included.
 * **WordPress 6.9 only**: you also need the [PHP AI Client](https://github.com/WordPress/php-ai-client?tab=readme-ov-file#installation)
   installed separately.
 * An [OpenCode API key](https://opencode.ai/go?ref=SMXJFA241V) so OpenCode can 
   authorize your site’s requests.

### External Services

This plugin sends data to OpenCode when you use AI features. Here is what that means
in practice:

**What is sent and when:**
 * Your **API key**: sent with requests so OpenCode can
verify your account. * Your **prompts and messages**: sent when you ask the AI to
do something. Only share text you are comfortable sending to a third-party service.*
A **model list request**: used so WordPress can show which OpenCode models are available.*
Nothing is sent while you are not using AI features.

**Service details:**
 * **Service**: [OpenCode](https://opencode.ai/go?ref=SMXJFA241V)***
API endpoint**: `https://opencode.ai/zen/go/v1` * **Terms of service**: [opencode.ai/terms](https://opencode.ai/terms)

## Screenshots

[⌊Connecting OpenCode as an active AI provider using a masked API key.⌉⌊Connecting
OpenCode as an active AI provider using a masked API key.⌉[

Connecting OpenCode as an active AI provider using a masked API key.

[⌊Selecting OpenCode and choosing from available models like DeepSeek-V4-Flash or
Qwen3.7-Max.⌉⌊Selecting OpenCode and choosing from available models like DeepSeek-
V4-Flash or Qwen3.7-Max.⌉[

Selecting OpenCode and choosing from available models like DeepSeek-V4-Flash or 
Qwen3.7-Max.

[⌊Generating post excerpts directly within the Block Editor via OpenCode.⌉⌊Generating
post excerpts directly within the Block Editor via OpenCode.⌉[

Generating post excerpts directly within the Block Editor via OpenCode.

## Installation

 1. Install the plugin from the WordPress admin (Plugins  Add New), or upload the plugin
    folder to `/wp-content/plugins/`.
 2. Activate it under **Plugins**.
 3. _(Recommended)_ Add your OpenCode API key to `wp-config.php`: `define( 'OPENCODE_API_KEY','
    your-api-key-here' );` Use your real key in place of `your-api-key-here`. The sample
    text will not work as a live key.

That is all: install, activate, and add the key.

## FAQ

### How do I get an OpenCode API key?

Go to [opencode.ai](https://opencode.ai/go?ref=SMXJFA241V), create an account (Go
or Zen plan), and generate a key in your dashboard. The plugin uses that key so 
OpenCode knows the requests come from you.

### Does this plugin work on its own?

No. It connects OpenCode to WordPress’s AI system (the PHP AI Client). On WordPress
7.0+, that system is already there. On WordPress 6.9, you need to [install it first](https://github.com/WordPress/php-ai-client?tab=readme-ov-file#installation).
This plugin is not a full chatbot product by itself; it is the OpenCode connection
layer.

### What models can I use?

The list comes from OpenCode and can change. Examples at the time of writing include:
–**
DeepSeek-V4-Pro** – **DeepSeek-V4-Flash** – **GLM-5.1** – **GLM-5** – **Hy3 Preview**–**
Kimi-K2.6** – **Kimi-K2.5** – **Mimo-V2-Pro** – **Mimo-V2-Omni** – **Mimo-V2.5-Pro**–**
Mimo-V2.5** – **MiniMax-M3** – **MiniMax-M2.7** – **MiniMax-M2.5** – **Qwen3.7-Max**–**
Qwen3.7-Plus** – **Qwen3.6-Plus** – **Qwen3.5-Plus**

New models may appear automatically. OpenCode may also retire older ones.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“AI Provider for OpenCode” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ thaikolja ](https://profiles.wordpress.org/thaikolja/)

“AI Provider for OpenCode” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode/contributors)
for their contributions.

[Translate “AI Provider for OpenCode” into your language.](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/nominal-ai-provider-for-opencode/),
check out the [SVN repository](https://plugins.svn.wordpress.org/nominal-ai-provider-for-opencode/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/nominal-ai-provider-for-opencode/)
by [RSS](https://plugins.trac.wordpress.org/log/nominal-ai-provider-for-opencode/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.
    - Text generation with OpenCode Go and Zen models.
    - Conversation history for available models.
    - Live model list from OpenCode, so new models can appear without a plugin update.
    - Automatic connection to WordPress’s AI system.
    - Provider logo and description (needs PHP AI Client SDK 1.2.0 or newer).

## Meta

 *  Version **1.0.0**
 *  Last updated **4 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 7.0 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/nominal-ai-provider-for-opencode/) and
   [English (US)](https://wordpress.org/plugins/nominal-ai-provider-for-opencode/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode)
 * Tags
 * [AI](https://mlt.wordpress.org/plugins/tags/ai/)[artificial intelligence](https://mlt.wordpress.org/plugins/tags/artificial-intelligence/)
   [connector](https://mlt.wordpress.org/plugins/tags/connector/)[opencode](https://mlt.wordpress.org/plugins/tags/opencode/)
   [Provider](https://mlt.wordpress.org/plugins/tags/provider/)
 *  [Advanced View](https://mlt.wordpress.org/plugins/nominal-ai-provider-for-opencode/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/nominal-ai-provider-for-opencode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/nominal-ai-provider-for-opencode/reviews/)

## Contributors

 *   [ thaikolja ](https://profiles.wordpress.org/thaikolja/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/nominal-ai-provider-for-opencode/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/thaikolja/10)