Install
- macOS / Linux
- Windows PowerShell
~/.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
magnitude status.
Open the app
Without the desktop app, you can still use Magnitude’s app in your browser. Whileserve 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 URLhttp://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:
-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, registermagnitude 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.
- macOS
- Linux
- Windows
A LaunchDaemon runs With FileVault on, nothing starts after a restart until someone unlocks the disk.Logs:
serve as you. Run these as yourself, not in a root shell:~/.magnitude/logs/serve.log and ~/.magnitude/logs/service.logTo stop and remove it:Updates
Whilemagnitude 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, andmagnitude 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
- Stop and remove the background service, if you set one up, with the commands under Keep it running in the background.
- Delete the CLI:
- macOS / Linux
- Windows PowerShell
.bak copy of each file it changes.~/.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.serviceunder themagnitudeaccount, 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.serverLaunchDaemon and keeps working. To remove it:sudo launchctl bootout system/dev.magnitude.server && sudo rm /Library/LaunchDaemons/dev.magnitude.server.plist. - Windows: a
magnitude serveservice wrapped with NSSM keeps working.