# Environments and keys

> Variables, environments, and keys kept on your device: shared values in the doc, your own values on this device.

`{{baseUrl}}`, `{{token}}` and any other `{{name}}` in a request is a variable. Variables belong to the requests as a whole, or to an environment (Staging, Production). Pick the environment at the top right of a request; its values are used over the requests' own.

**Environments** at the top of the requests list opens them: **Collection** for the variables every environment shares, then one tab per environment, and **+ New**. Each variable has **Variable**, **Shared value**, **This device** and **Secret**. Type in the empty row at the end to add one. **Use** makes an environment the one requests send with.

You can also set a value from the request itself: point at a `{{variable}}` and type it there.

## Shared value and this device

Each variable has two values:

- **Shared value:** in the doc, the same for everyone who can edit it. Use it for a base URL or an ID. People with View access and [public links](/help/api-docs#public-links-and-view-access) see the names, never the values.
- **This device:** your own, kept on your computer and never sent to Dockito: in the desktop app, or in this browser when you send from it (plain values only). It's used over the shared value. Leave it empty to use the shared one.

## Secrets

Mark a variable **Secret** for keys, tokens and passwords. A secret has no shared value: everyone sets their own in the desktop app, which keeps it in your computer's keychain, so the key never leaves your computer. On the web, its **This device** cell says so. In the browser, a copied call names it as an environment variable (`$BOOKINGS_TOKEN`) for you to set. The doc, its History, exports and your AI see only its name.

Keys found in an imported file are moved to your device the same way, and the request keeps the variable's name.

In the desktop app, the values Try it uses are the same ones, so a key set in Try it works in Requests too.
