A remote agent runs on another machine, such as a hosted development environment or a server. Your screen may be local while the shell, project files and network access belong to the remote machine. Identify where each component runs: the interface, agent process, tool server, model, storage and any connected service may be in different places.
Suppose a remote account can read a shared project folder and has a credential for a staging service. A command executed there can affect both, even when your laptop has neither folder nor credential. A sandbox on your laptop does not necessarily constrain that remote process. Shared mounts, cloud identities and network routes define the remote boundary.
Protect both access and transport
Restrict who can reach the agent service; avoid exposing it publicly unless there is a reviewed need. Use strong authentication, least-privilege accounts, a private network or appropriately secured access, and encryption in transit. A password authenticates a caller but does not, by itself, encrypt an unencrypted connection. Consult current documentation for the service and network controls; do not copy an old setup command without understanding its exposure.
Before using a remote environment, establish what data is copied there, who administers it, what is logged and retained, what it can reach, and how to revoke access and remove temporary resources. Separate development credentials from production, and verify the remote environment’s own restrictions. A remote machine is a different place to enforce boundaries, not a substitute for them.