README.md

Locus

Your LM Studio, from your phone. Locus lets your Android phone or iPhone chat with the models on your PC. Your chats, your files and your models stay on your PC.

Requirements

  • A Windows PC with LM Studio. (Locus for Linux and Mac is not available yet.)
  • The Locus app: Android (Google Play, closed test now) or iPhone (coming to the App Store).

Install

  • On this page, click Run in LM Studio.
  • Or, without the LM Studio window, in a terminal: lms get mjaafar/locus-win

The first time it runs, Locus installs itself in the background (about a minute): it downloads Python from python.org and its tunnel program (newt) from its official GitHub release, checks each file against the fingerprint built into the plugin, and refuses any file that differs. Then your browser opens the Locus page with an activation QR code. If something fails (no internet, for example), the page says why, and Locus tries again at the next LM Studio start.

Activate this PC, then pair your phone

  • In the Locus app, tap Activate a PC and scan the QR code on the Locus page.
  • The page on the PC shows your phone's name and a 6-digit code. Check that it is the code your phone shows, then click Confirm. (Not you? Click Not me.)
  • A few seconds later the same page shows the pairing QR code. Scan it with the app: your phone is paired.

Another phone later: the Locus - Pair a phone shortcut on the Desktop, or the "Locus is running" notification Windows shows when Locus starts, opens the same page. Each pairing code works once and for 5 minutes. Locus starts by itself with LM Studio. To turn the notification off, set "pair_notice": false in Locus's settings.json (in %LOCALAPPDATA%\Locus\run).

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 and start it once as usual, from your desktop.

New: Locus finds it running and registers it by itself, and a notification on the PC says so ("Locus found llama.cpp ..."); no command and no restart are needed. Locus takes a program running under your own account only: a copy started with "Run as administrator", by a service or under another account is not taken, and Locus says which and asks you to start it again the usual way. For KoboldCpp's one-file koboldcpp.exe, Locus now prepares its own copy once, by itself (about a minute, about 1 GB in %LOCALAPPDATA%\Programs\Locus, no window); meanwhile the phone says "Locus is preparing KoboldCpp for its first start". Your own KoboldCpp keeps running.

You can still tell Locus where a tool is yourself, in a Command Prompt on this PC (it takes effect at once, without a restart):

"%LOCALAPPDATA%\Locus\run\locus.cmd" manage llamacpp --exe "FULL-PATH\llama-server.exe"

The same with manage koboldcpp --exe and the full path of koboldcpp.exe (Locus prepares it the same way). manage llamacpp --off (or koboldcpp) says no: Locus remembers that program and does not register it again by itself, also after a restart or an update; 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 (%LOCALAPPDATA%\Locus\data\models; manage llamacpp --models moves it to another folder, then locus.cmd restart); Load starts the tool with the model, Unload stops it. On the PC, locus.cmd models lists the downloaded models and locus.cmd models rm followed by a model's id removes one. locus.cmd 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: close 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 PC; 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 PC's default tool: Make default on this chat's tool (on a phone that may add or remove devices), or locus.cmd use llamacpp (or koboldcpp, or the name locus.cmd ls shows, for example llama-server) on the PC. 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 PC, 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.cmd ls and locus.cmd 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 free RAM; it does not count the graphics card's memory. 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 (Windows and macOS), Locus finding llama.cpp and KoboldCpp running and preparing KoboldCpp's one-file program (Windows), and this version with each chat's own tool, installed on Windows and macOS. A model loaded in KoboldCpp started by Locus has not been tried on a real PC 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.

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 (new)

Your PC can read an answer aloud with its own voice. The voice is made on the PC, not on the phone and not on a web service; the phone only plays the sound. It is optional and not part of the install. To add it, in a Command Prompt on this PC:

"%LOCALAPPDATA%\Locus\run\locus.cmd" voice get

It downloads about 403 MB once (the speech engine, sherpa-onnx, from PyPI; the Kokoro-82M voices from Hugging Face), checks each file against the size and fingerprint built into Locus, and refuses any file that differs. locus.cmd voice says whether it is installed and lists the voices; locus.cmd voice rm removes it. Until a voice is installed, nothing of this shows on the phone.

  • Listen under an answer reads it aloud; Stop ends the reading.
  • A message you speak (speak to type) gets a spoken answer; a message you type gets text.
  • Voices: English (Heart, Bella, Emma, Michael) and French (Siwis); Heart and Siwis are the defaults. In a chat: /voice (what is set now), /voice on or /voice off (spoken answers to spoken messages), /voice list, /voice emma (a voice by its name), /voice speed 0.8 (from 0.7 to 1.3; 1 is normal). These settings stay on the phone and never go to the model.
  • With LM Studio, or an Ollama model that takes tools, you can also ask in plain words ("speak slower", "use the British voice"): the model can then change these settings and nothing else. With llama.cpp, KoboldCpp or another server, use /voice.
  • The answer's text stays on your PC, and the sound goes only to your phone, through the same encrypted connection as your chats. Nothing is recorded or kept.

Limits: the reading starts when the answer is whole, not while it is being written. On an ordinary processor English is usually made faster than it plays; French and British English can pause between sentences, and a busy PC makes it slower. English and French only: an answer in another language gets "No voice for this language yet." Tried for real on the developer's own Windows PC with the real voice, through a desktop browser; not yet on a real iPhone or Android phone.

About the voices: Kokoro-82M by hexgrad, Apache License 2.0. The French voice was trained on the SIWIS French Speech Synthesis Database (University of Edinburgh), CC BY 4.0. Speech engine: sherpa-onnx (k2-fsa, Apache License 2.0), which includes eSpeak NG (GNU GPL v3), downloaded to your computer from their official sources. Locus's voice runner is open source (Apache-2.0). The voices are computer-generated.

Strata

On the developer's own PC, Locus finds Strata by itself, keeps it in the list of tools while it is off, and shows Strata's own models in Models: Download (through Strata's own installer, with Cancel and Resume), Load and Unload, for a phone that may manage devices. On a PC set up from this plugin, Locus does not run Strata's programs yet: it will ask on the PC first, and that comes with a next version (the phone says so). Chatting with Strata works as before. Strata's Download, Load and Unload were tested against stand-ins only, not yet from a real phone.

A Strata started without its picture reader now answers text questions in a chat that holds older pictures (they become a note); a new picture gets a plain refusal.

What leaves your PC

  • Only the traffic between your PC and your phone, through Locus's tunnel. Its encryption (HTTPS) ends on your PC, not on the relay server in between: that server passes the encrypted bytes on.
  • At activation, the app sends its proof of purchase and your PC's name to the Locus activation service; your PC then collects its own tunnel login there, and later asks whether the subscription is still active. No chat, file or model ever goes there.
  • At the first install: the Python and newt downloads above.
  • Only when you ask for it: model downloads from Hugging Face, web pages if you turn on web reading in a chat, and the voice download above (PyPI and Hugging Face) if you install the voice.

Uninstall

  • Run uninstall.cmd in %LOCALAPPDATA%\Locus (paste that into the Explorer address bar, then double-click the file). It asks first, frees this PC's activation (you can then activate another PC), signs out your phones and removes Locus. Your Locus chats and the files your phones sent (the Locus-uploads folder) are kept; run uninstall.cmd /purge in a terminal to delete them too. Without internet it changes nothing (this PC still holds your subscription) and says so: run it again once online.
  • Remove the Locus plugin in LM Studio.