# Getting in

> Sign in with GitHub, leave the waitlist, and set an API key from the panel or a terminal.

This is the Markdown of https://docs.dvm.run/start/access/. Every page of the dvm.run docs is served as Markdown at its address plus `.md`; the list of pages is https://docs.dvm.run/llms.txt.

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

1. **Sign in.** Open [sandbox.dvm.run](https://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](/concepts/plans/) for billing and plan limits.

## Create an API key in the panel

Create a key on the panel’s [API keys page](https://sandbox.dvm.run/keys). The key appears once: copy it and export it as `DVM_API_KEY`:



```sh
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`

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.

* Python



  ```sh
  pip install dvm-run
  dvm-run login            # or: python -m dvm login
  ```

* TypeScript



  ```sh
  npm install dvm-run
  npx dvm-run login
  ```

* Rust



  ```sh
  cargo install dvm-run
  dvm-run 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.

Note

Browser login requires human approval. For unattended agents, create a panel key and pass it as `DVM_API_KEY`.

## How SDKs resolve the API URL and 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>`.

## 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.
