WordPress plugin intelligence profile

AI Provider for Command Code

Command Code provider for the PHP AI Client: Claude, GPT, Gemini and leading open models through one API.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.6
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.9 · PHP 7.4
Directory statusactive
Last directory update22 Sept 20261mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records AI Provider for Command Code version 1.0.6 as active, updated 1mo ago and tested up to WordPress 7.1.

Overview

About this plugin

Adds Command Code as a provider for the WordPress AI Client.

Command Code routes Claude, GPT, Gemini and the top open models through a single API with

OpenAI-compatible and Anthropic-compatible endpoints, so one API key covers every model the

AI plugin can use.

  • The model list is fetched live from GET /provider/v1/models, including newly added models.
  • Claude models are called on the Anthropic Messages endpoint, everything else on the

OpenAI-compatible chat completions endpoint — matching the supported_endpoints field the API

reports for each model.

  • Tool calling, structured output (JSON schema), chat history, stop sequences and multi-candidate

generation are supported where the model supports them.

  • Zero data retention can be requested per request (see below).

Configuration

The API key is read, in order of precedence, from:

  • The COMMANDCODE_API_KEY environment variable
  • The COMMANDCODE_API_KEY PHP constant
  • The connectors_ai_commandcode_api_key option (Settings → Connectors)

All optional settings are environment variables or PHP constants:

  • COMMANDCODE_DEFAULT_MODEL — model ID to prefer in pickers and feature filters.

Default: claude-sonnet-5.

  • COMMANDCODE_ZDR — set to 1 to send x-cmd-zdr: 1 and route only through zero-data-retention

upstreams. Requests fail with a 422 when the chosen model has no ZDR-capable upstream instead of

silently falling back. Default: off.

  • COMMANDCODE_BASE_URL — Provider API base URL.

ai/provider/v1.

  • COMMANDCODE_MODEL_INPUT_MODALITIES — comma-separated list of modalities your models accept.

g. text,image ) for deployments that require vision features. Default: text only.

  • COMMANDCODE_REQUEST_TIMEOUT — request timeout in seconds. Default: 120.
  • COMMANDCODE_CONNECT_TIMEOUT — connection timeout in seconds. Default: 10.
  • COMMANDCODE_STRUCTURED_OUTPUT — how JSON response requests are shaped. One of:
  • json_schema (default) — sends the JSON schema. Use this by default.
  • json_object — asks only for valid JSON, without the schema. Widely supported fallback.
  • none — sends no response_format at all. Use this when a model rejects every form of it.

g. Editorial Notes) fails with

400 … “param”:”response_format”, try json_object.

To influence which models the AI plugin picks for its features, use the standard filters in your own

plugin or theme — this plugin already puts its preferred model first:

6-luna' ) ); return $models; } );<h3>External services</h3>

This plugin connects to the Command Code Provider API, an external service operated by Command Code.

It is required so the WordPress AI Client can route requests to models from your site. Command Code is

a paid service: a plan with API access is needed (the free Go plan has none), and requests are billed

to your Command Code account.

ai/provider/v1:

  • GET /models — called when the AI Client refreshes its list of available models, and when it checks

whether your credentials work. No user content is sent; only your API key, so Command Code can

return the models available to your account.

  • POST /chat/completions — called whenever any plugin or theme on your site uses the WordPress AI

Client to generate text with a non-Claude model. The request carries your API key and the prompt:

messages, system instruction, tool definitions, and any other parameters the calling code supplied

(conversation history, a JSON schema for structured output, or files attached to the prompt).

  • POST /messages — the same as above, for Claude models, which Command Code serves only on this

endpoint.

No request is made until something on your site asks the AI Client for a generation, or the AI Client

refreshes its model list. Your API key is stored on your own site and is only ever sent to

ai.

Optional: setting COMMANDCODE_ZDR=1 adds an x-cmd-zdr: 1 header, asking Command Code to route the

request only through zero-data-retention upstreams. Requests fail with a 422 when a chosen model has

no such upstream, rather than falling back silently.

This service is provided by Command Code:

  • Provider API documentation: https://commandcode.ai/docs/provider
  • Terms of Service: https://commandcode.ai/terms
  • Privacy Policy: https://commandcode.ai/privacy
  • Zero data retention: https://commandcode.ai/docs/resources/zdr
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • command code
  • ai
  • claude
  • connector
  • gpt
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.9 · PHP 7.4
Update activity22 Sept 20261mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

WordPress compatibility7.1.17.1.2
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.