Gary by QUANTIS
Get Gary

Gary on the command line

Updated November 29, 2026

The gary tool connects a computer of yours to your Garys. It runs Gary's own computer there, in Docker, and lets your Garys work in the directories you share. It runs on macOS, Linux, and Windows, on every plan, Self-Hosted included.

For the four install steps on their own, see Self-hosted Install.

What it does

After you install it, gary runs in the background and holds one outgoing connection to QUANTIS. Nothing connects in to your computer, and you open no port.

  • It runs Gary's computer on your machine. With Docker installed, the tool starts a computer for Gary there: a browser, a shell, and the tools Gary builds files with, apart from your own files. On Self-Hosted, this is how Gary gets a computer. See Self-Hosted.
  • Your Garys work in the directories you share. They list, search, read, and write files there, and run commands and git.
  • You stay in charge of changes. Gary reads without asking. It asks before it runs a command, and before it changes a file unless you've allowed that.
  • It reaches Gary's cloud computer too. On Gary Max and Gary Unlimited, the same tool opens SSH and Remote Desktop sessions.

Use it for a laptop, a build server, a home server, or any machine without Gary for Mac.

Install

You need Node.js for the npm install. The package picks the right build for your system.

npm install -g @quantis-ai/gary

On Windows, run the same command in PowerShell.

System Processors
macOS Apple silicon and Intel
Linux x64 and arm64
Windows x64 and arm64

To check the version, run gary version.

Docker

Gary's computer runs in Docker. Install Docker Desktop on a Mac or a Windows PC, or Docker Engine on Linux, and start it before you run gary install.

Without Docker, the tool still installs. gary install warns that Docker is missing and says where to get it, then connects the machine so you can share directories. Run gary install again after you install Docker, and it starts Gary's computer.

Sign in and start it

gary install

gary install does four things: it signs this computer in, copies the tool to ~/.local/bin, starts it as a background service, and, with Docker running, downloads and starts Gary's computer. The first download is several gigabytes.

To sign in, the tool prints a link and a short code.

  1. Open the link in a browser where you're signed in to Gary. It can be on another device.
  2. Check that the page, Connect a computer, shows the same code as your terminal.
  3. Choose Approve.

Your terminal then shows "Signed in" with your account and this computer's name. No password or key is typed into the terminal.

Approve only a link you started yourself. If someone sends you a connect link, deny it.

To sign in without starting the service, run gary login. To name the computer, add --name:

gary install --name build-box

Gary's computer on this machine

Gary's computer is a container that the tool creates and looks after. Gary works inside it: it browses the web, runs code, and builds documents, decks, and sheets there.

  • It's apart from your files. Gary's computer has storage of its own on this machine. Gary can't read your own files from it. To let Gary work in a folder of yours, share the directory.
  • It runs while this machine is on. When the machine sleeps or shuts down, work that needs the computer waits, and picks up when the machine is back.
  • It keeps its files. Stopping or updating Gary's computer keeps its storage. gary uninstall leaves the storage in place too.
  • It holds no model key. Gary's turns run at QUANTIS and reach this computer through the tool's one outgoing connection.

gary status shows whether Gary's computer is running, and its version.

Share a directory

Gary sees nothing of your own files until you share a directory.

gary dir add ~/projects
gary dir add ~/contracts --read-only
gary dir add . --name website
Command What it does
gary dir add [path] Shares a directory. With no path, it shares the one you're in.
--read-only Gary can read the directory. It can't change files or run commands in it.
--name <name> What Gary calls the directory. The default is the directory's own name.
gary dir list Lists the shared directories.
gary dir remove <path or name> Stops sharing one.

Shared directories are the only places Gary reads or writes. A path that leads outside one, through .. or a link, is refused. Gary never writes inside a .git folder.

Start work on this computer

In Gary on the web or on your phone, start a new chat or task and set Where it works to this computer. Or name it in a message.

Run the tests

Runs a command in a shared directory after you approve it.

Starter prompt

On build-box, run the test suite in the website directory and tell me what fails.

Find a file

Searches without changing anything.

Starter prompt

Search my contracts directory on the laptop for every agreement that mentions auto-renewal, and list the renewal dates.

