All posts
guidebyoklocal models

Use LM Studio in Word and Every Other App

Turn on LM Studio's local server and use your model in Word, Outlook, Slack and the browser with one shortcut. Setup steps, free options and fixes.

KeyShift AI Team7 min read

To use LM Studio in Word and other apps, start LM Studio's local server and point a system-wide tool at http://localhost:1234/v1, so that a shortcut sends the text you select to your own model and puts the answer back in place.

LM Studio is a comfortable way to download and chat with local models. The chat lives in LM Studio's window, though, and your writing lives in Word, Outlook, Slack and a browser. The local server is the bridge: it lets other apps on your computer use the model you loaded.

Disclosure: we make KeyShift, the tool used for the steps below. In KeyShift, local models and your own API keys are part of the paid plan, Pro, at €5.99 a month. Free open-source routes exist too, and we describe them first.

Free and open-source options

  • Writing Tools (by theJayTea on GitHub) is free and open source, for Windows and macOS. It acts on selected text with a hotkey and accepts OpenAI-compatible endpoints, which is what LM Studio's server is. Its own documentation names other local servers and not LM Studio, so treat this as "should work" and test it.
  • PowerToys Advanced Paste, free from Microsoft, can transform what you copied with a local model. Its local providers are Foundry Local and Ollama, so it fits better if you are willing to run one of those.
  • LM Studio's own chat. If you only need the model now and then, copying a paragraph into LM Studio and back costs nothing.

If you only need one hotkey on selected text and are happy to configure it, start with Writing Tools.

What you need

  • A Windows 10 or later PC, or a Mac with macOS 11 or later.
  • LM Studio with at least one model downloaded.
  • KeyShift for desktop, on Pro.

Step 1: load a model in LM Studio

Open LM Studio, download a model that fits your memory, and load it. Send it one message in the chat to check that it answers at a speed you can live with. If it is slow in LM Studio, it will be slow everywhere else.

Step 2: start the local server

LM Studio includes a server that speaks the same format as the OpenAI API.

  1. In LM Studio, open the Developer view.
  2. Start the server. The status changes to running and shows the address.
  3. Note the port. This guide assumes the usual one, 1234.

To check it, open this address in a browser:

http://localhost:1234/v1/models

You should see the model you loaded, with its identifier. Copy that identifier. Menus move between LM Studio versions, so if the Developer view looks different on yours, search its documentation for "local server".

Step 3: connect KeyShift to LM Studio

  1. Open KeyShift and go to Settings, then AI Provider.
  2. Choose Custom. In the list it is called "Local model or custom endpoint (Ollama, LM Studio)".
  3. In Endpoint URL, enter:
http://localhost:1234/v1
  1. In the model field, paste the identifier from step 2.
  2. Leave the API key field empty, unless you turned on authentication in LM Studio.
  3. Press Test connection.

The BYOK setup guide has the same screen for every provider.

Step 4: use it in Word

Open a document in Word. There is no add-in to install and nothing for an administrator to approve, because KeyShift works at the level of the operating system.

  • Select a paragraph and a small toolbar appears next to it. Click Fix, Professional or Shorten, and the paragraph is replaced. See the selection toolbar.
  • Press Ctrl+Shift+A (Cmd+Shift+A on a Mac) with text selected for the full list: Summarize, Translate, Reply and more.
  • Type the instruction. After a sentence, type keyshift make this more formal and press space twice.
  • Press Ctrl+Shift+Z if you preferred your own version.

One thing to know about Word: the result is typed back as text. Check headings, lists and tracked changes after a rewrite of a long, heavily formatted passage.

The same in every other app

The shortcut does not belong to Word. Use it in:

If you can type in it, it works.

Keep the server running

The setup only works while LM Studio's server is on and a model is loaded.

  • Recent versions of LM Studio can keep the server running in the background. Look for that option in its settings.
  • If you close LM Studio fully, KeyShift's actions fail until you start it again.
  • A loaded model holds memory the whole time. On a laptop with little RAM, unload it when you need the memory for something else.

What stays on your computer

With LM Studio as the endpoint, the text you select goes from KeyShift to LM Studio on the same machine. It does not go to us or to a cloud provider, and the actions work without an internet connection. That matters when a draft must not leave the laptop.

This is desktop only. The KeyShift keyboard on Android and iPhone cannot reach localhost on your computer.

If the test fails

  • No connection. The server is not started. Start it in LM Studio and open the /v1/models address again.
  • Wrong port. If you changed the port in LM Studio, use that number in the Endpoint URL.
  • Model error. No model is loaded, or the identifier does not match. Copy it from the /v1/models page.
  • Very slow answers. The model is too large for your hardware. Load a smaller one.
  • Answers cut off or ramble. Some small models follow instructions loosely. Try another model before blaming the setup.

LM Studio or Ollama?

Both work with KeyShift in the same way, through the Custom endpoint. LM Studio gives you a visual app for finding and loading models. Ollama runs quietly in the background and is driven from the terminal. Pick the one you already use. The steps for the other are in Ollama in any app.

Frequently asked

Is this free? LM Studio is free to download. Check its site for the current terms. Connecting a local model to KeyShift needs Pro, €5.99 a month or €47.99 a year. There is no cost per request with a local model.

Does KeyShift's free plan work with LM Studio? No. The free plan includes every tool with 25 AI actions a month on our models. Local models and your own keys are on Pro.

Do I need an API key? No, leave it empty for a local server without authentication.

Does it work in Word on a Mac? Yes, the steps are the same, with Cmd in place of Ctrl.

Can I use a cloud model for hard tasks and a local one for the rest? You choose one provider at a time in Settings, AI Provider, and you can change it whenever you like. For cloud keys, see how to use your own API key in any app and OpenRouter in any app. For other apps that take your own key, see the best BYOK AI apps.

Download KeyShift and try the tools on the free plan first.

Try it in your own apps

Free plan, 25 AI actions a month, no card needed.

Download free