ultimate-multisite/ai-provider-for-any-openai-compatible

Registers a WordPress AI Client provider for Ollama, LM Studio, or any AI endpoint using the standard chat completions API format.

Maintainers

Package info

github.com/Ultimate-Multisite/ai-provider-for-any-compatible-endpoint

Type:wordpress-plugin

pkg:composer/ultimate-multisite/ai-provider-for-any-openai-compatible

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v1.0.0 2026-03-02 21:47 UTC

This package is auto-updated.

Last update: 2026-03-11 16:00:41 UTC


README

=== AI Provider for Any Compatible Endpoint ===
Contributors: superdav42
Tags: ai, ollama, llm, connectors, local-ai
Requires at least: 6.9
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects the WordPress AI Client to Ollama, LM Studio, or any AI endpoint that uses the standard chat completions API format.

== Description ==

This plugin extends the WordPress AI Client to support **any AI service or server that uses the standard chat completions API format** (`/v1/chat/completions` and `/v1/models` endpoints).

**Supported services include:**

* **Ollama** - Run open-source models (Llama, Mistral, Gemma, etc.) locally on your own hardware.
* **LM Studio** - Desktop application for local LLM inference with a one-click server.
* **OpenRouter** - Unified API providing access to 100+ models from multiple providers.
* **vLLM** - High-throughput inference server for production deployments.
* **LocalAI** - Drop-in replacement for running models locally.
* **text-generation-webui** - Popular web UI with API server mode.
* **Any compatible endpoint** - Works with any server implementing the standard format.

**Requirements by WordPress version:**

* **WordPress 7.0+** - The AI Client SDK is included in core. This plugin works on its own without any additional dependencies.
* **WordPress 6.9** - The AI Client SDK is not in core. You must also install the [AI Experiments](https://wordpress.org/plugins/ai/) plugin, which bundles the SDK.

**Why it matters:**

Other AI-powered plugins that use the WordPress AI Client (such as AI Experiments) can automatically discover and use any model you connect through this plugin. Configure your endpoint once and every AI feature on your site can use it.

**How it works:**

1. Install and activate the plugin.
2. Go to **Settings > Connectors** and configure the connector with your endpoint URL (e.g. `http://localhost:11434/v1` for Ollama).
3. Optionally provide an API key for services that require authentication.
4. The plugin registers a provider with the WordPress AI Client and dynamically discovers all available models from your endpoint.

The plugin also handles practical concerns like extended HTTP timeouts for slow local inference and non-standard port support.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/ai-provider-for-any-compatible-endpoint/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. **WordPress 6.9 only:** Make sure the [AI Experiments](https://wordpress.org/plugins/ai/) plugin is installed and active. It provides the AI Client SDK that this plugin requires.
4. Go to **Settings > Connectors** and configure the connector.
5. Optionally enter an API key if your endpoint requires one.

== Frequently Asked Questions ==

= What endpoints are compatible? =

Any AI inference server that implements the standard `/v1/chat/completions` and `/v1/models` endpoints. This includes Ollama, LM Studio, vLLM, LocalAI, text-generation-webui, and many cloud services.

= Do I need an API key? =

It depends on your endpoint. Local servers like Ollama and LM Studio typically do not require a key. Cloud services like OpenRouter require one. Leave the API Key field blank for servers that do not need authentication.

= What models will be available? =

The plugin automatically queries your endpoint's `/models` resource and registers every model it finds. Whatever models your server offers will appear in the WordPress AI Client.

= Does this work with WordPress 6.9? =

Yes, but you must also install the [AI Experiments](https://wordpress.org/plugins/ai/) plugin, which bundles the AI Client SDK. On WordPress 7.0 and later, the SDK is built into core and no additional plugin is needed.

= Does this work on WordPress 7.0 without the AI Experiments plugin? =

Yes. WordPress 7.0 ships the AI Client SDK in core, so this connector plugin works on its own. You only need the AI Experiments plugin if you want the experimental AI features it provides (excerpt generation, summarization, etc.).

== Changelog ==

= 1.0.0 =

* Initial release.
* Provider registration with the WordPress AI Client.
* Settings page for endpoint URL and optional API key.
* Dynamic model discovery from any compatible endpoint.
* Extended HTTP timeout support for local inference servers.
* Non-standard port support (e.g. Ollama on 11434, LM Studio on 1234).