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.
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. Run the commands in Terminal.
Claude Code
npm install -g @anthropic-ai/claude-code
- Run
claudein Terminal. - Follow the steps to sign in with your Claude account, or with an Anthropic Console account.
Codex
npm install -g @openai/codex
- Run
codex loginin Terminal. - 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
- Run
grok loginin Terminal. - 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
- Run
agyin Terminal. - 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.
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.
Still stuck? Write to [email protected]. Tuff not loading? See status.usetuff.com.
