Installation
Installation🔗
Prerequisites🔗
-
Rust stable, 1.85 or newer (the workspace is edition 2024) — install from rustup.rs
-
On Linux, the system packages the desktop crates (the app, Gen, Document, Verse) build against:
# Debian / Ubuntu sudo apt install libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev libfontconfig1-dev libdbus-1-dev pkg-config -
Node 22, to build the desktop app’s page once (
crates/app/ui); the release binary carries it. -
An agent of your own, if you want one: Claude Code, Codex, Gemini CLI or any other. LocalGPT installs none, runs no language model and holds no key; an agent runs in a terminal the app opens, or anywhere else, and brings its own login. Document, song and previs worlds need no model at all.
From crates.io, npm or Homebrew (for users)🔗
cargo install fetches a published crate, compiles it and drops the binary in ~/.cargo/bin/ (on your PATH if you installed Rust with rustup). No source checkout.
cargo install localgpt-gen # the world builder: MCP server and relay, the live canvas, sessions, headless
cargo install localgpt # `localgpt world`, `localgpt world mcp` (the shim) and `localgpt previs`
cargo install localgpt --features audio # the same, with `localgpt audio`: the optional audio models
For the localgpt command line and MCP shim without a Rust toolchain, install it prebuilt from npm, or run it straight from there with npx:
npm install -g localgpt # or: npx -y localgpt world mcp
The npm package holds the binary for macOS (Apple silicon and Intel), Linux (x64 and arm64, with glibc 2.34 or newer: Ubuntu 22.04, Debian 12, RHEL 9) and Windows (x64), and needs Node 18 or newer to start it. It is built without the audio models.
Homebrew installs that same binary on macOS and Linux, with no Node and with the shell’s completions:
brew install localgpt-app/tap/localgpt
On macOS, LocalGPT.app carries localgpt inside Contents/MacOS/localgpt (and puts it on PATH in the app’s terminals), so localgpt gen … hands off directly to the desktop binary (localgpt-app gen …).
Upgrade later with cargo install <crate> --force, npm update -g localgpt or brew upgrade localgpt. The desktop app, localgpt-app, is not on crates.io: build it from source, below.
From source (for developers, and for the desktop app)🔗
git clone https://github.com/localgpt-app/localgpt.git
cd localgpt
(cd crates/app/ui && npm ci && npm run build) # the app's page, once
cargo run rebuilds on change and launches a binary; arguments after -- are forwarded to it.
# The desktop app — one window, every mode
cargo run -p localgpt-app # reopens what was opened last
cargo run -p localgpt-app -- --doc notes.md # a document as a world
cargo run -p localgpt-app -- --song track.mp3 # a song as a world that performs it
cargo run -p localgpt-app -- --world scene-1.world # a .world package, opened as a live canvas
# Gen, Document and Verse on their own
cargo run -p localgpt-gen -- --mcp-relay # the window; an MCP client drives it
cargo run -p localgpt-gen -- --live scene-1.world # the live canvas
cargo run -p localgpt-doc -- path/to/doc.md
cargo run -p localgpt-verse
# The command line (the CLI is the workspace's default member)
cargo run -- world log scene-1.world
cargo run -- previs script.fdx --out previs/The shared download🔗
Every app reads the same folder under ~/.local/share/localgpt/models/, so the download happens once per machine:
cargo xtask fetch-assets # the 522 MB CC0 asset pack (Poly Haven models) → models/pack
The pack is what document and song worlds are furnished with; without it the worlds still build, with primitives only. $LOCALGPT_WORLD_ASSETS moves the folder.
The audio models go beside it, in models/audio/, only when you install one: Audio in the app’s bar, or localgpt audio install. They analyse sound for an agent; nothing in LocalGPT runs a language model.
The macOS app bundle🔗
cargo xtask bundle # release build → apps/app-desktop/dist/LocalGPT.app
cargo xtask bundle --dmg # also a .dmg
open apps/app-desktop/dist/LocalGPT.app
Without a Developer ID the bundle is ad-hoc signed and runs on the Mac that built it; the script signs and notarizes when given APPLE_SIGNING_IDENTITY and APPLE_NOTARY_PROFILE. There is no Windows installer or Linux AppImage yet; cargo install --path crates/app puts localgpt-app on your PATH on any platform, and apps/app-desktop/linux/localgpt.desktop adds it to a Linux app menu. The native panels run on all three platforms; Windows and Linux are newer and less tried than macOS.
Release builds and installing a source build🔗
cargo build --release # the CLI (LTO: slow)
cargo build --release -p localgpt-gen
cargo install --path crates/cli # or crates/gen, crates/appFeature flags🔗
| Crate | Flag | What it adds | Fetch first |
|---|---|---|---|
localgpt-gen | physics, multiplayer (default) | avian3d physics; --host/--join/--web sessions | — |
localgpt | audio | localgpt audio: the optional audio models, and their tools in localgpt world mcp once installed. Off unless asked for (cargo install localgpt --features audio): it links ONNX Runtime, which has no build for an Intel Mac or a Linux older than glibc 2.38. The localgpt inside LocalGPT.app has it on Apple silicon; npm’s does not | localgpt audio install <id> |
localgpt-verse | ml | CLAP zero-shot moods and embedding-ranked placement (Apache-2.0 weights), Demucs stems (MIT code; its author calls the weights’ licence unclear) — audio analysis, not a language model | localgpt audio install match (Demucs downloads itself) |
cargo run -p localgpt-verse --features mlHeadless🔗
Gen builds without a window as an MCP client’s own process: localgpt gen mcp-server --headless (or localgpt-app mcp-server --headless / localgpt-gen mcp-server --headless). The CLI needs no display at all, so localgpt world runs in CI and on servers. See Headless.
Initial setup🔗
There is none on LocalGPT’s side: no config file, no key, no model to choose. Give your agent the world’s tools once, if it speaks MCP:
claude mcp add world -- localgpt world mcp # Claude Code; Codex and Gemini CLI take the same command in their MCP config
An agent in one of the app’s terminals needs even that only if it prefers tools to the localgpt world commands the folder’s AGENTS.md teaches it.
Verify🔗
localgpt --help
localgpt world --help
localgpt-gen --help