Skip to content

AI Provider for OpenCode Zen

WordPress plugin that bridges OpenCode Zen with multiple AI providers — Claude, OpenAI, and Gemini — via a unified adapter interface.

Overview

OpenCode Zen is a WordPress-native code assistant. This plugin adds a provider abstraction layer that lets site owners connect their own API keys for Claude (Anthropic), OpenAI, or Gemini instead of being locked to a single vendor.

Architecture

A simple adapter pattern: each AI provider implements a ProviderInterface with complete() and stream() methods. The plugin handles credential storage (encrypted in wp_options), rate limiting, and error normalization across providers.

Supported Providers

  • Claude (Anthropic) — claude-sonnet-4-6, claude-haiku-4-5
  • OpenAI — GPT-4o, GPT-4o-mini
  • Gemini — Gemini 1.5 Pro, Flash

Available On

WordPress.org plugin repository.

Interested in working together?

I'm open to freelance engagements and consulting. Let's talk.