Linux 软件免费装
Banner图

AI Provider for OpenCode Zen – Multi-Model LLM Connector

开发者 mralaminahamed
更新时间 2026年8月10日 14:05
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

artificial intelligence connector text generation llm opencode

下载

1.1.0 1.2.0 1.2.1 1.3.1 1.4.0 1.5.0 1.0.0 1.3.0

详情介绍:

This plugin is an AI connector for OpenCode Zen. It registers OpenCode Zen with the WordPress AI Client, so every AI-enabled plugin on your site can reach 61 large language models through one API key — GPT, Claude, Gemini, Grok, Qwen, DeepSeek, MiniMax, Kimi and more, with no separate account per vendor. This plugin is an independent, third-party integration and is not affiliated with, endorsed by, or sponsored by OpenCode Zen. Why OpenCode Zen? OpenCode Zen is an AI model aggregator — one API key gives you access to 61 frontier models from OpenAI, Anthropic, Google, and others. Instead of managing separate API keys and billing accounts for each AI provider, you connect once to OpenCode Zen and switch between models freely. This makes it ideal for WordPress sites that want to experiment with different AI models, compare output quality, or use specialised models (e.g. a coding model for code-related tasks and a creative model for content). Features What Can You Do With AI in WordPress? Once this provider is configured, any WordPress plugin or theme that integrates with the WordPress AI Client can use it: Supported Models The live model list is fetched directly from the OpenCode Zen API, so you always see the latest models — no API key needed to read the catalogue. If the API is ever unavailable, a built-in fallback list of 61 models keeps everything working. Families include: See the full model catalogue for every model ID. Requirements How the WordPress AI Provider System Works WordPress 7.0 introduced a built-in AI Client SDK. Plugins and themes call a standard API (e.g. "generate text from this prompt") without knowing which AI provider is active. Provider plugins like this one register themselves with WordPress and handle the actual API calls. This means:
  1. Install this plugin → OpenCode Zen is registered as an AI provider
  2. Enter your API key in Settings > Connectors
  3. Every AI-enabled plugin on your site can now use OpenCode Zen automatically
You can also install multiple provider plugins and switch between them from the Connectors screen — no re-configuration of individual plugins needed. Settings Go to Settings > OpenCode Zen to configure: For Developers This plugin follows the official WordPress AI Provider pattern and works with any plugin built on the WordPress AI Client SDK. It registers the opencode-zen provider and supports the standard generation options (temperature, max tokens, top P, presence/frequency penalties, stop sequences, system instruction, and function declarations). The source code is on GitHub — bug reports and pull requests are welcome: Developer documentation: More from us Other free plugins by the same author, all on WordPress.org. Another provider for the same AI Client For any site For a WooCommerce store

安装:

  1. Upload the plugin files to /wp-content/plugins/alamin-ai-provider-for-opencode-zen/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings > Connectors and enter your OpenCode Zen API key.
  4. Go to Settings > OpenCode Zen to choose a default model and tune generation parameters.
  5. Install any AI-enabled plugin (e.g. the AI Experiments plugin) to start using AI features.
Getting Your API Key
  1. Sign up at opencode.ai
  2. Go to opencode.ai/zen/settings/api-keys
  3. Create a new API key and copy it
  4. Paste it into Settings > Connectors in your WordPress admin
WP-CLI Installation wp plugin install alamin-ai-provider-for-opencode-zen --activate

升级注意事项:

1.5.0 Settings now actually apply to requests — temperature, max tokens, top_p and the penalties were stored and never read. The model list no longer needs an API key and is synced to the live catalogue of 61 models; two models that OpenCode Zen does not serve have been removed. Internal PHP namespace and class names changed; no database changes and no settings to redo. 1.4.0 Expands the fallback model list to 54 current models, adds a connection-status indicator, and pre-selects a default model. Fixes a possible AI Client TypeError. No database changes required. 1.3.1 Fixes live model list not loading when API key is set via Settings > Connectors. Adds Claude Fable 5 and Claude Opus 4.8 to the fallback list. No database changes required. 1.3.0 Adds Top P, Presence Penalty, and Frequency Penalty settings. No database changes required. Requires WordPress 7.0 or higher. 1.2.1 Fixes connector showing "Connected" before an API key is entered. No database changes required. 1.2.0 Fixes a false "no valid connector" warning on the AI admin page. No database changes required.

常见问题:

What is OpenCode Zen?

OpenCode Zen is an AI platform that acts as a gateway to multiple AI providers. Instead of needing separate API keys for OpenAI (GPT), Anthropic (Claude), and Google (Gemini), you get access to all of them through a single OpenCode Zen API key. Learn more at opencode.ai.

Where do I enter my API key?

Go to Settings > Connectors in your WordPress admin and enter your OpenCode Zen API key there. All AI-enabled plugins on your site will automatically use it. Alternatively, set the OPENCODE_ZEN_API_KEY environment variable on your server.

Do I need to install a separate AI Client plugin?

No. WordPress 7.0 and higher include the AI Client SDK natively — no additional plugin is required.

Which model should I choose as the default?

It depends on your use case:

  • Content writing — Claude Sonnet 4.6 or GPT 5.4 for natural, fluent prose
  • Coding tasks — GPT 5.3 Codex or Grok Build 0.1 for code generation and review
  • Speed/cost balance — GPT 5.4 Mini or Gemini 3 Flash for quick, low-cost tasks
  • Research/analysis — Claude Opus 4.x or GPT 5.5 Pro for depth and accuracy

What happens if the OpenCode Zen API is unreachable?

The plugin falls back to a hardcoded list of 61 models so the AI Client continues to function and AI-enabled plugins stay operational.

Can I use multiple AI provider plugins at the same time?

Yes. WordPress lets you install multiple provider plugins. You can switch the active provider from Settings > Connectors at any time without reconfiguring any plugin.

Is my API key stored securely?

Your API key is stored in the WordPress options table, which is protected by your database credentials. For higher security, set the OPENCODE_ZEN_API_KEY environment variable on your server — this keeps the key entirely out of the database.

How does billing work?

Billing is handled entirely by OpenCode Zen. Your usage is billed according to OpenCode Zen's pricing based on tokens consumed per model. WordPress and this plugin do not charge anything.

What generation parameters does this provider support?

Temperature, max tokens, top P, presence penalty, frequency penalty, stop sequences, system instruction, and function declarations — the full set of options supported by the WordPress AI Client SDK.

Can I use this for WooCommerce product descriptions?

Yes, if you have a WooCommerce plugin that integrates with the WordPress AI Client. Once this provider is active and your API key is set, any AI-enabled WooCommerce plugin can generate product descriptions, SEO meta, and more using any of the 61 models.

Does this work with the Gutenberg block editor?

Yes. Any Gutenberg plugin or block that uses the WordPress AI Client will automatically use this provider once configured.

Do you have a developer API?

This plugin implements the standard WordPress AI Client provider interface. Developers building plugins or themes on top of the WordPress AI Client do not need to do anything special — if this provider is active, it will be available automatically.

更新日志:

1.5.0 - 2026-08-09 Added Changed Fixed 1.4.0 - 2026-07-21 Added 1.3.1 - 2026-06-16 Fixed 1.3.0 - 2026-06-16 Added 1.2.1 - 2026-05-01 Fixed 1.2.0 - 2026-04-01 Added 1.1.0 - 2026-03-01 Added 1.0.0 - 2026-01-01