# /remote-env Command

> It picks the default setup for your cloud sessions.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /remote-env, Cloud environment

## Think of it like

It is like you pick which kitchen your cook will use when they go out.

## Definition

/remote-env picks the cloud setup your new cloud sessions use when you start them from the command line. The setup decides what the cloud machine gets, such as which sites it can reach and what values it is given. Pick one once. Later cloud sessions use it until you pick another.

## Example

Lucy's team has one cloud setup that can reach the test database. She picks it with /remote-env. Now each cloud session she starts can run the tests.

## Example code

```console
/remote-env
```

Choose the default cloud environment.

## Why it matters

The right environment decides what a cloud session can reach. A wrong one makes tests fail for reasons that are not in the code.

## Common mistake

Thinking it changes a cloud session that is already running. It sets the default for the next ones you start.

## Three principles

- **A default.** For new cloud sessions.
- **Sets the machine.** Network and variables.
- **From the CLI.** Sessions you start there.

## Related terms

- [Cloud Session](https://learn.benibix.com/term/ai/cloud-session)
- [/web-setup Command](https://learn.benibix.com/term/ai/web-setup-command)
- [/teleport Command](https://learn.benibix.com/term/ai/teleport-command)

## Taught in

- [Cloud and Server Commands](https://learn.benibix.com/learn/ai-claude-code-commands/cloud-and-server-commands): Claude Code Commands, 17/17

---

Source: https://learn.benibix.com/term/ai/remote-env-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
