Skip to main content
A harness needs access to its model. There are two ways to give it, and you only need one:
  • Sign in with your Claude or ChatGPT account. You do it once, and it covers all your private machines.
  • Use an API key from Anthropic or OpenAI. It works on every machine, shared and isolated ones included.

Sign in

Once, via the console or the CLI:
One sign-in covers all your private machines in the organization, new ones and forks included. If you already signed in to Claude Code or Codex on one of them, you are connected. To check, boxd agent harnesses myapp has a SIGNED IN column.

Use an API key

If you’d rather not sign in, or the machine is shared or isolated, give the harness an API key: ANTHROPIC_API_KEY for Claude Code, OPENAI_API_KEY for Codex. You can pass it to one session:
Or store it once as a secret, and every session on the machines that get the secret uses it. Bind it to api.anthropic.com or api.openai.com, and the machine never holds the real key: see Host-bound secrets.

Shared and isolated machines

A shared or an isolated machine gets nobody’s sign-in, so sessions on it need an API key. An isolated machine also has no boxd CLI inside, so its agents can only be driven from outside.

What the agent can do

An agent that boxd runs doesn’t ask for permission. It runs as the machine’s user, with the machine’s env vars and secrets.
Only give an agent a machine it may change freely. For anything else, use an isolated machine with an API key.