Zactonz AI Connector: OpenRouter
v1.0.0OpenRouter connector for the WordPress AI Client. Hundreds of models from dozens of labs behind one API key, with capabilities read from the OpenRouter catalogue.
FAQ
Where do I get an API key?#
Create one on the OpenRouter dashboard at openrouter.ai/keys. OpenRouter bills usage across every model to that one account.
Which models will I see?#
Models are listed from the OpenRouter catalogue your API key can reach. The connector reads the capabilities OpenRouter reports for each model, so a model only appears as vision, tool-calling or structured-output capable when OpenRouter says it is.
Does this replace the connectors in WordPress core?#
No. WordPress core ships its own connectors. This plugin adds OpenRouter alongside them, and you can keep several connectors active at once and pick a default model per capability.
Can I keep the key out of the database?#
Yes. Define OPENROUTER_API_KEY in wp-config.php or as an environment variable. The settings field is then disabled and nothing is stored.
Is my key ever displayed or logged?#
No. The key is stored in its own option, is never rendered back into the settings screen, and is excluded from the diagnostics report and from Site Health debug information.
Does OpenRouter know which site is calling?#
The connector sends the standard OpenRouter attribution headers, HTTP-Referer with your site URL and X-Title with your site name, so requests show up under your site in the OpenRouter activity view. No other site data is sent.
Which WordPress and PHP versions are supported?#
WordPress 7.0 or newer and PHP 7.4 or newer. The connector is tested against the AI Client build that ships with WordPress 7.1 as well as the newest release.