ವಿವರಣೆ
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 text generation using Claude and GPT models
- Secure API key management via WordPress settings or environment variable
- Fallback to a hardcoded model list when the API is unavailable
Supported Models (fallback list):
- GPT-4o
- GPT-4o Mini
- Claude Sonnet 4
- Claude 3.5 Sonnet
Requirements:
- WordPress AI Client plugin (or WordPress 7.0+ with built-in AI Client)
- An OpenCode Zen account and API key
API Key Configuration:
Set your API key in one of two ways:
Settings > OpenCode Zenadmin pageOPENCODE_ZEN_API_KEYenvironment variable (takes priority)
External Services
This plugin connects to the OpenCode Zen API to:
- Retrieve the list of available AI models (cached for 1 hour via WordPress transients)
- Send text generation requests using your configured AI model
Service: OpenCode Zen
API endpoint: https://api.opencode.ai (or as configured)
When data is sent: When generating AI text responses or refreshing the model list
Data sent: Your API key (via Authorization header) and the text prompt/conversation
Provider site: opencode.ai — refer to the OpenCode Zen website for their current Terms of Service and Privacy Policy.
No data is sent to the OpenCode Zen API until you enter an API key and a WordPress feature triggers a text generation request.
Installation
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
- Ensure the WordPress AI Client plugin is installed and activated
- Activate AI Provider for OpenCode Zen
- Go to Settings > OpenCode Zen and enter your API key
Manual Installation
- Upload the
alamin-ai-provider-for-opencode-zenfolder to/wp-content/plugins/ - Follow steps 4–6 above
As a Composer Package
composer require mralaminahamed/ai-provider-for-opencode-zen
FAQ
-
What is OpenCode Zen?
-
OpenCode Zen is an AI platform that provides access to various AI models including Claude and GPT models through an OpenAI-compatible API. Learn more at opencode.ai.
-
Do I need the WordPress AI Client?
-
Yes. This plugin is a provider add-on for the WordPress AI Client. Install and activate that plugin first.
-
Where do I get an API key?
-
Sign up at opencode.ai and generate an API key from your account dashboard.
-
Is my API key stored securely?
-
Your API key is stored in the WordPress options table using WordPress’s standard options API. For higher security, set the
OPENCODE_ZEN_API_KEYenvironment variable on your server instead. -
What happens if the OpenCode Zen API is unreachable?
-
The plugin falls back to a hardcoded list of supported models (GPT-4o, GPT-4o Mini, Claude Sonnet 4, Claude 3.5 Sonnet) so the AI Client continues to function.
ವಿಮರ್ಶೆಗಳು
ಈ ಪ್ಲಗಿನ್ಗೆ ಯಾವುದೇ ವಿಮರ್ಶೆಗಳಿಲ್ಲ.
Contributors & Developers
“AI Provider for OpenCode Zen” is open source software. The following people have contributed to this plugin.
ಕೊಡುಗೆದಾರರುTranslate “AI Provider for OpenCode Zen” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release
- OpenCode Zen provider registration with WordPress AI Client
- Dynamic model discovery with transient caching and fallback list
- Settings page for API key and default model configuration
- Support for
OPENCODE_ZEN_API_KEYenvironment variable
