PHPackages                             mattwiebe/ai-connector-for-local-ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mattwiebe/ai-connector-for-local-ai

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

mattwiebe/ai-connector-for-local-ai
===================================

WordPress AI provider plugin for self-hosted inference through a user-controlled proxy.

v0.7.1(2w ago)11↓100%1[1 PRs](https://github.com/mattwiebe/ai-connector-for-local-ai/pulls)GPL-2.0-or-laterPHPPHP ^7.4 || ^8.0CI passing

Since Apr 3Pushed 2w agoCompare

[ Source](https://github.com/mattwiebe/ai-connector-for-local-ai)[ Packagist](https://packagist.org/packages/mattwiebe/ai-connector-for-local-ai)[ Docs](https://github.com/mattwiebe/ai-connector-for-local-ai)[ RSS](/packages/mattwiebe-ai-connector-for-local-ai/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (0)

[![MW Local AI Connector banner](.wordpress-org/banner-1544x500.png)](.wordpress-org/banner-1544x500.png)

MW Local AI Connector
=====================

[](#mw-local-ai-connector)

MW Local AI Connector is a WordPress AI provider plugin for connecting WordPress to local, OpenAI-compatible inference providers through a proxy you control.

It is built for WordPress 7.0+ and the new Connectors primitives. The WordPress plugin runs on the site. The recommended local proxy helper is [SLOProxy](https://github.com/mattwiebe/sloproxy), a separate npm package.

This is an independent project by Matt Wiebe. It is not affiliated with, endorsed by, or sponsored by Actual Computer, Tailscale, Ollama, LM Studio, or any other third-party service it can be configured to talk to.

What It Does
------------

[](#what-it-does)

- Registers a `mwlai` AI provider with the WordPress AI Client.
- Adds a Settings screen for entering the proxy URL, optional API key, and selected model.
- Loads model choices from the configured `/v1/models` endpoint.
- Restricts the provider to the selected model so WordPress auto-discovery consistently uses it.

Repository Layout
-----------------

[](#repository-layout)

- [`mw-local-ai-connector.php`](mw-local-ai-connector.php): WordPress plugin bootstrap, settings UI, connector registration.
- [`src/`](src): provider, model, and metadata directory classes.
- [`assets/`](assets): admin UI assets.
- [`tests/phpunit/`](tests/phpunit): WordPress PHPUnit coverage.

Requirements
------------

[](#requirements)

- WordPress `7.0+`
- PHP `7.4+`
- A user-controlled OpenAI-compatible proxy endpoint. SLOProxy is recommended for local providers.

WordPress Plugin Setup
----------------------

[](#wordpress-plugin-setup)

1. Copy this plugin into `wp-content/plugins/mwlai-connector`.
2. Activate the plugin in WordPress.
3. Open `Settings > Connectors` or the dedicated Local AI settings page.
4. Enter:
    - the proxy endpoint URL,
    - the shared API key, when using a tunneled proxy,
    - the model to expose to WordPress.

Recommended Proxy Helper
------------------------

[](#recommended-proxy-helper)

Install SLOProxy on the machine that can reach your local model providers:

```
npm install -g sloproxy
sloproxy init
sloproxy up
```

For macOS background service management:

```
sloproxy install
sloproxy start
sloproxy stop
sloproxy status
sloproxy rotate-key
sloproxy uninstall
```

SLOProxy stores its persistent config in `~/.config/sloproxy/.env` and can expose local providers locally only, through Tailscale Funnel, or through Cloudflare Tunnel.

Development
-----------

[](#development)

Developer docs, release notes, packaging details, and reference material live in [docs/developing.md](docs/developing.md).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance96

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

21

Last Release

20d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/691090f38918a05360981a204985d62e29ebfaaf6d94a2180e7bbae0954e8a48?d=identicon)[mattwiebe](/maintainers/mattwiebe)

---

Top Contributors

[![mattwiebe](https://avatars.githubusercontent.com/u/195089?v=4)](https://github.com/mattwiebe "mattwiebe (70 commits)")

---

Tags

wordpressinferenceaiwordpress pluginconnectorstailscale

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mattwiebe-ai-connector-for-local-ai/health.svg)

```
[![Health](https://phpackages.com/badges/mattwiebe-ai-connector-for-local-ai/health.svg)](https://phpackages.com/packages/mattwiebe-ai-connector-for-local-ai)
```

###  Alternatives

[rilwis/meta-box

The most powerful &amp; comprehensive plugin to create, manage, show and connect dynamic data with forms and custom fields effortlessly on WordPress.

1.2k1.8k1](/packages/rilwis-meta-box)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
