Skip to content

Access modes

What the guest can see under masked, global and local credential access, where profiles live, and when to use each.

Updated

Every agent signs in to its model provider, and abx has three ways to hand that sign-in to a box. They are called access modes: masked, global and local. Read this page to decide which one fits an agent and a task. Each box records its agent, provider, login method and access when it is created, so changing a saved default affects future boxes only.

The three modes

Three columns, masked, global and local, each showing a host above a box. In masked, the real credential stays on the host and only an opaque per-box handle for one HTTPS endpoint reaches the box, so the guest never sees the login. In global, a named login profile is loaded into the box and released on a clean stop, and the guest can read the login. In local, nothing is shared and the real login sits on that box’s disk, where the guest can read it.

Access Sign-in and renewal What the guest can do Reuse
masked The host owns the secret reference or the native login and renews subscription access. Send authenticated requests through a per-box handle bound to one HTTPS endpoint. Several boxes can use one host profile. Revoking a binding disables that box’s handle.
global The vendor CLI signs in and renews inside a trusted VM. Read, use and update the real login. Name a profile when you create each box. One box holds it until a clean stop.
local The vendor CLI signs in and renews inside the selected VM. Read, use and update the real login. The login survives restarts on that box’s disk. A new box signs in on its own.

Masked

The guest never receives the real credential. It gets a handle that works only for requests to one HTTPS endpoint, and only for that box. The secret stays on the host: either as a reference you saved with --from, or as a native ChatGPT login that abx manages under host-managed login.

Use masked access by default. It is the only mode where a compromised or misbehaving agent cannot read your credential. A masked credential is released to a box only after abx auth verify has passed for the active image.

Global

The vendor CLI runs its own sign-in inside a box, and the login is stored in a named profile so you can reuse it across trusted boxes. While a box holds the profile, the guest owns the current credential and can read it. On a clean stop, abx quiesces the guest, records the latest login, removes it from the guest and releases the profile. While an agent’s saved selection is global, creating a box for it needs --auth-profile NAME (or --access local for a box with its own login), or it fails with Global access requires --auth-profile NAME when creating a box.

Use global access for subscription logins that have no masked route, when you trust the boxes that share the profile. abx auth status reports global access as experimental.

Local

The vendor CLI signs in inside one box and the login lives on that box’s disk. It survives stops and restarts of that box and ends when you remove it. Another box needs its own sign-in.

Use local access for a one-off or isolated login, such as a second account that should never be shared.

Which agents support which mode

abx help auth <agent> lists the modes of one agent. It also shows routes marked unsupported: they exist upstream but a box cannot use them. For example, Codex openai/login and Cursor cursor/api-key are unsupported.

Agent Masked Global Local
Claude Code anthropic/oauth-token (subscription token), anthropic/api-key anthropic/login anthropic/login
Codex openai/api-key, openai/device (host-managed ChatGPT login) openai/device openai/device
Antigravity (agy) google/api-key (Gemini) google/account google/account
Cursor none none cursor/login
Pi anthropic/api-key, openai/api-key, openai/chatgpt none none
OpenCode anthropic/api-key, openai/api-key, openai/chatgpt none none

Enterprise Google access (ADC) is not supported. A Claude subscription works in masked mode only as a long-lived token from claude setup-token; a full claude auth login stays in the guest. ChatGPT grants obtained through Codex, Pi and OpenCode belong to those applications and are not shared between them. For setup commands per agent, see the agents pages.

Choose the access with abx auth set

abx auth set <agent> saves the choice. When a provider and mode are offered under more than one access route, name the route with --access. For Codex openai/device, which is both a masked host login and a guest login, omitting it is a usage error (exit status 2):

abx: codex openai/device is available with more than one access route. Choose --access masked|global|local.

For a guest login that offers only global and local, such as Claude anthropic/login, omitting --access saves local.

abx auth set claude --provider anthropic --mode login --access global
abx auth set cursor --provider cursor --mode login --access local

--mode defaults to the agent’s default mode: oauth-token for Claude, api-key for Codex, OpenCode, Pi and Antigravity. Cursor has no default, so it needs --mode. abx auth login always uses masked access and accepts only --access masked.

Where profiles live

Profiles and saved selections live under $ABX_HOME, which is ~/.abx unless you set it. They sit outside the workspace and box directories, so no mounted path holds a credential.

$ABX_HOME/profiles/host/<agent>/<profile>/                native host login (masked)
$ABX_HOME/profiles/guest/<agent>/<name>/profile.json      guest login profile (global)
$ABX_HOME/config.toml                                     saved selections and secret references

Each profile has a lock under $ABX_HOME/locks/profiles/. A profile records its agent, provider, method, access and name, and abx checks that identity before releasing a credential. The files are user-only. While a profile is not checked out, its file holds a reusable credential and depends on host file permissions. After a crash, the reservation stays with its owner box: repeat abx stop <owner>. abx stop --force stops active guest processes.

Inside the guest, a global or local login is stored at:

Agent Guest credential path
Codex /home/agent/.codex/auth.json
Claude Code claudeAiOauth in /home/agent/.claude/.credentials.json
Antigravity /home/agent/.gemini/antigravity-cli/antigravity-oauth-token
Cursor under /home/agent/.agent-box-cursor/cursor/ (local only)

See files on the host for the rest of the $ABX_HOME layout.

Type to search…

↑↓ navigate↵ selectEsc close