Title: AI Provider for OpenCode
Author: thaikolja
Published: <strong>14.6.2026</strong>
Last modified: 25.7.2026

---

Hae lisäosia

![](https://s.w.org/plugins/geopattern-icon/nominal-ai-provider-for-opencode.svg)

# AI Provider for OpenCode

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

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

 * [Tiedot](https://fi.wordpress.org/plugins/nominal-ai-provider-for-opencode/#description)
 * [Arvostelut](https://fi.wordpress.org/plugins/nominal-ai-provider-for-opencode/#reviews)
 *  [Asennus](https://fi.wordpress.org/plugins/nominal-ai-provider-for-opencode/#installation)
 * [Kehitys](https://fi.wordpress.org/plugins/nominal-ai-provider-for-opencode/#developers)

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

## Kuvaus

The [PHP AI Client](https://github.com/WordPress/php-ai-client) gives WordPress 
a standard way to communicate with AI providers, but it needs a provider-specific
implementation for each service. This plugin fills that gap for OpenCode: it knows
the correct API endpoints, handles authentication, and translates between WordPress
and OpenCode’s API so your site can generate text, maintain chat history, and discover
available models automatically.

Once activated, the plugin registers itself with the PHP AI Client on WordPress 
startup. There are no settings screens, no configuration forms, and no manual wiring.
It’s intentionally zero-config.

#### Features

 * **Text Generation** — Use OpenCode’s language models for content creation, summarization,
   analysis, and more.
 * **Chat History** — Maintain conversation context across multiple interactions
   for natural back-and-forth exchanges.
 * **Dynamic Model Discovery** — Available models are fetched from the OpenCode 
   API automatically. When OpenCode adds new models, they appear in your site without
   a plugin update.
 * **Automatic Provider Registration** — Registers with the PHP AI Client during
   WordPress initialization. No setup required.

#### Requirements

 * PHP 7.4 or higher (if your host is still on PHP 5.6, I have bad news for you —
   and it’s not just this plugin that won’t work)
 * For **WordPress 6.9**: The [wordpress/php-ai-client](https://github.com/WordPress/php-ai-client)
   package needs to be [installed separately](https://github.com/WordPress/php-ai-client?tab=readme-ov-file#installation).
   Yes, it’s an extra step. Complain to the WP core team, not me.
 * For **WordPress 7.0+**: Everything’s built-in. You’re good. Go make a cup of 
   tea.
 * An [OpenCode API key](https://opencode.ai/) (it’s like a library card, but for
   AI)

### External Services

This plugin talks to OpenCode’s servers. Here’s the boring but legally necessary
breakdown:

**What gets sent and when:**
 * Your **API key** goes with every request so OpenCode
knows you’re you. * Your **prompts and messages** (the text you ask the AI to process)
get sent to OpenCode’s servers. Don’t send anything you wouldn’t want a third party
to read. * A quick **model list request** happens when the plugin starts up, so 
it knows what models are available. * Nothing is sent when you’re not using the 
AI features. It’s not spying on you. It’s a plugin, not your ex.

**Who you’re dealing with:**
 * **Service:** [OpenCode](https://opencode.ai/) * **
API end point:** `https://opencode.ai/zen/go/v1` * **Terms of service:** [opencode.ai/terms](https://opencode.ai/terms)

## Asennus

 1. Upload the plugin folder to `/wp-content/plugins/` on your server. Or use the WordPress
    plugin uploader if you’re fancy.
 2. Activate the plugin through the **Plugins** screen in WordPress. Click the button.
    You know the drill.
 3. _(Optional but recommended)_ Add your OpenCode API key to `wp-config.php`:
     `define('
    OPENCODE_API_KEY', 'your-api-key-here' );` Replace `your-api-key-here` with your
    actual key. I shouldn’t have to say this, but someone will paste it verbatim and
    then wonder why it doesn’t work.

**That’s it.** Three steps. If you can’t handle that, maybe AI isn’t your biggest
problem.

## UKK

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

Go to [opencode.ai](https://opencode.ai/), sign up for either the ”Go” or ”Zen” 
plan, and generate a key from your dashboard. It’s free (well, as free as these 
things ever are). The key tells OpenCode ”yes, this person is allowed to use me”
every time the plugin makes a request.

### Does this plugin work without the PHP AI Client?

No. That’s like asking if a USB cable works without a computer. The PHP AI Client
is the thing that _uses_ this plugin. If you’re on WordPress 6.9, you need to [install it](https://github.com/WordPress/php-ai-client?tab=readme-ov-file#installation).
If you’re on WordPress 7.0+, it’s already there. No, I can’t make it work without
it. Yes, I’ve tried.

### What models are available?

The plugin asks OpenCode’s API for the current model list, so it changes over time.
At the time of writing, you get models like **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**, and **Qwen3.5-
Plus**.

New models show up automatically. Old ones might disappear. Such is life in the 
AI world. Don’t get attached.

## Arvostelut

There are no reviews for this plugin.

## Avustajat & Kehittäjät

“AI Provider for OpenCode” perustuu avoimeen lähdekoodiin. Seuraavat henkilöt ovat
osallistuneet tämän lisäosan kehittämiseen.

Avustajat

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

“AI Provider for OpenCode” has been translated into 1 locale. Kiitoksia [kääntäjille](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode/contributors)
heidän työstään.

[Käännä “AI Provider for OpenCode” omalle kielellesi.](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode)

### Oletko kiinnostunut kehitystyöstä?

[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).

## Muutosloki

#### 1.0.0

 * Initial release.
    - Text generation via OpenCode Go and Zen AI models.
    - Chat history support across all discovered models.
    - Dynamic model discovery — models are fetched from the API, so new releases
      appear without plugin updates.
    - Automatic provider registration with the PHP AI Client.
    - Provider logo and description (requires PHP AI Client SDK 1.2.0+).

## Metatiedot

 *  Version **1.0.0**
 *  Last updated **1 viikko sitten**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.9 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/) ja
   [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://fi.wordpress.org/plugins/tags/ai/)[artificial intelligence](https://fi.wordpress.org/plugins/tags/artificial-intelligence/)
   [connector](https://fi.wordpress.org/plugins/tags/connector/)[opencode](https://fi.wordpress.org/plugins/tags/opencode/)
   [Provider](https://fi.wordpress.org/plugins/tags/provider/)
 *  [Edistynyt näkymä](https://fi.wordpress.org/plugins/nominal-ai-provider-for-opencode/advanced/)

## Arvosanat

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/)

## Avustajat

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

## Tuki

Onko sinulla jotain sanottavaa? Tarvitsetko apua?

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

## Lahjoita

Haluatko tukea tämän lisäosan kehitystä?

 [ Tue tämän lisäosan tekijöitä ](https://paypal.me/thaikolja)