> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/en-us/pre-basic/providers/lm-studio.md).

# LM Studio

LM Studio is a popular**local LLM GUI**supports downloading, quantizing, and running inference on various open-source models locally. Cherry Studio can act as a frontend connected to LM Studio's local service, giving you a better chat experience while preserving local privacy.

## Prerequisites

1. From [LM Studio official website](https://lmstudio.ai/) Download and install the client
2. Download at least one model in LM Studio (Llama 3.x 8B or the Qwen series is recommended to try first)
3. Open the top of LM Studio **Server** Tab, click **Start Server**(default port `1234`)

## Configure in Cherry Studio

* Open `Settings → Model Services`, find **LM Studio** Provider to enter the details page
* **API address** Default `http://localhost:1234`, if you have changed LM Studio's port, please update it accordingly
* **API key** Can be left blank (local inference does not require authentication), or fill it in after enabling authentication in LM Studio
* Click **Get model list**, Cherry Studio will automatically fetch the models loaded in LM Studio

{% hint style="info" %}
**Model list empty?** LM Studio only exposes**Already `Load` into memory**models; those not loaded will not appear in the list. Go back to LM Studio, load the model first, then "Get model list".
{% endhint %}

## Recommended usage

| Scenario                        | Recommendation                                                                                                         |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Privacy-sensitive conversations | Choose a small model (under 8B) to run locally, completely offline                                                     |
| Apple Silicon (M-series chips)  | LM Studio uses the MLX backend, which is significantly more efficient than llama.cpp                                   |
| embedding model                 | LM Studio can also load embedding models for [global memory](/docs/en-us/advanced-basic/memory.md) and knowledge bases |

## Differences from Ollama

|                  | LM Studio                              | [Ollama](/docs/en-us/pre-basic/providers/ollama.md) |
| ---------------- | -------------------------------------- | --------------------------------------------------- |
| Form             | Graphical interface + Server           | Command line / background service                   |
| Model management | GUI browse/download                    | `ollama pull`                                       |
| API              | OpenAI-compatible                      | OpenAI-compatible                                   |
| Suitable for     | Users who prefer graphical interaction | Users who prefer command line / Docker deployment   |

Both can be connected to Cherry Studio; just choose according to your preference.

## Frequently asked questions

* **Cherry Studio can't connect**: Check whether Server in LM Studio has been Started (green dot status)
* **Responses are very slow**: The model is too large / not enough VRAM; switch to a smaller model or a higher quantization (e.g. Q4 → Q3)
* **Garbled text / truncated output**: The context length exceeds the model limit; increase it in LM Studio `n_ctx`

***

### 💡 Get help and submit feedback

If you encounter any questions, bugs, or have suggestions for feature improvements during configuration or use, please refer to [Feedback and Suggestions](/docs/en-us/question-contact/suggestions.md) the official channels provided there.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/en-us/pre-basic/providers/lm-studio.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
