Choose How Compute Is Paid For
Pick BYOK if you already have a provider account with quota or discounts, and Credits if you want
to start without one. Buying Credits carries a 5% processing fee; see Credits.
If you use both, BoxRouter follows each provider’s list: keys above Credits first, then Credits, then keys
below Credits. Change that order in Routing settings.
Set Up
1
Pay for Compute
To use your own provider account (BYOK): open Provider Keys, choose a provider, and enter
its credentials. Test checks entered credentials with a read-only request without saving them.
Save makes the same check first. Saving or testing a key starts no sandbox in your provider
account, and a saved key does not start preparing BoxRouter’s standard image.Where supported, the first sandbox that needs the image prepares it in your provider account.
Your provider may charge for setup or storage. Provider keys
explains the process.To use Credits: buy them under Credits; see Credits.
2
Create an API Key
Open API Keys and create a key. Copy its secret when it is shown, because it cannot be
recovered. The key belongs to the workspace you signed into.
3
Set It in Your Terminal
read -rs takes the key without echoing it, so it never lands in your shell history. The export lasts for this shell session.https://api.boxrouter.ai/api/v1. To use another deployment, set
BOXROUTER_BASE_URL to its base URL, which ends in /api/v1.401 means the key
was not accepted: check that it is set correctly and has not been revoked.
Key Permissions
A key’s permissions are fixed when you create it. To change them, create a new key.
Manage Provider Keys (BYOK) appears only for the workspace owner. Use it for CLI automation that connects providers or edits Routing; see the
provider keys guide.
Revoking a key stops new BoxRouter requests, and sandboxes it created then refuse commands from every key.
If It Fails
Next Steps
Run Your First Sandbox
Run echo hello in a sandbox and destroy it.
Connect a Provider Key
Pay with your own provider account instead.
Create a Sandbox
What a sandbox request can ask for.