AI Provider for Osaurus wires the Osaurus local LLM runtime into the WordPress AI Client that ships with WordPress 7.0.
After activation, any plugin that calls wp_ai_client_prompt() (Gutenberg AI features, official provider plugins, third-party code) can route prompts to Osaurus running on the same machine. Prompts never leave the local network.
Image generation, embeddings, and text-to-speech are not supported because Osaurus does not currently expose those endpoints. Pair this plugin with an image-capable provider such as the official AI Provider for OpenAI when you need images.
The plugin registers a provider with AiClient::defaultRegistry() and points it at the Osaurus HTTP server. Because Osaurus speaks the OpenAI Chat Completions wire format, the implementation extends the SDK’s OpenAI-compatible base classes — so capabilities like streaming and tool calling flow through automatically.
The plugin resolves the Osaurus base URL in this order (first match wins):
OSAURUS_BASE_URL PHP constant defined in wp-config.php.osaurus_ai_connector_base_url option, settable from Settings → Connectors in wp-admin.http://127.0.0.1:1337/v1 (works out of the box for bare-metal WordPress on the same Mac as Osaurus; Docker setups must override).WordPress can run in many places — the right base URL depends on how it reaches your Mac, where Osaurus is listening.
https://... if you front it with TLS.The fastest way to confirm a URL works from the WordPress host: run curl <base-url>/models from the same shell environment WordPress runs in. A JSON list back means the connector will work.
Osaurus project home: osaurus.ai
Osaurus documentation: docs.osaurus.ai
This plugin connects to an Osaurus HTTP server — a local LLM runtime that you install and run yourself on the same machine as WordPress (or on a host you operate). The plugin is useless without it: every text-generation request from the WordPress AI Client is routed to this server.
Service: Osaurus (self-hosted, local LLM runtime)
Osaurus is an open-source Apple Silicon LLM runtime that exposes an OpenAI-compatible HTTP API. It is installed and operated by the same person running WordPress — there is no third-party service operator. This plugin forwards prompts to it so WordPress can perform text generation, chat, tool calls, and structured JSON output without sending data to any cloud provider.
Project homepage and download (osaurus.ai): https://osaurus.ai
Project documentation (docs.osaurus.ai): https://docs.osaurus.ai
These URLs are referenced in the plugin’s admin UI as documentation/download links only; the plugin does not make HTTP requests to osaurus.ai or docs.osaurus.ai.
Hosts the plugin actually contacts at runtime
The plugin sends HTTP requests only to the host and port resolved (in order) from:
OSAURUS_BASE_URL PHP constant (if defined in wp-config.php).osaurus_ai_connector_base_url WordPress option (set from Settings → Connectors).http://127.0.0.1:1337/v1.Two host targets are referenced by name in the plugin code as quick-pick presets and as the default:
127.0.0.1:1337 — loopback on the same machine as WordPress (default). Used by bare-metal installs (Studio, MAMP, Valet, Local, native PHP).host.docker.internal:1337 — Docker’s hostname for the host machine. Used by Docker-based WordPress (DDEV, Lando, Docker Desktop). Resolved by Docker, not by a public DNS server.If the user configures a different URL, the plugin only contacts that URL. The plugin never contacts any third-party endpoint operated by the plugin author, the Osaurus project, or any other party.
What data is sent and when
wp_ai_client_prompt() and routes through Osaurus, the plugin sends a POST to {base_url}/chat/completions with: the prompt text, the conversation history you supplied, the model ID, sampling parameters (temperature, top_p, max tokens, etc.), and any tool / function declarations or JSON schemas you supplied.GET {base_url}/models to populate the model picker and a GET {base_root}/health to display a connection status indicator. Both run only for users with manage_options and are triggered by user actions in wp-admin.Terms of service and privacy policy
Osaurus is open-source software you self-host. There is no third-party service operator collecting your data. See the project pages linked above for the project’s terms and source. If you point the plugin at a remote Osaurus server operated by someone else (for example, a Mac mini you reach over Tailscale), the operator of that server is the data recipient and is governed by whatever terms you have with them.