PHPackages                             torounit/ai-provider-for-lm-studio - 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. torounit/ai-provider-for-lm-studio

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

torounit/ai-provider-for-lm-studio
==================================

LM Studio AI Provider for the PHP AI Client SDK.

0.1.0(3d ago)00GPL-2.0-or-laterPHPPHP &gt;=7.4

Since Jun 6Pushed 2d agoCompare

[ Source](https://github.com/torounit/ai-provider-for-lm-studio)[ Packagist](https://packagist.org/packages/torounit/ai-provider-for-lm-studio)[ Docs](https://github.com/torounit/ai-provider-for-lm-studio)[ RSS](/packages/torounit-ai-provider-for-lm-studio/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

AI Provider for LM Studio
=========================

[](#ai-provider-for-lm-studio)

LM Studio AI Provider for the [PHP AI Client SDK](https://github.com/WordPress/php-ai-client).

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

[](#requirements)

- PHP 7.4+
- [wordpress/php-ai-client](https://github.com/WordPress/php-ai-client) ^1.3
- [LM Studio](https://lmstudio.ai/) running locally with the server enabled

Installation
------------

[](#installation)

### As a Composer Package

[](#as-a-composer-package)

```
composer require torounit/ai-provider-for-lm-studio
```

### As a WordPress Plugin

[](#as-a-wordpress-plugin)

1. Upload the plugin files to `/wp-content/plugins/ai-provider-for-lm-studio/`
2. Activate the plugin through the **Plugins** menu in WordPress
3. Start LM Studio and enable the local server (Developer tab → Start Server)

Configuration
-------------

[](#configuration)

VariableDefaultDescription`LM_STUDIO_SERVER_URL``http://localhost:1234`LM Studio server URL (scheme + host + port, no API path)Both environment variables and PHP constants (e.g. `define('LM_STUDIO_SERVER_URL', '...')` in `wp-config.php`) are supported.

Usage
-----

[](#usage)

### Composer (standalone)

[](#composer-standalone)

```
