Zactonz AI Connector: OpenRouter

v1.0.0

OpenRouter connector for the WordPress AI Client. Hundreds of models from dozens of labs behind one API key, with capabilities read from the OpenRouter catalogue.

WordPress 7.0+PHP 7.4+An OpenRouter account and API key Updated 18 Sep 2026

Installation & setup

Install the plugin#

Once the plugin is listed in the WordPress plugin directory, go to Plugins › Add New, search for Zactonz AI Connector: OpenRouter and click Install Now, then Activate. WordPress also links there directly from Settings › Connectors when it needs a connector that is not installed yet.

Until then, or to install manually: download the zip from the Download button above, go to Plugins › Add New › Upload Plugin, choose the zip and activate it. The plugin folder is wp-content/plugins/zactonz-ai-connector-openrouter/.

Connect to OpenRouter#

  1. Create an API key on the OpenRouter dashboard.
  2. Go to Settings › Connectors and paste the key into the OpenRouter connector.
  3. Go to Settings › OpenRouter to review the discovered models and choose a default model per capability, a reasoning effort for the default text model, and request timeouts.

Keep the key out of the database#

Define OPENROUTER_API_KEY in wp-config.php, or set an environment variable of the same name. When either is present the connector uses it, the settings field is disabled, and nothing is written to the database.

define( 'OPENROUTER_API_KEY', 'sk-or-…' );

Use a proxy or private gateway#

Settings › OpenRouter has an API base URL field. Leave it empty to use https://openrouter.ai/api/v1, or point it at a gateway that speaks the same API.

Check the connection#

Tools › Site Health includes a connectivity test for OpenRouter, and Settings › OpenRouter has a diagnostics button that reports the endpoint, HTTP status, latency, the number of discovered models, any configured defaults missing from the current catalogue, and the AI Client version. The key never appears in the report.