Skip to main content

Install

It installs into your home folder (~/.magnitude/cli, or %USERPROFILE%\.magnitude\cli on Windows) and needs no sudo or administrator rights. Open a new terminal or SSH session to use magnitude. To run Magnitude in a container instead, see Docker.

Serve

It serves until you press Ctrl+C. Check on it from another terminal with magnitude status.

Open the app

Without the desktop app, you can still use Magnitude’s app in your browser. While serve runs, run magnitude app open, or open http://127.0.0.1:10100 on the same machine. To open it from another computer, see Serve other computers.

Serve other computers

Turn on network access with a key, as described in Network access, and connect your agent with the base URL http://SERVER_IP:10100/inference/v1 and the key. Network access exposes only the inference API; to open the Magnitude browser app from another computer, use an SSH tunnel. If the machine runs a firewall, allow inbound TCP port 10100: for example sudo ufw allow 10100/tcp, or sudo firewall-cmd --permanent --add-port=10100/tcp && sudo firewall-cmd --reload. On Windows, from an administrator PowerShell:
This allows connections on networks Windows treats as private. If the server’s network is set to Public, change its profile to Private in Settings, or use -Profile Private,Public only if you trust that network.

Keep it running in the background

To keep serving after you disconnect and after a restart, register magnitude serve with the system’s service manager. Each definition below starts it at boot, with nobody logged in, and runs it as you, with your ~/.magnitude. It runs the magnitude command, never a versioned path inside ~/.magnitude/cli, so it keeps working after updates. Set up only one per machine.
A LaunchDaemon runs serve as you. Run these as yourself, not in a root shell:
With FileVault on, nothing starts after a restart until someone unlocks the disk.Logs: ~/.magnitude/logs/serve.log and ~/.magnitude/logs/service.logTo stop and remove it:

Updates

While magnitude serve runs, it checks for updates, downloads them, and installs them when no inference request is running, then restarts in place. Clients reconnect after a short pause, and a background service keeps running through the update. If a new version fails, it is held back and the current one keeps serving. To turn off automatic downloads, set "autoDownloadUpdates": false in ~/.magnitude/config.json. serve then prints that an update is available, and magnitude update install installs it.

The desktop app on the same machine

The desktop app always takes priority. While it is open, it serves, and magnitude serve, by hand or as a background service, waits and prints that another Magnitude app is serving. When you quit the app, serve resumes by itself. Installing the desktop app, from Download or with --desktop (-Desktop on Windows), replaces the CLI-only install. Your models and settings stay. A background service keeps working on every OS, because it runs the magnitude command, which becomes the app’s CLI. On Linux, ~/.magnitude/bin/magnitude points at the package’s /usr/bin/magnitude once the app has been opened.

Uninstall

  1. Stop and remove the background service, if you set one up, with the commands under Keep it running in the background.
  2. Delete the CLI:
The loop removes the PATH block the installer added to your shell startup files, keeping a .bak copy of each file it changes.
Your models, settings and keys stay in ~/.magnitude (%USERPROFILE%\.magnitude on Windows). Delete that folder too if you don’t want them.

Servers set up by earlier versions

  • Linux: a server set up as a system service by an earlier version keeps working after it updates itself, with the same address, port and key. It runs as magnitude.service under the magnitude account, with its data and configuration in /var/lib/magnitude/.magnitude/. Logs: journalctl -u magnitude.
  • macOS: a server set up by an earlier version runs as the dev.magnitude.server LaunchDaemon and keeps working. To remove it: sudo launchctl bootout system/dev.magnitude.server && sudo rm /Library/LaunchDaemons/dev.magnitude.server.plist.
  • Windows: a magnitude serve service wrapped with NSSM keeps working.