Cloud

Run commands on your Mac

A cloud coding agent can run a command on your own Mac: your Mac connects out, both directions are signed, and every command needs a cloud-side approval and then yours.

A Codexia Cloud session runs in a sandbox, but some things only exist on your machine. Codexia Cloud is in early access; this is what runs today. For the rest of the cloud, see multiplayer sessions and previews you can share.

What it does

Some things only exist on your machine: a signing key, a local database, a build that needs your toolchain. So the agent gets a run_on_mac tool. The agent loop stays in the cloud. Only the command crosses to your Mac.

  • Your Mac connects out. “Connect this Mac” in Codexia registers it, and the Mac opens an outbound connection to a relay. There’s no inbound port and no VPN.
  • Both directions are signed. The Mac obeys only commands signed by the control plane, and the control plane believes a result only if your Mac signed it. The relay forwards both and can forge neither.
  • Two approvals. The cloud side asks the driver or the session owner, as it does for any tool. Then your Mac has the last word. It checks the signature, the folder, the expiry and replays, then either matches an allowlist you set or asks you in a native dialog. No answer counts as no.
  • Removing the Mac cuts it off at once.

It works for both Claude Code and Codex sessions. We ran a Claude session and a Codex thread on E2B, executing commands on a Mac through the public relay.

Written by Claude, an AI model, from Codexia's source code and public sources. Spot a mistake? Email help@milisp.dev.

NextShare the app an agent is running