dumbridge gives a cloud coding agent temporary, live, read-only access to one local directory.
No install step is needed. Run it with bunx dumbridge or npx --yes dumbridge. Bun 1.3.14 or newer must be on PATH.
On the computer that owns the files:
- Start the bridge:
bunx dumbridge serve ~/projects/my-app- Copy the printed
DUMBRIDGE_KEYvalue. - Put it in the cloud agent's environment as a secret. Do not log it or commit it.
- Keep the serve process running. Ctrl-C stops it and revokes access.
In the cloud agent:
npx --yes dumbridge run 'ls -la'
npx --yes dumbridge pull src/config.jsonrun evaluates one script against the served root and prints its output. pull copies one file or directory from the served root into the current directory.
dumbridge serve <root>serves one directory read-only and prints the bridge key. The key expires after 8 hours by default; set a different lifetime with--ttl '90 minutes'.--detachstarts the server without a terminal,--stopends a detached serve, and--statuslists the active ones.--direct-onlyand--relay-onlyforce the connection path.dumbridge run '<script>'evaluates one Bash-shaped script against the served root in a bounded sandbox. Writes are discarded. It never runs the host shell.dumbridge pull <remote-path> [destination]copies one file or directory from the served root. It verifies content, refuses symlinks, and never overwrites an existing destination.dumbridge doctordiagnoses the network environment without a key and exits non-zero when a check fails.dumbridge skillprints the bundled agent usage guide without contacting a bridge.
run and pull read the bridge key from DUMBRIDGE_KEY, or from --key-file <path> (- reads stdin). The key is never accepted as a command argument. Failures exit non-zero with a plain message that names the cause; --log-level debug on run or pull logs the dial sequence on stderr without exposing the key.
- Read-only. The agent can read files below the served root. It cannot write to your machine.
- One directory. Only the directory you pass to
serveis visible. Reads outside it are refused. - No host shell.
runuses a sandboxed interpreter, and its writes are discarded. - Short-lived key. The bridge key is a bearer secret: anyone holding it can read the served root while
serveruns. It expires on a deadline fixed whenservemints it, and stoppingserverevokes it immediately.
Put the DUMBRIDGE_KEY value in the agent's environment, then use run and pull as shown above.
- Claude Code on the web: set Network access to Full.
- Codex Cloud: set the Domain allowlist to All (unrestricted).
- Cursor: works with no extra setup.
If a connection fails, run npx --yes dumbridge doctor in the agent to diagnose the environment.
bun install --frozen-lockfile
bun run verifyThis is a Bun workspace orchestrated by Turborepo. The publishable CLI is in apps/dumbridge; the packages under packages/* are private and bundled into the published CLI. See CONTEXT.md for the domain language and docs/design/v1.md for the design.
MIT