Açıklama
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.
Features
- 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.
Requirements
- PHP 7.4 or higher
- 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 key
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.
What data is sent and when:
- 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
- Website: https://opencode.ai/
- API Base URL: https://opencode.ai/zen/go/v1
- Terms of Service: https://opencode.ai/terms
Yükleme
- 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.
SSS
-
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.
İncelemeler
Bu eklenti için herhangi bir değerlendirme bulunmuyor.
Katkıda Bulunanlar ve Geliştiriciler
“Nominal AI Provider for OpenCode” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.
Katkıda bulunanlar“Nominal AI Provider for OpenCode” 1 dile çevrildi. Katkıda bulundukları için çevirmenlere teşekkürler.
“Nominal AI Provider for OpenCode” eklentisini dilinize çevirin.
Geliştirmeyle ilgilenir misiniz?
Kodu görüntüleyin, SVN deposuna göz atın ya da RSS ile geliştirme günlüğüne abone olun.
Değişiklik Kaydı
1.0.0
- Initial release.
- Text generation via OpenCode Go and Zen AI models.
- 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+).
