Beschrijving
Nominal AI Provider for OpenCode integrates OpenCode’s AI models into WordPress as a provider for the PHP AI Client SDK. Once activated, OpenCode is automatically registered as a provider — no manual configuration required. OpenCode provides access to several open-source models through a unified API, enabling text generation and chat history capabilities directly within your WordPress site.
Functies
- Text Generation — Use OpenCode’s language models for content creation, summarisation, analysis, and more.
- Chat History — Maintain conversation context across multiple interactions.
- Dynamic Model Discovery — Available models are fetched directly from the OpenCode API, so your plugin stays compatible with new releases automatically.
- Automatic Provider Registration — Registers itself with the PHP AI Client on WordPress init; no manual wiring needed.
Vereisten
- PHP 7.4 of hoger
- For WordPress 6.9, the wordpress/php-ai-client package must be installed
- For WordPress 7.0 and above, no additional changes are required
- OpenCode API-sleutel
External Services
This plugin connects to the OpenCode API to provide AI capabilities within WordPress. Connection to this service is required to enable text generation, chat history, and dynamic model discovery features.
Welke gegevens worden verzonden en wanneer:
- Your OpenCode API key is sent with every request to authenticate with the service.
- Any text prompts, messages, or content you submit for AI processing are sent to OpenCode’s servers.
- A request is made to the OpenCode API to fetch available models when the plugin initializes.
- Data is only transmitted when AI features are actively used.
Service provider: OpenCode
- Site: https://opencode.ai/
- Basis URL van de API: https://opencode.ai/zen/go/v1
- Terms of Service: https://opencode.ai/terms
Installatie
- Upload the plugin files to
/wp-content/plugins/nominal-ai-provider-for-opencode/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- (Optional) For safety, configure your OpenCode API key via the
OPENCODE_API_KEYenvironment variable or constant, e
.g.,define( 'OPENCODE_API_KEY', 'your-api-key-here' );in yourwp-config.phpfile.
FAQ
-
How do I get an OpenCode API key?
-
Visit the OpenCode Platform and sign up to either the “Go” or “Zen” plan. Once you have an account, you can generate an API key from the dashboard. This key is required to authenticate your requests to the OpenCode API.
-
Does this plugin work without the PHP AI Client?
-
No, this plugin requires the PHP AI Client SDK to be installed and activated (or WordPress 7.0+). It provides the OpenCode-specific implementation that the PHP AI Client uses.
-
What models are available?
-
Models are dynamically discovered from the OpenCode API. Currently available models 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, and Qwen3.5-Plus. New models are added automatically as OpenCode expands their offerings.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Nominal AI Provider for OpenCode” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“Nominal AI Provider for OpenCode” is vertaald in 1 locale. Dank voor de vertalers voor hun bijdragen.
Vertaal “Nominal AI Provider for OpenCode” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.0.0
- Initiële release.
- Tekstgeneratie via OpenCode Go en Zen AI-modellen.
- Chat history across all discovered models.
- Dynamic model discovery — models are fetched from the API, so new releases appear automatically.
- Automatic provider registration on WordPress init.
- Provider logo and description (requires PHP AI Client SDK 1.2.0+).