You can also send a task from the terminal. The tool starts a task in the directory you're in and prints Gary's replies as it works. Run gary help for the full list of commands.

For coding in a shared directory, with a diff and modes, see Code with Gary.

Approvals on your computer

What Gary does Does it ask?
List, search, and read files No
Git commands that only read, such as status, log, and diff No
Write or change a file Yes, unless you chose Always allow
Run a command Yes, each time
Git commands that change the repository Yes

The approval card shows the command and the directory, such as "Run make test on your computer?". Approve it in the chat, in Tasks, or from a notification. See Approvals and privacy.

  • Commands run as you. They run in your login shell, in a shared directory, with your own permissions.
  • A command has a time limit. The default is 120 seconds, and the most is 600 seconds. At the limit, the command and everything it started are stopped.
  • A write never overwrites newer work. If a file changed after Gary read it, the write is refused. Gary reads the file again first.
  • Replaced files are kept for 30 days, on this computer, so a change can be undone.
  • Git hooks don't run for Gary's git commands.

See what Gary did

gary tasks
gary tasks -n 50
gary tasks stop <id>

gary tasks lists what your Garys did on this computer, newest last, and any command running now. gary tasks stop stops a running command by its id.

The list is kept on this computer only, with the text of each command. Your action record on the web also lists each approved action. See Approvals and privacy.

Check the connection

gary status

gary status shows whether this computer is signed in, whether it's connected and why not, the directories shared, and any command running. Add --json for output a script can read.

What you see What to do
This computer isn't signed in. Run gary login.
No directories shared. Run gary dir add <path>.
Docker isn't installed, or isn't running Install or start Docker, then run gary install again. Shared directories work meanwhile.
Gary's computer is behind Run gary update.
gary isn't running here Run gary install.
The service runs an older version Run gary install again after you update.
gary: command not found Add ~/.local/bin to your PATH, or open a new terminal.

In Computers on the web, a connected machine shows "Connected now" with its folder count. A machine that's off shows "Last connected" and a time.

Run it as a background service

gary install sets the service up for your system, under your own user account. No administrator rights are needed.

System How it runs
macOS A launch agent. It starts when you log in.
Linux A systemd user service. It keeps running after you log out, so a server stays connected.
Windows A background task that starts when you sign in.

The service uses no processor time while idle. When the network drops, it reconnects without your help.

To update, run:

gary update

gary update updates the tool, downloads the newest build of Gary's computer, and restarts the computer on it. Gary finishes the job it's on first. The computer's files stay.

Connect to Gary's computer

On Gary Max and Gary Unlimited, the tool also connects you to Gary's cloud computer. The Computers page lists the commands for each Gary: a shell, the desktop in your Remote Desktop app, and entries for ~/.ssh/config. See SSH and RDP access.

Sign out and remove a computer

Command What it does
gary logout Signs this computer out. Your Garys can't reach it until you run gary login again.
gary uninstall Stops the service and Gary's computer and removes them. Your settings stay in ~/.config/gary, and the computer's storage stays in Docker.

To remove the computer from your account, open Computers on the web, open the computer, choose the menu, and choose to forget it. Do this for a machine you've lost or given away. Its sign-in stops working at once, even if the machine is off.

To remove everything from the machine, run gary uninstall, then delete ~/.config/gary and ~/.local/state/gary.

Where things are kept

Path What's in it
~/.config/gary/config.json This computer's name, and the directories shared
~/.config/gary/credentials.json This computer's sign-in. Only your user can read it.
~/.local/state/gary/ The activity list, and the copies of replaced files

The sign-in on this computer can only connect it to your Garys. It can't read your chats, change your account, or sign in to the web.

Security

  • Outgoing only. The tool connects out over HTTPS. Your firewall needs no change.
  • Only what you share. Every path is checked against the shared directories before anything is read or written.
  • Only while it runs. Stop the service, and your Garys can't reach the machine.
  • Yours alone. Only Garys on your account reach your computer, and only in your own chats and tasks. A scheduled routine doesn't run commands there, because nobody is present to approve them.

For how Gary's cloud computer is isolated, see Security.