This plugin integrates
OpenCode Zen as an AI provider for the WordPress AI Client. It enables access to high-performance AI models optimized for coding and general tasks through the OpenCode Zen API.
This plugin is an independent, third-party integration and is not affiliated with, endorsed by, or sponsored by OpenCode Zen. "OpenCode Zen" is the name of the third-party service this plugin connects to.
Features:
- Seamless integration with the WordPress AI Client plugin
- Dynamic model discovery from the OpenCode Zen API with hourly caching
- Support for 40+ models including GPT 5.x, Claude 4.x, Gemini 3.x, Qwen, MiniMax, Kimi, Grok, and more
- Secure API key management via WordPress settings or environment variable
- Full generation parameter control: temperature, max tokens, top P, presence penalty, and frequency penalty
- Fallback to a hardcoded model list when the API is unavailable
Supported Models (fallback list):
GPT models: GPT 5.5, GPT 5.5 Pro, GPT 5.4, GPT 5.4 Pro, GPT 5.4 Mini, GPT 5.4 Nano, GPT 5.3 Codex, GPT 5.3 Codex Spark, GPT 5.2, GPT 5.2 Codex, GPT 5.1, GPT 5.1 Codex, GPT 5.1 Codex Max, GPT 5.1 Codex Mini, GPT 5, GPT 5 Codex, GPT 5 Nano
Claude models: Claude Opus 4.7, Claude Opus 4.6, Claude Opus 4.5, Claude Opus 4.1, Claude Sonnet 4.6, Claude Sonnet 4.5, Claude Sonnet 4, Claude Haiku 4.5, Claude 3.5 Haiku
Gemini models: Gemini 3.5 Flash, Gemini 3.1 Pro, Gemini 3 Flash
Other models: Qwen 3.6 Plus, Qwen 3.5 Plus, MiniMax M2.7, MiniMax M2.5, GLM 5.1, Kimi K2.6, Kimi K2.5, Grok Build 0.1, Big Pickle, DeepSeek V4 Flash Free, Nemotron 3 Super Free
When an API key is configured, the live model list is fetched directly from the OpenCode Zen API.
Requirements:
- WordPress 7.0 or higher (the AI Client SDK is built into WordPress core)
- An OpenCode Zen account and API key
Settings:
Go to
Settings > OpenCode Zen to configure:
- API Key — your OpenCode Zen API key (or set the
OPENCODE_ZEN_API_KEY environment variable)
- Default Model — the model used when no explicit model is requested
- Temperature — controls output randomness (0.0–2.0, default 1.0)
- Max Tokens — maximum tokens in the generated response (default 2048)
- Top P — nucleus sampling threshold (0.0–1.0, default 1.0)
- Presence Penalty — penalises repeated topics (-2.0–2.0, default 0.0)
- Frequency Penalty — penalises repeated tokens (-2.0–2.0, default 0.0)
As a WordPress Plugin
- Download the plugin zip file
- Go to Plugins > Add New > Upload Plugin in your WordPress admin
- Upload the zip and click Install Now
- Activate AI Provider for OpenCode Zen
- Go to Settings > OpenCode Zen and enter your API key
Note: WordPress 7.0 includes the AI Client SDK natively — no additional AI Client plugin is required. If you are running an older WordPress version, you must install the WordPress AI Client plugin separately first.
Manual Installation
- Upload the
alamin-ai-provider-for-opencode-zen folder to /wp-content/plugins/
- Follow steps 4–5 above
As a Composer Package
composer require mralaminahamed/ai-provider-for-opencode-zen