TugboatAgent sandbox for Mac

Give the agent your project, not your Mac.

Suppose the agent working on your order screen installs a new package to get a test passing. The package’s setup script runs with the same access as the agent. When the agent runs directly on your Mac, that access is your user account’s.

Tugboat runs Codex and Claude Code in a small virtual machine dedicated to each project: a Brig microVM. Other Mac folders stay outside the sandbox.

Apple silicon · macOS 15 or later

The folder you share is inside. Your other folders stay out.Diagram adapted from Tugboat’s sample task

What can the agent reach?

Codex and Claude Code share the same sandbox and the same network rules. Each keeps its own chat history.

Files and tools

The sandbox sees only your project folder from your Mac. A setup script can replace a tool inside the sandbox without touching the one on your Mac.

Network

Every connection leaving the sandbox goes through a gateway on your Mac. The gateway looks up each hostname in the project’s allowlist; other destinations are denied by default.

Account

The agent uses an access token to make requests to its provider. The credential that renews your sign-in stays on your Mac.

The shared folder

This folder is still writable: if an agent deletes a file there, it also disappears from your Mac. A permitted host can still receive project data. Commit or back up work you need to keep.

Why won’t the
schema test pass?

In Tugboat’s sample task, Codex needs a test fixture, but the network policy blocks the download. Here’s where each request goes. Commands and replies are illustrative.

Follow the task step by step
1

The sandbox starts.

Brig verifies the image and boots a Linux guest with four vCPUs and 4 GiB of memory. Codex runs inside it.

2

The download is blocked.

schemas.example isn’t on the allowlist, so the gateway stops the connection and Codex continues with the project’s own fixture. chatgpt.com is on the list, so Codex can still reach the model.

3

The edit appears on your Mac.

Codex edits src/schema.ts, and the change appears in the same folder on your Mac. Your Documents folder isn’t in the guest’s filesystem at all.

4

The chat picks up where it left off.

After the chat, you can restart the guest offline and run local tests. Stopping the sandbox keeps its private home, so you can restart it and resume the chat.

How do I start?

Download the disk image from the Mac releases page, open it and drag Tugboat to Applications. In Projects, choose the folder the agent should edit, then open Codex or Claude Code. Tugboat prepares the sandbox and starts the chat.

You’ll need an internet connection for the first environment download and an account with your agent’s provider.

See the setup steps on the Tugboat site

Where will your agent install its next package?

Install Tugboat, open your first project and ask the agent to run a test. Setup scripts run in the project sandbox, not on your Mac.

See Mac releases (opens in a new tab)