Skip to main content
When to use it. A cloud agent, a CI job or any machine where no browser can open for box login
1

Make a key

On a machine where you are signed in
The key is shown only once. Save it as a secret named BOX_API_KEY (or BOX_TOKEN) in the cloud agent’s environment settings; box reads either one and then needs no box login. Never paste a key into the chat or commit it
2

Install in the cloud machine

Add this to the agent’s setup script, or let it run it
3

Keys you have

box key list shows ids and names, never the values. box key delete <id> turns a key off; anything still using it stops working
4

What a run looks like

The same as on your machine
The picture box returned to the agent: Hello from box with a counter