Title: AI Provider for OpenCode
Author: thaikolja
Published: <strong>14. јун 2026.</strong>
Last modified: 25. јул 2026.

---

Претражи додатке

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

# AI Provider for OpenCode

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

[Преузимање](https://downloads.wordpress.org/plugin/nominal-ai-provider-for-opencode.1.0.0.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/nominal-ai-provider-for-opencode/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/nominal-ai-provider-for-opencode/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/nominal-ai-provider-for-opencode/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/nominal-ai-provider-for-opencode/#developers)

 [Подршка](https://wordpress.org/support/plugin/nominal-ai-provider-for-opencode/)

## Опис

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)

## Постављање

 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.

## ЧПП

### 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.

## Прегледи

Нема рецензија за овај додатак.

## Сарадници и градитељи

„AI Provider for OpenCode“ је софтвер отвореног кода. Следећи људи су допринели 
овом додатку.

Сарадници

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

„AI Provider for OpenCode“ је преведен на 1 језик. Хвала [преводиоцима](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode/contributors)
за њихове доприносе.

[Преведите „AI Provider for OpenCode“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/nominal-ai-provider-for-opencode/),
проверите [SVN складиште](https://plugins.svn.wordpress.org/nominal-ai-provider-for-opencode/)
или се пријавите на [белешку градње](https://plugins.trac.wordpress.org/log/nominal-ai-provider-for-opencode/)
преко [RSS-а](https://plugins.trac.wordpress.org/log/nominal-ai-provider-for-opencode/?limit=100&mode=stop_on_copy&format=rss).

## Белешка о изменама

#### 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+).

## Мета

 *  Version **1.0.0**
 *  Last updated **1 седмица раније**
 *  Active installations **Мање од 10**
 *  WordPress version ** 6.9 или новије **
 *  Tested up to **7.0.2**
 *  PHP version ** 7.4 или новије **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/nominal-ai-provider-for-opencode/) и
   [English (US)](https://wordpress.org/plugins/nominal-ai-provider-for-opencode/).
 *  [Преведите на свој језик](https://translate.wordpress.org/projects/wp-plugins/nominal-ai-provider-for-opencode)
 * Tags
 * [AI](https://sr.wordpress.org/plugins/tags/ai/)[artificial intelligence](https://sr.wordpress.org/plugins/tags/artificial-intelligence/)
   [connector](https://sr.wordpress.org/plugins/tags/connector/)[opencode](https://sr.wordpress.org/plugins/tags/opencode/)
   [Provider](https://sr.wordpress.org/plugins/tags/provider/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/nominal-ai-provider-for-opencode/advanced/)

## Оцене

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

## Сарадници

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

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/nominal-ai-provider-for-opencode/)

## Донирај

Желите ли да подржите напредак овог додатка?

 [ Донирај овом додатку ](https://paypal.me/thaikolja)