Skip to content

CLI configuration

Run agentbox configure and paste an API key into the hidden prompt. Add --project-id PROJECT_ID to save a default project at the same time.

The command stores the values in ~/.agentbox/config.json with private file permissions. Do not pass a real key as a command argument or expose it in CI logs or shell history.

For automation, set AGENTBOX_API_KEY and, when needed, AGENTBOX_PROJECT_ID. Environment variables take precedence over the saved configuration.

After configuration, make a small request to verify the active credentials:

sh
agentbox sandbox list --limit 1 --format json