跳到内容

OpenCode AI Provider

v1.1.0

FahimMurshed · 2026年7月29日 上架

OpenCode Console AI Provider for the PHP AI Client with ChatGPT-style AI Assistant, Zero-Downtime Fallbacks, and MCP Agent Server.

正在使用
10 以下
评分
5.0 / 5
累计下载
705
最近更新
2026年11月23日
1 条评价需要 WordPress 7.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

OpenCode AI Provider
OpenCode AI Provider

Connect your WordPress site to the OpenCode Console (OpenCode 2.0 API). This plugin integrates directly with the official WordPress PHP AI Client SDK, introduces a modern ChatGPT-style AI Assistant directly in your WordPress admin bar, provides Zero-Downtime Fallback Architecture via OpenRouter and Kilo AI, and deploys a full Model Context Protocol (MCP) server for external autonomous coding agents.

✨ Key Features

  • ChatGPT-Style AI Assistant: Dedicated admin interface located directly after Dashboard. Write, draft, ideate, and format blog posts or landing pages through chat.
  • Voice Dictation (Speech-to-Text): Speak your prompts directly to the assistant using browser-native speech recognition.
  • One-Click Draft Publishing: Convert AI responses directly into WordPress Post or Page drafts with a single click.
  • Context-Aware Content Editing: Select any existing post or page to feed its title and content into the AI conversation for instant rewrites, SEO optimization, and polishing.
  • Dynamic Model Fetching (Zero Dummy Data): Models are fetched in real-time from the live OpenCode Console API (/models). As you enter or paste your API key, models populate dynamically.
  • Zero-Downtime Fallback Architecture: OpenCode Console free models provide access to frontier intelligence, but shared rate limits (HTTP 429 “Free usage limit reached”) can occur. When enabled, your queries automatically failover to OpenRouter or Kilo AI Gateway without interrupting your workflow.
  • Direct Fallback Model Selection: Choose between OpenCode Free models, OpenRouter free frontier models (Gemini 2.0 Flash, DeepSeek R1, Llama 3.3 70B), and Kilo AI Gateway directly from the AI Assistant selector.
  • Model Context Protocol (MCP) Server: Standard JSON-RPC 2.0 MCP server endpoint (/wp-json/opencode/v1/mcp) enabling OpenCode CLI, Claude Code, Cursor, and Windsurf to securely read and edit WordPress content with dynamic token authentication.
  • Official PHP AI Client Provider: Fully implements the WordPress PHP AI Client SDK (wp_ai_client_prompt() or AiClient::prompt()->usingProvider('opencode')).
  • About Developer Profile: Integrated profile tab showcasing 10+ years of WordPress, WooCommerce, and AI engineering expertise, services, and direct collaboration channels.

🚀 Getting Started

  1. Visit opencode.ai/console/account to create a Personal API key.
  2. In your WordPress admin, navigate to AI Assistance › Settings.
  3. Paste your API key (oc_sk_...) into the OpenCode API Key field. The available models will fetch automatically.
  4. Click Save Connection Settings.
  5. Start creating content under AI Assistance!

🛡️ Zero-Downtime Fallbacks (OpenRouter & Kilo AI)

To ensure uninterrupted AI capabilities when OpenCode shared daily free limits are reached:

  1. Navigate to AI Assistance › Settings › Fallback Providers.
  2. Check Enable Automatic Fallback.
  3. Optionally add an OpenRouter API Key or Kilo AI Gateway Key.
  4. Live models are fetched dynamically for each provider with zero dummy entries.

🤖 Model Context Protocol (MCP) Access

The plugin exposes a secure, token-authenticated MCP server at:
https://your-site.com/wp-json/opencode/v1/mcp

Connect using the OpenCode CLI:
opencode mcp add wordpress –url https://your-site.com/wp-json/opencode/v1/mcp –header “Authorization: Bearer YOUR_MCP_TOKEN”

Available MCP tools:
* get_site_info: Returns site name, URL, active theme, and WordPress version.
* list_posts: Queries posts with status, search, and pagination filters.
* get_post: Retrieves complete post object with title and content.
* create_post: Creates a draft or published post or page.
* update_post: Updates title, content, or status of an existing post.
* delete_post: Moves a post to trash.
* list_categories: Lists post categories.
* list_tags: Lists post tags.

Privacy Policy

This plugin transmits user prompts and post content to configured AI endpoints (OpenCode Console at opencode.ai, OpenRouter at openrouter.ai, or Kilo AI at kilo.ai) solely to generate assistant responses.
* OpenCode Privacy Policy: https://opencode.ai/legal/privacy-policy
* OpenCode Terms of Service: https://opencode.ai/legal/terms-of-service

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums