> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LM Studio Provider

> Use LM Studio local models with PraisonAI TypeScript

# LM Studio Provider

Run models locally with LM Studio.

## Environment Variables

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export LM_STUDIO_BASE_URL=http://localhost:1234/v1
```

## Quick Start

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { Agent } from 'praisonai';

const agent = new Agent({
  name: 'LMStudioAgent',
  instructions: 'You are a helpful assistant.',
  llm: 'lm-studio/local-model',
  llmConfig: {
    baseUrl: 'http://localhost:1234/v1'
  }
});

const response = await agent.chat('Hello!');
```

## Related

* [LM Studio CLI Usage](/docs/js/providers/lm-studio-cli)
* [Local Providers](/docs/js/local-providers)
