Getting in
Follow these steps to set up an account and authenticate the SDKs.
-
Sign in. Open sandbox.dvm.run (the panel) and sign in with GitHub. Each account is one person.
-
Wait for access. New accounts start on the waitlist. The panel shows your status and lets you leave an email address and a note on your use case; with an email, you are notified when approved. Until then, every sandbox call returns
403withyou're on the waitlist: you can use dvm once we let you in, and you cannot create an API key. -
Get an API key from the panel or a terminal, as below.
Approved accounts include starter credit. See Plans, limits and credit for billing and plan limits.
Create an API key in the panel
Section titled “Create an API key in the panel”Create a key on the panel’s API keys page.
The key appears once: copy it and export it as DVM_API_KEY:
export DVM_API_KEY=...Use a panel key where no person can approve a browser login, such as CI or an autonomous agent.
Log in from a terminal: dvm-run login
Section titled “Log in from a terminal: dvm-run login”Each SDK ships the dvm-run CLI with one command, login. It requests a
key for your machine, opens your browser to approve it, and saves it for all
three SDKs.
pip install dvm-rundvm-run login # or: python -m dvm loginnpm install dvm-runnpx dvm-run logincargo install dvm-rundvm-run loginIt prints a URL and verification code, and opens the URL in your browser.
Confirm the machine name and code on the panel page to approve; the terminal
receives a key named Login on <machine>. Unapproved logins expire after 10
minutes.
--no-browserprints the URL only. Over SSH, open it in any signed-in browser.--api-url URLtargets another dvm.run instance instead ofDVM_API_URLorhttps://sandbox.dvm.run.
The key is saved in dvm/credentials.json under $XDG_CONFIG_HOME (or
~/.config), readable only by you and keyed by API URL. Logging in again
for the same API URL replaces its saved key.
How SDKs resolve the API URL and key
Section titled “How SDKs resolve the API URL and key”API URL order:
- Passed in code.
DVM_API_URL.https://sandbox.dvm.run.
API key order:
- Passed in code.
DVM_API_KEY.- Saved by
dvm-run loginfor that API URL.
With no key, the SDK raises an error before sending a request.
| Passed in code | From the environment | |
|---|---|---|
| Python | Sandbox.create(image, api_url=..., api_key=...), also on connect |
any call without them |
| TypeScript | Sandbox.create(image, { apiUrl, apiKey }), also on connect |
any call without them |
| Rust | Client::new(api_url, api_key) |
Client::from_env() |
Every request sends Authorization: Bearer <key>.
How API keys work
Section titled “How API keys work”A key acts as you: no scopes, no expiry, valid until revoked on the API keys page. Only the panel creates and revokes keys; a key cannot create another. Treat each key as a password, and revoke it if exposed.