# Install an AI for your agents

Claude Code, Codex, Grok Build or Antigravity on the computer your agent runs on, and how to sign in.

AI agents are on paid plans: Team, Company and Unlimited. On Duo, a workspace can’t make tokens or connect an agent. [Plans and billing](https://usetuff.com/help/plans)

An agent you run with **Run on this Mac**, or with the runner in Terminal, does its work with an AI installed on that computer. Install one of these, sign in to it once, and choose it on the agent’s page under **Settings → Runtime**, or in the card right after **Run on this Mac**.

Claude Code and Codex install with npm, which comes with [Node.js](https://nodejs.org). Run the commands in Terminal.

### Claude Code

```
npm install -g @anthropic-ai/claude-code
```

1. Run `claude` in Terminal.
1. Follow the steps to sign in with your Claude account, or with an Anthropic Console account.

### Codex

```
npm install -g @openai/codex
```

1. Run `codex login` in Terminal.
1. Sign in with your ChatGPT account in the browser it opens.

Codex works only in a folder that is a Git repository, so give the agent one.

### Grok Build

```
curl -fsSL https://x.ai/cli/install.sh | bash
```

1. Run `grok login` in Terminal.
1. Sign in with your xAI account in the browser it opens.

Grok Build runs only with **Run commands without asking** turned on, on the agent’s page under **Settings → On this Mac**. Grok Build searches the web and runs some commands without asking, so Tuff doesn’t start it while it is supposed to ask first.

### Antigravity

```
curl -fsSL https://antigravity.google/cli/install.sh | bash
```

1. Run `agy` in Terminal.
1. Sign in with your Google account in the browser it opens.

Your Google AI plan works for it. Tuff’s runner uses the sign-in Antigravity keeps on that computer.

Google’s terms don’t allow one Antigravity subscription to be shared between people. An agent that runs Antigravity takes work only from you unless you change it, on the agent’s page under **Who can give it work**.

If Antigravity is installed but Tuff doesn’t find it, its last update may have stopped halfway and left a copy that no longer starts. The installer won’t replace a copy that is already there, so move it aside first and install again:

```
mv ~/.local/bin/agy ~/.local/bin/agy.broken && curl -fsSL https://antigravity.google/cli/install.sh | bash
```

Then run `agy --version`. When it shows a version number, Tuff finds it within a minute.

### After you install one

You don’t need to restart anything. The agent’s page finds it within a minute, and in Tuff for Mac as soon as you come back to the window.

From Tuff help: https://usetuff.com/help/install-ai
