Choose the dedicated LM Studio provider for chat in AnythingLLM Desktop, give it the running server’s loopback URL ending in /v1, and select its local model. Open an empty practice workspace to verify a plain response before adding any documents. Chat model setup and workspace indexing have separate settings, so each part can be checked with its own test.

This walkthrough assumes AnythingLLM Desktop and LM Studio run directly on the same Mac. The LM Studio listener already serves a text model. The exercise uses two fictional supply locations, which makes a matching response easy to identify. Write down the app’s current chat provider and model before changing its default settings, particularly if existing workspaces depend on them. AnythingLLM’s LM Studio chat provider.

Verify the local server and choose a model

Open LM Studio’s Developer view and confirm the running server’s address. The example uses IPv4 loopback and port 1234. Choose the exact address shown by your current listener. If you changed the port previously, update the request below and the provider configuration together.

curl -sS --connect-timeout 2 http://127.0.0.1:1234/v1/models

If the listener requires a token, use its local authorization header for the listing as well. A successful response includes a set of available model IDs. Identify one text chat model and use the exact entry that corresponds to the one you meant to serve. A model file can exist on disk even when the desired instance is absent from the running API. Write down the relevant model ID for later comparison. LM Studio models endpoint.

If this direct request fails, leave AnythingLLM’s provider settings alone while checking the listener. A connection refusal can mean the service is stopped or listening on a different local port. An authorization response means a service answered and did not accept the current request’s credentials. Use the documented LM Studio token for the listener if the server requires one. A key from a different model provider does not grant access to this local service. LM Studio local API authentication.

Set the chat provider in AnythingLLM Desktop

Open the application’s Settings and locate its LLM configuration. Select LM Studio as the chat language model provider. Enter the server base URL including the version prefix, for example http://127.0.0.1:1234/v1. AnythingLLM’s provider implementation uses the versioned API base address for its LM Studio configuration. If you have authentication enabled, enter the locally issued token using the provider’s token field in a version that supports it. The provider source configuration lists a dedicated authentication setting. AnythingLLM configuration source.

Select the chat model reported by your listener. If the provider loads a list, compare it with the earlier API result. Some models have a familiar display name while the API uses a longer path or includes a variant. Take the exact current entry when more than one looks similar. Use the version of the provider interface supplied by your installed application. If the form shows only the earlier connection options and your listener requires a token, check the release’s support without removing authentication from an existing service.

Save the configuration, then reopen the form to confirm the provider and model choices persisted. If the existing project involves several workspaces, examine whether the workspace you plan to use has its own model setting. A workspace-level selection can affect which configuration a chat uses. An empty test workspace provides a clean place to check the new default, and it does not mix the test with earlier conversations in your regular projects.

Leave the embedder and vector database settings where they are during this exercise. Those components encode and store document representations for retrieval. A normal text turn without attachments gives a clearer check of the selected language-model provider. Changing multiple providers would make a failed response harder to diagnose. AnythingLLM embedding models.

Run a plain context-free test

Create an empty workspace such as Supply Practice. Open it in its ordinary Chat mode, with a new conversation and no documents. If the interface offers a mode focused on answering from workspace documents, use ordinary Chat for this prompt. The data is inside the message, so the model has everything required for the check. Avoid submitting a request in agent mode, where the application may initiate additional steps or query services. AnythingLLM chat modes.

Fictional stock note: replacement clips are in the Green Bin. Spare tags are in the Blue Bin. Reply with only the bin for replacement clips.

The expected visible reply is Green Bin. Compare the answer with the note and look for a corresponding inference request in LM Studio’s Developer view around the same time. The app’s message tells you whether a response came back. Observing the running listener handle the message gives separate evidence about which provider served it. Use this evidence together when another provider might still be configured for an existing workspace.

Next start a fresh thread and change Green Bin to Orange Tray. Leave the second fact unchanged and send the adjusted note. Expect Orange Tray. This checks that the new turn reached the intended path. An extra sentence with the correct location confirms a usable inference connection while missing the test’s exact formatting requirement. If the response lists both locations or supplies the wrong one, check the model and prompt after confirming the provider.

Diagnose the place where the setup stalled

If the provider claims that it is loading available models for an extended period, query the models URL from Terminal again. A successful result there can narrow investigation to the app’s local address, token or provider fields. If a model disappeared after a reload, confirm that LM Studio currently advertises the intended ID before toggling workspace settings. The two applications can be open simultaneously even if the necessary server process has stopped.

If the workspace begins a turn and receives an error, check whether the listener logged a generation request. If there is no matching activity, recheck the actual workspace profile, the host, and the saved chat provider. If the listener saw the call and rejected it, inspect its error description. A format or model problem inside the request can present differently from a connectivity error. Put the shortest saved example back in a plain thread before introducing file attachments or richer workspace instructions.

If chat succeeds but a later document-based answer fails, preserve the working settings and test the document path on its own. Start with one invented note whose answer can be read directly from a sentence. Verify how it was added to the workspace and whether the app finished processing it. If it shows no sources on document questions after the plain turn passed, the new evidence concerns ingestion or retrieval. Changing the chat model immediately would erase a useful point of comparison.

Keep a usable baseline for existing workspaces

Record the AnythingLLM Desktop version, provider address, LM Studio model ID, and name of the test workspace. Write down which test response appeared in the app and whether you saw activity at the local listener. This is enough to rerun the same practice after an update or server restart. Keep the token out of the note. A local test value can still be sensitive if it authorizes access to the running service from other applications on the Mac.

If you want an existing workspace to follow the new provider, inspect that workspace’s chat settings before sending a test. Use a fresh thread so its first request is easy to identify. Copy the supply fixture rather than using real documents during this initial verification. Check direct chat first and then proceed to one representative document with the workspace’s retrieval settings. If the prior default is needed elsewhere, restore it before using those workspaces and check the active provider where you intend to make the change.

A final clean comparison can help when two workspaces behave differently. Use the same synthetic question in each workspace’s new thread, note the model name or provider shown in each, and compare the listener activity for the two turns. If one workspace speaks to the selected service while the other does not, inspect the workspace override first. If both reach the same model and give different answers, check the workspace instructions and chat mode before modifying the connection.

Compare a plain response with a workspace response

Once both changed notes work, write a two-line local file about a different item. For example, say that brush sleeves are in the Silver Locker and that white tags are in the Sample Drawer. Keep this fixture separate from the original two notes. An ordinary chat in your empty workspace lacks this file, so it should only be evaluated on facts that you include in its own prompt. In a second practice workspace, process the text file with your existing embedder and ask which locker holds the brush sleeves. Use the document-focused mode only if your actual goal is retrieval.

Check the source cue or excerpt if the workspace shows one. The source should point to the brush sleeve line. A fluent mention of Silver Locker with an irrelevant excerpt still deserves a look at retrieval and the workspace instructions. Make each test a fresh turn, and record whether the app sent a chat request for it. If the app reports that it found no source before making a generation request, that is a different issue from the selected LM Studio model giving a misleading answer.

Remove the scratch file from the practice workspace when you finish, or retain that workspace only if it is useful for repeating the test. The original plain turn remains your smallest check of the chat configuration. The synthetic document remains a separate baseline against which to compare changes in indexing, retrieval, or app mode.