Skip to content

Follow these steps to set up an account and authenticate the SDKs.

  1. Sign in. Open sandbox.dvm.run (the panel) and sign in with GitHub. Each account is one person.

  2. 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 403 with you're on the waitlist: you can use dvm once we let you in, and you cannot create an API key.

  3. 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 a key on the panel’s API keys page. The key appears once: copy it and export it as DVM_API_KEY:

Terminal window
export DVM_API_KEY=...

Use a panel key where no person can approve a browser login, such as CI or an autonomous agent.

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.

Terminal window
pip install dvm-run
dvm-run login # or: python -m dvm login

It 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-browser prints the URL only. Over SSH, open it in any signed-in browser.
  • --api-url URL targets another dvm.run instance instead of DVM_API_URL or https://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.

API URL order:

  1. Passed in code.
  2. DVM_API_URL.
  3. https://sandbox.dvm.run.

API key order:

  1. Passed in code.
  2. DVM_API_KEY.
  3. Saved by dvm-run login for 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>.

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.