mjaafar's profile picture
mjaafar

locus-mac

Public

Locus for Mac: your local AI from your phone: LM Studio, Ollama or an OpenAI-compatible server (llama.cpp, KoboldCpp, Jan), one per chat. Locus finds your llama.cpp or KoboldCpp and can start its own, with GGUF models the phone downloads. Starts with LM Studio; installs itself on first run.

9 Downloads

README

Locus for macOS

Locus lets you use the AI models of LM Studio on your Mac from your phone. Your chats and files stay on your Mac.

Status: preview. This version runs on the developer's own machines only. The public release, together with the Locus app for iPhone, is coming. Installing this plugin now will not set Locus up on your computer.

What it does

  • Starts Locus each time LM Studio starts.
  • On the first run, installs Locus for your user, in your home folder. Nothing asks for an administrator password.

Install

In Terminal:

lms get mjaafar/locus-mac

Pair a phone

In Terminal, run locus pair. A QR code appears: scan it with the Locus app. The code works once, for 5 minutes. Anyone who sees your screen within those 5 minutes could pair, so keep it to yourself.

The first time Locus starts and no phone is paired yet, its pairing page opens in your browser by itself. The page is on your Mac only, at 127.0.0.1:8765/pair, or at the next free port if another program uses 8765. At each start, a notification says that Locus is ready or running. While no phone is paired, a small window also asks once per login: Show QR opens the pairing page, Later closes it.

To pair a second phone, run locus pair again and scan the new QR with that phone. Each phone gets its own key, so you can sign one out without touching the others.

To turn the notification and the page off, set "pair_notice": false in Locus's settings file, settings.json in the run folder of Locus's folder (below).

llama.cpp and KoboldCpp, started by Locus

Besides LM Studio, Locus can start llama.cpp (its llama-server) or KoboldCpp itself, and stop it again. Install the tool yourself (brew install llama.cpp is the easiest: macOS does not block Homebrew's copy).

New: when you start the tool yourself, Locus finds it running under your own account and registers it by itself, with a notification on the Mac; no command and no restart are needed. On macOS this finding was tested against stand-ins only so far: if Locus does not find yours, tell it where the tool is, in Terminal (it takes effect at once, without a restart):

locus manage llamacpp --exe "$(brew --prefix)/bin/llama-server"

For KoboldCpp, its Mac program, koboldcpp-mac-arm64, as you downloaded it: locus manage koboldcpp --exe followed by its full path. locus manage llamacpp --off (or koboldcpp) says no: Locus remembers that program and does not register it again by itself; locus manage llamacpp --auto takes the no back.

Then, on your phone, in Models: Get a model searches Hugging Face and downloads GGUF models into Locus's models folder (locus manage shows where); Load starts the tool with the model, Unload stops it. On the Mac, locus models lists the downloaded models and locus models rm followed by a model's id removes one. locus restart waits for a running download first.

Each tool is one row on the phone. "llama.cpp" stands for a llama-server you started yourself and Locus's own copy together, and its line says which one this chat uses (the same for KoboldCpp). While your own copy is in use, Get a model works there too; the models go into Locus's models folder, and Load asks once, then Locus starts its own copy with that model for this chat. Your own copy keeps running and keeps its memory: quit it yourself to free that memory. Use under "Your own copy on this PC" goes back to yours.

Each chat has its own AI tool (new)

  • In Models, "AI tool for this chat" lists the AI tools of this Mac; Use for this chat moves only the chat you are in, from any paired phone. Two chats, on one phone or on two, can answer from two tools at the same time.
  • New chats get the Mac's default tool: Make default on this chat's tool (on a phone that may add or remove devices), or locus use llamacpp (or koboldcpp, or the name locus ls shows, for example llama-server) in Terminal. Changing the default moves no chat and stops no tool.
  • "Also in memory on this PC" lists the models the other tools hold, with Unload.
  • One model loads at a time on the whole Mac, whatever the tool, and one model downloads at a time. Before a load unloads a model that another chat used in the last 10 minutes, the phone asks, in plain words.
  • When a chat's tool is not running, the line above the message box says so, with Choose another; your message waits in the box.
  • The list of AI tools shows at once, even while a tool is busy: a tool that is writing an answer keeps its row and says so ("answering a chat"), and a tool that does not answer in time is listed as "Not answering yet". locus ls and locus status do not wait on a busy tool either.

Limits: each tool Locus starts runs one model at a time. Before a start Locus checks the model fits in the memory macOS can give at once (on Apple silicon the graphics share it). A phone cannot choose the program, its options or a folder, and cannot remove a model. Tried for real on the developer's own computers on 2026-11-22: llama.cpp started by Locus (macOS and Windows), and this version with each chat's own tool, installed on macOS and Windows. A model loaded in KoboldCpp started by Locus has not been tried on a real Mac yet. Tested against stand-ins only, not yet with real phones: two phones answering from two tools at once, the shared-memory questions, and Load while your own copy is in use. Locus does not find Strata on macOS yet.

Also new

  • After an update of Locus the page in the app reloads itself: you no longer need to close the app.
  • Speak to type: a microphone button in the message box turns your speech into text on the phone. The page part is in this version; the button appears with the phone apps that have it, in the next app versions.
  • Send when you stop speaking (with speak to type): the first time a dictation ends, the page asks once whether to send by itself ("Send automatically" or "I'll send it myself"). When it is on, "Sending… tap to cancel" shows for a moment, and a tap keeps the words in the box. A switch at the foot of the chat list, or /speak send on (or off) in a chat, changes it.
  • Answers read aloud by the computer (Listen under an answer, spoken answers to spoken messages, /voice) work on Windows only for now: on macOS, locus voice get refuses and says why, and the phone shows no Listen.

Start at login

Locus starts with LM Studio.

  • With LM Studio's headless server (llmster), the installer adds a login item for your user only: a LaunchAgent in ~/Library/LaunchAgents that starts LM Studio's server when you log in. Locus then starts with it. No administrator password is needed. The uninstall removes it.
  • With the LM Studio app, turn on the app's own setting for starting at login.

Where Locus keeps its files

Everything is in ~/Library/Application Support/Locus: the program, your chats and its keys. The keys are files that only your user can read, in a folder only your user can open. An administrator of the Mac can still read them.

The locus command is put in ~/.local/bin, and the installer adds that folder to your PATH in your shell's profile (~/.zprofile for zsh, macOS's default), in a marked block that the uninstall takes out. Open a new Terminal window after the install to type locus.

Sending files from the phone to the Mac is off on macOS for now.

Privacy

Your chats stay on your Mac. The phone reaches it through an encrypted tunnel. Today that encryption ends on the relay server that forwards the traffic; end-to-end encryption is planned. Only when you ask for it does Locus reach other places: model downloads from Hugging Face, and web pages if you turn on web reading in a chat.

Requirements

  • macOS on Apple silicon or Intel, with LM Studio installed: its headless server (llmster) or the app.
  • Apple's Command Line Tools, for Python 3 at /usr/bin/python3. If they are missing, run xcode-select --install in Terminal once.

Uninstall

In Terminal:

sh ~/"Library/Application Support/Locus/installer/main/uninstall.sh"

It stops Locus and removes its tunnel login, the locus command, its PATH block and its login item. Your chats stay unless you add --purge. Then remove the plugin in LM Studio.

Windows and Linux

For Windows, see locus-win; for Linux, locus-linux (a preview too).