---
title: LMStudio
---

<!-- THIS FILE IS AUTO-GENERATED BY website/scripts/generate-model-docs.js. DO NOT EDIT MANUALLY. -->

# LMStudio

Use `lmstudio/<model>` with VoltAgent's model router.

## Quick start

```ts
import { Agent } from "@voltagent/core";

const agent = new Agent({
  name: "lmstudio-agent",
  instructions: "You are a helpful assistant",
  model: "lmstudio/openai/gpt-oss-20b",
});
```

## Environment variables

- `LMSTUDIO_API_KEY`

## Provider package

`@ai-sdk/openai-compatible`

This provider uses the OpenAI-compatible adapter.

## Default base URL

`http://127.0.0.1:1234/v1`

You can override the base URL by setting `LMSTUDIO_BASE_URL`.

## Provider docs

- https://lmstudio.ai/models

## Models

<details>
  <summary>Show models (3)</summary>

- openai/gpt-oss-20b
- qwen/qwen3-30b-a3b-2507
- qwen/qwen3-coder-30b

</details>
