I build KeyShift AI, the tool this post is about. Originally published on keyshift.ai.

To use Ollama in any app, run Ollama on your computer and connect a system-wide tool to its local address, http://localhost:11434/v1, so that a shortcut runs your model on the text you select in Word, Slack or the browser.

Ollama makes it easy to run a model on your own machine. What it does not give you is a way to reach that model from the place where your text is. Out of the box you get a terminal prompt and a local API. This guide covers the part in between.

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. If you want a free route, there are good open-source ones, and we list them first.

Free and open-source options

  • Writing Tools (by theJayTea on GitHub) is a free, open-source app for Windows and macOS that works on selected text with a hotkey. Its Windows version has a built-in Ollama provider, and the Mac version supports Ollama as well. It is the closest free match for what this guide does.
  • PowerToys Advanced Paste is free and from Microsoft. Since version 0.96 it can use Ollama. It works on what you copied: you copy text, then paste it transformed.
  • Open WebUI and Jan give you a chat window for local models. They are the right choice when you want a conversation, not an action on text in another app.

If one of these covers your case, use it. The reasons people pick KeyShift over them are in the last section.

What you need

  • A Windows 10 or later PC, or a Mac with macOS 11 or later.
  • Ollama, installed and running.
  • A model that fits your memory. Small models answer fast and are enough for fixing and rewriting. Larger ones write better and need more RAM or a graphics card.
  • KeyShift for desktop, on Pro.

Step 1: install Ollama and download a model

  1. Download Ollama from ollama.com and install it.
  2. Open a terminal and download a model, for example:
ollama pull llama3.2 
  1. Check what you have:
ollama list 

Write down the exact model name from that list. You will type it into KeyShift in step 3.

Step 2: check that the local server answers

While Ollama is running, it serves an OpenAI-compatible API on your own machine. Open this address in a browser:

http://localhost:11434/v1/models 

If you see a short list of your models, the server is ready. If the page does not load, start Ollama first.

Step 3: connect KeyShift to Ollama

  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. Press Use local Ollama. It fills in the Endpoint URL for you: http://localhost:11434/v1. You can also type it by hand.
  4. In the model field, enter the model name exactly as ollama list shows it, for example llama3.2.
  5. Leave the API key field empty. A local server with no login does not need one.
  6. Press Test connection.

The same steps, with a section for each cloud provider, are in the BYOK setup guide.

Step 4: use it in Word, Slack and the browser

Nothing changes in how you use KeyShift. The model behind it is now yours.

  • Selection toolbar. Select text in any app and a small toolbar appears next to it with Fix, Professional, Shorten and Translate. See the selection toolbar.
  • Quick Actions. Select text and press Ctrl+Shift+A (Cmd+Shift+A on a Mac), then pick an action. The result replaces the selection.
  • Typed trigger. Write your sentence, type keyshift and an instruction, for example keyshift make this shorter, and press space twice.
  • Launcher. Press Ctrl+Shift+Space to ask your model a question without opening a terminal. See the AI launcher.

Try it once in each place you write: a paragraph in Word, a message in Slack, a form in the browser, a line in the terminal. Press Ctrl+Shift+Z after an action and your original text comes back.

Which model to pick

We do not publish benchmark numbers here, because the right answer depends on your hardware. Some plain guidance:

  • For fixing grammar and short rewrites, a small model is usually enough and answers quickly.
  • For translation and tone, a mid-sized model does better, above all outside English.
  • If answers are slow, the model is too large for your machine. Try a smaller one before changing anything else.
  • The first request after a pause is slower, because Ollama has to load the model into memory. The ones after it are faster.

Test with your own text. Take five real messages you wrote this week and run Fix grammar on each. That tells you more than any chart.

What stays on your computer

With a local model, the text you select goes from KeyShift to Ollama on the same machine. It is not sent to us and not sent to a cloud provider. It also works with no internet connection, which is useful on a plane or on a network that blocks AI services.

Two honest limits:

  • This is a desktop setup. The KeyShift keyboard for Android and iPhone cannot reach a model that runs on your computer's localhost.
  • Features that are not text generation may still use a cloud service. If you need everything offline, test each feature you rely on with the network turned off.

If the test fails

  • "Connection refused" or a timeout. Ollama is not running. Start it and open the /v1/models address again.
  • "Model not found". The name in KeyShift does not match ollama list. Copy it exactly, including the part after the colon if there is one.
  • The URL is wrong. It must end in /v1. The plain http://localhost:11434 address is Ollama's own API, not the OpenAI-compatible one.
  • Ollama runs on another computer. Use that machine's address in place of localhost, and make sure Ollama there is set to accept connections from your network.

Why pay for KeyShift when free tools exist

A fair question. The free tools above are good, and for a single hotkey on selected text they may be all you need. KeyShift is for people who want more around the model:

  • A toolbar that appears on selection, a typed trigger, a launcher, voice typing, text from screen and a clipboard history, in one app with one set of shortcuts.
  • Your own actions with their own hotkeys, and multi-step Workflows.
  • The same app on Windows and Mac, with switching between a local model and a cloud key in one setting.

The free plan lets you try every tool with 25 AI actions a month on our models. The local model connection itself needs Pro.

Frequently asked

Is Ollama in KeyShift free? Ollama is free. Connecting it to KeyShift needs the Pro plan, €5.99 a month or €47.99 a year. With a local model there is no cost per request.

Do I need an API key for Ollama? No. Leave the key field empty for a local server.

Does it work offline? Yes, on desktop, for actions that run on the local model.

Can I switch back to a cloud model? Yes. Change the provider in Settings, AI Provider. See how to use your own API key in any app.

I use LM Studio or OpenRouter instead. See LM Studio in any app and OpenRouter in any app. For other apps that accept your own key, see the best BYOK AI apps.

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