AgentGridAgentGrid Docs
Getting Started

Run AgentGrid on a Linux server

Install the AgentGrid CLI on a Linux server, sign it in to your account and reach it from your phone.

The AgentGrid CLI runs AgentGrid on a Linux server (x64 or arm64, glibc) with no window. Once it's signed in, the server shows up in Your computers and your phone can open its projects and start agents there.

Use a server only you log in to for now: other local users could read the daemon's local control token (#7549).

1. Install

On the server, as root or as your normal user:

curl -fsSL https://agentgrid.sh/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"

The installer checks the download's sha256 and runs a self-test that starts a terminal. It sets AgentGrid up as a systemd user service that never shuts down on idle and keeps running after you log out. It then signs the server in: open the printed link in any browser, check the code matches, and choose Allow. It ends with ✓ <hostname> is online once your other devices can reach it.

To install without the service, add -s -- --no-service. Without a systemd user session (in a container, say), the installer starts AgentGrid with agentgrid start instead; run that again after a reboot.

Verify the download yourself

install.sh already does this. To check a tarball by hand, download it and the .sha256 file published beside it on the release page, then run, in the folder holding both:

sha256sum -c agentgrid-*-linux-$(uname -m | sed 's/x86_64/x64/; s/aarch64/arm64/').tar.gz.sha256

2. Sign in your coding tools

Agents run on the server with the coding tools installed there: the CLI download (about 59 MB) doesn't bundle them, and AgentGrid runs the claude or codex it finds on the server's PATH. Install them and sign in once, as the same user: run claude. See Coding harness setup.

3. Sign in to AgentGrid

The installer already did this. If it had no terminal to sign in from, it printed the command to run next:

agentgrid login

A running AgentGrid picks the sign-in up by itself.

4. Share a project

agentgrid project add ~/your-project

It shows up on your connected devices right away.

5. Connect

On your phone, the server appears in Your computers as "<hostname> · server". Tap it, open your project and start an agent. In the desktop app it's listed under Settings → Devices as soon as it signs in. Until AgentGrid is running there, it shows as "Server · Not connected yet". Opening it as a remote space from the desktop is coming soon.

Check, start and stop

agentgrid status     # account, version, whether AgentGrid is running, and its connections
agentgrid logs -f    # the end of the log, then keep following it
agentgrid stop       # stop AgentGrid
agentgrid start      # start it again in the background

agentgrid logs -f keeps following the log when it rotates. Look for [relay] ready. When AgentGrid runs as the systemd service, stop and start it with systemctl --user stop agentgrid or start agentgrid instead; agentgrid stop and start point you there.

Copy settings to another server

agentgrid config export > agentgrid-config.json   # on the server you're copying from
agentgrid config import agentgrid-config.json --dry-run   # preview the changes
agentgrid config import agentgrid-config.json

Run the import on the new server. The file holds settings, shortcuts, model defaults and shared projects, never secrets or sign-ins. Add --skills to the export to include your personal skills from ~/.claude/skills; importing installs them without overwriting a skill that's already there. Check those skill files for secrets before you share the export. Each setting the file names replaces the one on this server, including a whole group such as your shortcuts; settings the file doesn't name stay as they are, and shared projects are only added, never removed. Run with --dry-run first to see what changes. The desktop app's Settings → Advanced → Configuration → Export… and Import… use the same file; Import… restarts AgentGrid after you confirm.

To set up a new server without the import step, put the file at ~/.agentgrid-config.json, or point AGENT_GRID_CONFIG at it. AgentGrid applies it when it starts, once per version of the file: settings you change later stay changed, and editing the file applies it again on the next start.

Sign out and uninstall

Run agentgrid logout on the server, or remove it at agentgrid.sh → Account → Connected apps. To uninstall:

systemctl --user disable --now agentgrid
rm -rf ~/.agentgrid ~/.local/bin/agentgrid ~/.config/systemd/user/agentgrid.service

Also delete ~/.agent-grid-daemon to remove the sign-in and AgentGrid's data on the server.

On this page

Ask AI

Ask a question about AgentGrid. Answers come from these docs, with links to the pages they use.

AI answers can be wrong. Check the linked pages.