Command reference ยท Claude Code
/remote-env
Selects the default environment for cloud agents.
โ WHEN TO USE IT?
Set a default environment once
Before launching cloud agents from claude.ai/code repeatedly, use /remote-env to pick a default environment so you don't have to choose it every time.
Switching between multiple cloud environments
When moving between two repos with different cloud environments, set the new one as default with /remote-env before starting the next cloud agent.
โ WHEN NOT TO?
Purely local terminal session
/remote-env only affects the default environment for cloud agents, not local sessions.
Better: No action needed โ just keep working locally as normal.
SOURCES
- Claude Code Doku (offiziell) โ code.claude.com