zode up moves the project you are working on from your machine to a sandbox, uncommitted changes included, so an agent can carry on there while your laptop is closed. zode down brings the result back. Run both inside a git repository.
zode up
What moves
Files. Tracked and untracked files that git does not ignore, as they are on disk, plus.git with its history. They go to /workspace/<repo> in the sandbox. These never move: .env files, *.pem, *.key, *.p12, *.pfx, SSH keys (id_rsa and kin), .npmrc, .pypirc, .netrc, .git-credentials, credentials and credentials.json, .aws, .ssh, .gnupg and service-account*.json. The confirmation names each file left behind.
.env values. From .env, .env.local, .env.development and .env.development.local (or --env-file). Later files win. Each value is sorted into one of four kinds:
Secrets and variables go into an environment named
up-<repo>, made on first use, and the new sandbox reads it.
A secret needs hosts to be sent to. They come from --host KEY=..., then a built-in list for well-known names, then the host of the value itself when it is a URL:
A secret with no known host is asked about at the terminal; an empty answer leaves it behind. Uploading secrets runs the same host check as
zode secret set.
The conversation (--session). The newest Claude Code conversation for this folder, from ~/.claude/projects/. Every secret value from the .env files, and anything token-shaped, is replaced with [redacted by zode], and this folder’s path is rewritten to the sandbox’s. Claude Code then resumes it in the sandbox with no permission prompts, headless, and writes its output to ~/.zode-up.log there. It signs in the way your workspace’s Agents settings say.
The confirmation
Nothing moves until you confirm:.git/zode-up.json so zode down knows which sandbox to read.
zode down
- The work. Anything uncommitted in the sandbox is committed there (“Work from Zode sandbox acme”), and the commits since
zode upare fetched into a local branchzode/<sandbox>(a dated name if that branch exists). Your working tree and current branch are never touched. - The conversation, cloud turns included, over the local copy, with paths rewritten back. The old local copy is kept as
<id>.jsonl.before-zode-down.
The sandbox must be running. Work over 1 GB is refused; push it from the sandbox instead (
zode ssh, then git push).
zode bridge
localhost, for as long as the command runs.
- In the sandbox, each host keeps its name (added to
/etc/hosts). Your machine’s ownlocalhostis calledlaptopthere. - It is outbound only: the CLI holds one session to the sandbox and dials the real hosts itself. Nothing listens on your machine.
- Only the listed hosts are reachable. Up to 20 at once.
- When the bridge stops, connections to those hosts are refused at once rather than hanging.
- The sandbox must be running and have
python3, which every image has.
zode up --bridge HOST:PORT opens a bridge right after the move, and tells the resumed agent which hosts work only while your laptop is online.