---
title: "Agents"
description: "The six coding agents abx can run in a box, their launch commands and the authentication modes each one supports."
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/agent-box/llms.txt
> Use this file to discover all available pages before exploring further.

# Agents

abx ships adapters for six coding agents. You start one with `abx <agent> [box]`, and the agent runs inside the box's microVM. For Claude Code, Codex, OpenCode and Antigravity, abx turns the approval prompts off, because the VM is the boundary. This page lists the agents and what they have in common. Each agent has its own page for setup details.

| Agent | Command | Authentication modes | Page |
| --- | --- | --- | --- |
| Claude Code | `abx claude` | `anthropic/oauth-token`, `anthropic/api-key` (masked), `anthropic/login` (global, local) | [Claude Code](https://sandrinodm.github.io/agent-box/agents/claude-code/) |
| Codex | `abx codex` | `openai/api-key` (masked), `openai/device` (masked host login, or global and local guest login) | [Codex](https://sandrinodm.github.io/agent-box/agents/codex/) |
| OpenCode | `abx opencode` | `anthropic/api-key`, `openai/api-key`, `openai/chatgpt` (all masked) | [OpenCode](https://sandrinodm.github.io/agent-box/agents/opencode/) |
| Pi | `abx pi` | `anthropic/api-key`, `openai/api-key`, `openai/chatgpt` (all masked) | [Pi](https://sandrinodm.github.io/agent-box/agents/pi/) |
| Antigravity | `abx agy` | `google/api-key` (masked), `google/account` (global, local) | [Antigravity](https://sandrinodm.github.io/agent-box/agents/antigravity/) |
| Cursor | `abx cursor` | `cursor/login` (local) | [Cursor](https://sandrinodm.github.io/agent-box/agents/cursor/) |

`masked`, `global` and `local` are credential access modes. They decide what the guest can see of a credential. See [Access modes](https://sandrinodm.github.io/agent-box/authentication/access-modes/). Modes that exist upstream but that a box cannot use are listed as unsupported by `abx help auth <agent>`: Codex `openai/login`, OpenCode `openai/login`, Pi `openai-codex/login`, Antigravity `google/enterprise` and Cursor `cursor/api-key`.

## How an adapter works

Each agent is an adapter package. An adapter controls four things:

- **Installation.** The pinned agent version that `abx image build` installs into the image. In abx 0.3.0 these are Claude Code 2.1.334, Codex 0.173.0, OpenCode 2.4.3, Pi 1.7.0, Antigravity 1.5.21 and Cursor `2026.12.02-5c6ebdc`. For a [host-managed login](https://sandrinodm.github.io/agent-box/authentication/host-managed-login/), the Codex, Pi and OpenCode clients on your host must be the same version as the image's.
- **Launch.** The command abx runs in the guest. Claude Code, Codex, Antigravity and OpenCode get a flag that skips their approval prompts (`--dangerously-skip-permissions`, `--dangerously-bypass-approvals-and-sandbox` or `--auto`). Cursor is launched with `--disable-auto-update`, and Pi as plain `pi`. Arguments after `--` are passed to the agent.
- **Authentication modes.** Which providers and login methods the agent offers, which access modes each supports, and how a credential reaches the guest.
- **Network hosts.** The hostnames the box may reach. Each auth mode declares the hosts it needs, and a box with a selected mode gets those instead of the agent's defaults. Claude Code, Codex, OpenCode and Pi declare default hosts for a box with no saved login. Antigravity and Cursor declare none, so their boxes start with networking off until you select a login or pass `--allow`. See [Network policy](https://sandrinodm.github.io/agent-box/network/policy/).

## Setting up any agent

The steps are the same for every agent:

```sh
abx auth set <agent>        # choose how the agent authenticates
abx auth verify <agent>     # required before a masked credential can be used
abx <agent> <box>           # launch in a named box
```

A masked credential can be used only after `abx auth verify` has passed for the current image. Guest logins (`global`, `local`) need no verification. For the mechanics, see [Secret providers](https://sandrinodm.github.io/agent-box/authentication/secret-providers/), [Host-managed login](https://sandrinodm.github.io/agent-box/authentication/host-managed-login/) and [Verification](https://sandrinodm.github.io/agent-box/authentication/verification/).

`abx auth status <agent>` shows the available modes, what is saved and whether each mode is verified.

Source: https://sandrinodm.github.io/agent-box/agents/index.mdx
