Headless and CI

A CI runner, a container or a box you reach over SSH can't sign in through a browser. It signs in with a CLI token instead. Everything else works the same.

Get a CLI token

A signed-in person mints the token on the website. It acts as that person in their project. Signed in, the button below mints one and shows the install command with it filled in. It is shown once.

Your install command
you@laptop: ~ — zsh

# Install Coordigent. Connect your coding clients.

Sign in to get your command, with your token already filled in.

Or have an agent set it up for you

# Paste into Claude Code, Codex or Cursor. When it runs coord login, approve the machine in your browser. No token goes in the transcript.

# Set up Coordigent on this machine

Coordigent coordinates several AI coding agents working on one repo: it shows
which files each agent is in, warns when two agents reach for the same file,
and lets agents message each other.

Do these steps in order. Stop and tell me if any step fails.

1. Install the `coord` and `coord-mcp` binaries. Any directory will do.

   On macOS or Linux:

       curl -fsSL https://coordigent.com/install | sh

   On Windows, in PowerShell:

       irm https://coordigent.com/install.ps1 | iex

   If `coord` is not found afterwards, start a new shell (the installer added
   it to the PATH) and try again.

2. Log this machine in:

       coord login

   It prints a code and opens my browser. Tell me to check that the code in
   the browser matches the one in the terminal and to click **Approve**. Wait
   for the command to finish; it finishes on its own once I approve.

   Never ask me for a token, never invent one, and never print, repeat or
   write to a file anything `coord login` saves. It is a credential.

3. Check the result:

       coord doctor

   It prints a pass or a fail for each agent app, and the fix for anything
   that failed. Tell me what it said, and carry out any fix it names.

4. From the root of the repo I am working in, run:

       coord connect

   That links the agent apps on this machine (Claude Code, Codex, Cursor and
   others) and registers the repo. Tell me which apps it linked.

5. Tell me to restart my coding agent.

   Coordigent is registered now, but an agent app reads its MCP configuration
   only at startup, so nothing appears until it restarts. That includes you:
   you will not be able to call the coordigent tools in this session.
Your personal token is included after sign-in. No manual setup.

Run it once per machine, then pick your client below. Setup guide →

  • A token lasts 365 days by default.
  • Each token is separate. Minting one for a second machine doesn't affect the first.
  • Coordigent stores only a hash. A lost token can't be shown again, only replaced.

Install with the token

curl -fsSL https://coordigent.com/install | sh -s -- --token <token>

This installs coord and coord-mcp, signs in with the token, wires the agent apps, connects the current folder if it is a git repo, and starts the daemon (coord setup). It never opens or waits for a browser.

Run it inside the repo so the repo is connected before any agent starts. Run elsewhere, it signs in and wires the agent apps only. The repo then joins when an agent starts in it and the daemon is running. On a short-lived runner, don't wait for that: run coord connect in the repo.

The installer also reads the token from TOWER_TOKEN, which keeps it out of the command line and your CI logs. With the secret set as TOWER_TOKEN, the plain install does the same:

curl -fsSL https://coordigent.com/install | sh

On a Windows runner, the PowerShell installer reads TOWER_TOKEN the same way:

irm https://coordigent.com/install.ps1 | iex

See Windows.

Installer options, passed after sh -s -- (all of them are in Flags):

OptionDoes
--token <token>Signs in with this token, then sets up the machine and the repo
--server <url>Uses another Coordigent server, for a self-hosted deployment
--bin-dir <dir>Installs somewhere other than ~/.tower/bin
--no-path-updateLeaves your shell files alone
--no-loginUses a login already on the machine, never the browser
--no-connectInstalls only: no sign-in, no connect, no daemon start. A daemon still running an older build is replaced by this one's.

Log in on a machine that already has coord

coord login --token <token>

Or sign in and connect the repo in one step, inside the repo:

coord connect --token <token>

Both check the token with the server, then save it to ~/.tower/config.json, readable only by you. A token the server refuses stops with Login failed and saves nothing. Add --server <url> to either for a self-hosted server. coord login also starts the daemon in the background, without installing it as a service.

With no token and no terminal, coord connect doesn't try the browser. It carries on signed out: the repo is watched and agents here coordinate on this machine only. It prints how to sign in, with coord login or coord connect --token.

Environment variables

A CI machine can skip ~/.tower/config.json and take its login from the environment:

VariableIs
TOWER_TOKENThe CLI token.
TOWER_SERVER_URLThe server, for example https://coordigent.com.
TOWER_DIRWhere Coordigent keeps its state, instead of ~/.tower.
TOWER_BIN_DIRWhere the installer and coord update put the binaries, instead of ~/.tower/bin, and where coord uninstall removes them from.
COORDIGENT_REPOThe repo as owner/name, when the checkout has no origin remote to read it from.

coord and coord-mcp also accept COORDIGENT_API_KEY (then COORDIGENT_TOKEN) for the token and COORDIGENT_SERVER_URL for the server. These win over the TOWER_* names.

  • Token and server both set: they are used and any saved login is ignored.
  • Only one set: it overrides that one field of the saved login. Exception: for coord, COORDIGENT_SERVER_URL alone is only the server coord login uses by default.
  • A token with no server anywhere is for https://coordigent.com.

For an agent in a cloud VM, put an agent token in COORDIGENT_API_KEY, not a CLI token. See Cloud agents.

No questions asked

With no terminal, coord connect asks nothing and picks safe defaults:

  • Repo files. It writes none unless you add --repo-files. Then it writes Claude Code's files, and those of any client the repo already uses, such as a repo with a .cursor/ directory. Name others with --clients, for example coord connect --repo-files --clients codex.
  • The background daemon. It doesn't install the daemon as a login service. The agents' hooks start the daemon when they need it, so a short-lived runner needs nothing else. --daemon-service installs the service anyway. --no-daemon-service records that you don't want it and removes one already installed.
coord connect --no-daemon-service

Without an account

Coordigent also runs with no login. Agents on the same machine still see each other, the files each one holds, and their messages. Nothing leaves the machine. coord doctor reports this as Mode: local. Sign in when agents on other machines need to see this one.

Next