Nominal AI Provider for OpenCode

外掛說明

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

安裝方式

  1. Upload the plugin files to /wp-content/plugins/nominal-ai-provider-for-opencode/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. (Optional) For safety, configure your OpenCode API key via the OPENCODE_API_KEY environment variable or constant, e
    .g., define( 'OPENCODE_API_KEY', 'your-api-key-here' ); in your wp-config.php file.

常見問題集

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.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Nominal AI Provider for OpenCode〉的開發相關工作。

參與者

〈Nominal AI Provider for OpenCode〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Nominal AI Provider for OpenCode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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