{"id":303915,"date":"2026-04-30T07:53:08","date_gmt":"2026-04-30T07:53:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-provider-for-opencode-zen\/"},"modified":"2026-05-10T23:58:41","modified_gmt":"2026-05-10T23:58:41","slug":"alamin-ai-provider-for-opencode-zen","status":"publish","type":"plugin","link":"https:\/\/fa-af.wordpress.org\/plugins\/alamin-ai-provider-for-opencode-zen\/","author":20002658,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"6.7","requires_php":"7.4","requires_plugins":null,"header_name":"Alamin AI Provider for OpenCode Zen","header_author":"Al Amin Ahamed","header_description":"OpenCode Zen AI provider for the WordPress AI Client. Not affiliated with OpenCode Zen.","assets_banners_color":"505050","last_updated":"2026-05-10 23:58:41","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/alaminahamed.com\/donate","header_plugin_uri":"https:\/\/github.com\/mralaminahamed\/alamin-ai-provider-for-opencode-zen","header_author_uri":"https:\/\/github.com\/mralaminahamed","rating":0,"author_block_rating":0,"active_installs":0,"downloads":139,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"mralaminahamed","date":"2026-05-10 23:58:41"}},"upgrade_notice":{"1.0.0":"<p>Initial release. No upgrade steps required.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3519300,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3519300,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3519300,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3519300,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3519300,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner.svg":{"filename":"banner.svg","revision":3519300,"resolution":false,"location":"assets","locale":false}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"The OpenCode Zen settings page where you configure your API key and default model."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2353,5739,226124,261513,227698],"plugin_category":[],"plugin_contributors":[221130],"plugin_business_model":[],"class_list":["post-303915","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-artificial-intelligence","plugin_tags-llm","plugin_tags-opencode","plugin_tags-text-generation","plugin_contributors-mralaminahamed","plugin_committers-mralaminahamed"],"banners":{"banner":"https:\/\/ps.w.org\/alamin-ai-provider-for-opencode-zen\/assets\/banner-772x250.png?rev=3519300","banner_2x":"https:\/\/ps.w.org\/alamin-ai-provider-for-opencode-zen\/assets\/banner-1544x500.png?rev=3519300","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/alamin-ai-provider-for-opencode-zen\/assets\/icon.svg?rev=3519300","icon":"https:\/\/ps.w.org\/alamin-ai-provider-for-opencode-zen\/assets\/icon.svg?rev=3519300","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin integrates <a href=\"https:\/\/opencode.ai\">OpenCode Zen<\/a> 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.<\/p>\n\n<p>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.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li>Seamless integration with the WordPress AI Client plugin<\/li>\n<li>Dynamic model discovery from the OpenCode Zen API with hourly caching<\/li>\n<li>Support for text generation using Claude and GPT models<\/li>\n<li>Secure API key management via WordPress settings or environment variable<\/li>\n<li>Fallback to a hardcoded model list when the API is unavailable<\/li>\n<\/ul>\n\n<p><strong>Supported Models (fallback list):<\/strong><\/p>\n\n<ul>\n<li>GPT-4o<\/li>\n<li>GPT-4o Mini<\/li>\n<li>Claude Sonnet 4<\/li>\n<li>Claude 3.5 Sonnet<\/li>\n<\/ul>\n\n<p><strong>Requirements:<\/strong><\/p>\n\n<ul>\n<li>WordPress AI Client plugin (or WordPress 7.0+ with built-in AI Client)<\/li>\n<li>An <a href=\"https:\/\/opencode.ai\">OpenCode Zen<\/a> account and API key<\/li>\n<\/ul>\n\n<p><strong>API Key Configuration:<\/strong><\/p>\n\n<p>Set your API key in one of two ways:<\/p>\n\n<ol>\n<li><code>Settings &gt; OpenCode Zen<\/code> admin page<\/li>\n<li><code>OPENCODE_ZEN_API_KEY<\/code> environment variable (takes priority)<\/li>\n<\/ol>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to the <strong>OpenCode Zen API<\/strong> to:<\/p>\n\n<ol>\n<li>Retrieve the list of available AI models (cached for 1 hour via WordPress transients)<\/li>\n<li>Send text generation requests using your configured AI model<\/li>\n<\/ol>\n\n<p><strong>Service:<\/strong> OpenCode Zen\n<strong>API endpoint:<\/strong> <code>https:\/\/api.opencode.ai<\/code> (or as configured)\n<strong>When data is sent:<\/strong> When generating AI text responses or refreshing the model list\n<strong>Data sent:<\/strong> Your API key (via Authorization header) and the text prompt\/conversation\n<strong>Provider site:<\/strong> <a href=\"https:\/\/opencode.ai\/\">opencode.ai<\/a> \u2014 refer to the OpenCode Zen website for their current Terms of Service and Privacy Policy.<\/p>\n\n<p>No data is sent to the OpenCode Zen API until you enter an API key and a WordPress feature triggers a text generation request.<\/p>\n\n<!--section=installation-->\n<h4>As a WordPress Plugin<\/h4>\n\n<ol>\n<li>Download the plugin zip file<\/li>\n<li>Go to <strong>Plugins &gt; Add New &gt; Upload Plugin<\/strong> in your WordPress admin<\/li>\n<li>Upload the zip and click <strong>Install Now<\/strong><\/li>\n<li>Ensure the <strong>WordPress AI Client<\/strong> plugin is installed and activated<\/li>\n<li>Activate <strong>AI Provider for OpenCode Zen<\/strong><\/li>\n<li>Go to <strong>Settings &gt; OpenCode Zen<\/strong> and enter your API key<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Upload the <code>alamin-ai-provider-for-opencode-zen<\/code> folder to <code>\/wp-content\/plugins\/<\/code><\/li>\n<li>Follow steps 4\u20136 above<\/li>\n<\/ol>\n\n<h4>As a Composer Package<\/h4>\n\n<pre><code>composer require mralaminahamed\/ai-provider-for-opencode-zen\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20is%20opencode%20zen%3F\"><h3>What is OpenCode Zen?<\/h3><\/dt>\n<dd><p>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 <a href=\"https:\/\/opencode.ai\">opencode.ai<\/a>.<\/p><\/dd>\n<dt id=\"do%20i%20need%20the%20wordpress%20ai%20client%3F\"><h3>Do I need the WordPress AI Client?<\/h3><\/dt>\n<dd><p>Yes. This plugin is a provider add-on for the WordPress AI Client. Install and activate that plugin first.<\/p><\/dd>\n<dt id=\"where%20do%20i%20get%20an%20api%20key%3F\"><h3>Where do I get an API key?<\/h3><\/dt>\n<dd><p>Sign up at <a href=\"https:\/\/opencode.ai\">opencode.ai<\/a> and generate an API key from your account dashboard.<\/p><\/dd>\n<dt id=\"is%20my%20api%20key%20stored%20securely%3F\"><h3>Is my API key stored securely?<\/h3><\/dt>\n<dd><p>Your API key is stored in the WordPress options table using WordPress's standard options API. For higher security, set the <code>OPENCODE_ZEN_API_KEY<\/code> environment variable on your server instead.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20the%20opencode%20zen%20api%20is%20unreachable%3F\"><h3>What happens if the OpenCode Zen API is unreachable?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>OpenCode Zen provider registration with WordPress AI Client<\/li>\n<li>Dynamic model discovery with transient caching and fallback list<\/li>\n<li>Settings page for API key and default model configuration<\/li>\n<li>Support for <code>OPENCODE_ZEN_API_KEY<\/code> environment variable<\/li>\n<\/ul>","raw_excerpt":"Integrates OpenCode Zen as an AI provider for the WordPress AI Client, enabling Claude and GPT model access for coding and general tasks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/303915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=303915"}],"author":[{"embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mralaminahamed"}],"wp:attachment":[{"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=303915"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=303915"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=303915"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=303915"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=303915"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fa-af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=303915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}