boat vs Mastra
Mastra is a framework for building AI agents in TypeScript, plus a platform that hosts them and starts sandboxes on demand. The platform destroys an idle sandbox after a timeout you set, and can restore its files from a checkpoint. boat is the machine itself: a full VM per agent with Docker, a desktop, public HTTPS ports, SSH and coding agents you drive from outside.
Where boat stands out
The same machine comes back
A boat sandbox stops instead of being destroyed. boat saves its disk every minute and once more at stop, and keeps it for at least 14 days. A stopped sandbox has no compute charge, and you SSH back in after resume. Memory and running programs are not saved, so a resume is like a reboot. A Mastra sandbox is destroyed after its idle timeout. If you pass a stable id, a new sandbox boots from the last filesystem checkpoint, and snapshot() saves one at once.
Docker, a desktop and open ports
Every boat sandbox has root, systemd, Docker and /dev/kvm, a 60 fps desktop with Chrome and computer tools, up to 50 public HTTPS URLs and SSH. Mastra's own sandbox documents no desktop or root. Docker is documented only as a template option on its E2B backend. Its port URLs open only for signed-in org members (or with a 1-hour cookie), with no public access and no raw TCP documented.
Coding agents you drive from outside
boat installs seven coding-agent harnesses in each sandbox, including Claude Code, Codex and OpenCode. Your app can prompt them, steer them mid-task and stream their events. With the optional paid credentials proxy on, real AI keys of supported providers stay outside the VM.
The companies and products
boat
boat.dev runs sandboxes for AI agents: each one is a full Linux VM with its own kernel.
You start a machine with one command or one API call, then SSH in, run Docker, open a desktop, or let a built-in agent (Claude Code, Codex, OpenCode and others) work in it. The disk stays between sessions, and a stopped sandbox costs nothing.
- Isolation
- Full VM per sandbox, own kernel
- Regions
- EU: Germany, Finland, France
Mastra
Mastra is an open-source TypeScript framework for building AI agents, with a hosted platform to deploy and run them.
You write agents, tools, workflows and memory with the Mastra framework, then deploy them to Mastra platform. The platform runs your Mastra server in a container and adds Studio, observability, hosted databases and a model gateway. Each environment gets a workspace with a file bucket and on-demand sandboxes. These sandboxes are Debian Linux VMs on Railway by default, or on E2B. Mastra is an app platform for agent builders, so it overlaps with boat only where your agent needs a machine to work in.
Which use cases each one fits
For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “5th cheapest of 365” means 4 of the other 364 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.
| Use case and its workload | boat: price rank | Mastra: price rank |
|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A software factory needs machines that keep their work. Mastra destroys idle sandboxes and restores only the filesystem from the last checkpoint (with a stable id), not running processes. It documents Docker only on its E2B backend. Mastra also ships Mastra Factory, an open-source software factory that runs coding agents in sandboxes. | 5th cheapest of 365 $634 a month | 256th of 365, with limits $3,284 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Mastra is good at the agent logic itself. An always-on server on its platform needs the $100 Persistent Server add-on per project, and its sandboxes stay up only until the idle timeout you set. | 6th cheapest of 361 $657 a month | 145th of 361, with limits $8,098 a month |
| Code interpreter bursts 100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month Short code runs are what Mastra sandboxes are made for: start one, run a command over the exec API, and let the idle timeout clean up. | 189th of 336, with limits $2,000 a month | 299th of 336, with limits $1,069 a month |
| Sandboxes for your users 300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month Mastra does not publish how many sandboxes can run at once, so 300 sandboxes for your users is not confirmed there. | 3rd cheapest of 349 $209 a month | 301st of 349, with limits $2,843 a month |
| RL rollouts 1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month | 39th of 349, with limits $2,000 a month | 293rd of 349, with limits $12,681 a month |
| Agent evals 250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month | 10th cheapest of 359 $200 a month | 287th of 359, with limits $1,250 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month | 2nd cheapest of 374 $86 a month | 280th of 374, with limits $439 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box needs SSH and a disk that stays. Mastra sandboxes have exec and private port URLs but no documented SSH, and the platform destroys them after the idle timeout. | 19th cheapest of 371 $26 a month | 311th of 371, with limits $224 a month |
| Computer-use agents 50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month Mastra's own sandbox documents no desktop. You set it up: use the Daytona or E2B Desktop sandbox with your own account there, and the framework's computer-use tools work with it. | 7th cheapest of 367 $200 a month | 279th of 367, with limits $1,170 a month |
| Browser-use agents 50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month No browser is preinstalled in Mastra's own sandbox. You add a headless Chrome through a template and drive it with Mastra's browser tools, or plug in a provider such as E2B Desktop or Daytona for a desktop. | 7th cheapest of 356 $200 a month | 201st of 356, with limits $1,170 a month |
| Scraping & bots (startup scale) 50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month | 6th cheapest of 343 $90 a month | 207th of 343, with limits $1,509 a month |
| Mass scraping & bots (undetectable) 1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month | 73rd of 327, with limits $1,800 a month | 294th of 327, with limits $25,115 a month |
| Parallel red teaming 200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month Red teaming often needs open ports and raw TCP. Mastra sandbox ports are private HTTPS URLs for signed-in org members, and raw TCP is not documented. | 3rd cheapest of 351 $200 a month | 134th of 351, with limits $840 a month |
| GPU eval jobs 10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement |
| macOS agents 5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | boat | Mastra |
|---|---|---|
| Kind of product | Sandbox VMs for agents, driven by API, CLI or SDK | Agent framework and app platform; sandboxes are one part of a workspace |
| Isolation | Every sandbox is a full VM with its own kernel; vCPUs are shared, not dedicated cores | Sandboxes are Debian Linux VMs on Railway by default, or E2B microVMs; your server runs in a container |
| Docker and nested virtualization | Docker with BuildKit and Compose, root via sudo, systemd and /dev/kvm on every sandbox | Docker Engine and Compose through a template option on the E2B backend (not documented on the Railway default); no documented root or /dev/kvm |
| Machine size | 4 vCPU / 8 GB with 51 GB disk by default; 8 vCPU / 16 GB on the $20 plan; 16 vCPU / 32 GB from the $100 plan; no GPU | Billed in CPU hours with no published hardware; Railway ignores the CPU and memory settings, E2B templates default to 2 CPUs and 1 GB |
| When the sandbox goes idle | Auto-stop after 1 hour by default, up to 30 days or off on a paid plan; the timer does not watch for idle, so an idle running sandbox bills at full rate. The disk is saved every minute and at stop and kept at least 14 days; memory and running programs are not saved | The platform destroys the sandbox after the idle timeout you set, so idle time stops billing. Pass a stable id and a new sandbox boots from the last filesystem checkpoint; snapshot() saves one at once. Running processes are lost |
| Fork | Fork a running sandbox from its last 1-minute snapshot; disk only, no memory | Fork a running sandbox's filesystem into a fresh boot; no live processes |
| Reaching the sandbox | Up to 50 public HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 (some sandboxes have no IPv4 address of their own) | Commands run over an exec WebSocket; ports get private URLs for signed-in org members (or a 1-hour auth cookie); no SSH or raw TCP documented |
| Desktop and computer use | Built-in desktop and Chrome at 1920x1080, 60 fps, with computer tools for agents; graphics run on the CPU | No desktop documented in Mastra's own sandbox. You set it up: plug in the Daytona or E2B Desktop sandbox (billed by that provider) to use the framework's computer tools, or add a headless Chrome through a template |
| Coding agents | Seven harnesses preinstalled, including Claude Code, Codex and OpenCode, with a prompt, steer and events API | An HTTP API for agents you build with Mastra. You set up Claude Code or Codex yourself: install it and connect it over ACP. Mastra Factory runs coding agents on your repo's issues |
| Keeping keys out of the sandbox | Optional AI credentials proxy, $1 per day it is on plus $1 per 1,000 requests: real keys of supported model providers and registered HTTPS APIs stay outside the sandbox. Other secrets and environment variables still enter it | Environment variables set in the sandbox at creation; a model gateway billed by token |
| Agent framework, memory and observability | None; bring your own framework and run it inside a sandbox | Agents, workflows, memory, Studio, tracing, hosted Postgres and LibSQL in one product |
| Sandbox backends | boat's own VMs | Plug in Daytona, E2B, Modal, Vercel, Cloudflare, Blaxel, Fly.io Sprites, AgentCore, Docker and more, or write your own provider |
| Self-hosting | Hosted only | Apache 2.0 framework you host anywhere; Enterprise platform on-prem or in your cloud |
| Regions | Germany, Finland and France; you cannot pick a region; no US or Asia region | us (Portland, Ashburn, San Francisco) and eu (Amsterdam) |
| Compliance and transparency | SOC 2 is in progress. We're open about where we stand: live status and data retention policy. | SOC 2 |
Every feature Battleships tracks (43)
| Feature | boat | Mastra |
|---|---|---|
| Full VM (own kernel) | Yes | Yes |
| Docker inside | Yes | With your own setup |
| Nested virtualization | Yes | Not published |
| Root | Yes | Not published |
| Systemd | Yes | Not published |
| Desktop GUI | Yes | No documented way |
| Browser | Yes | With your own setup |
| Computer-use API | Yes | No documented way |
| SSH | Yes | No documented way |
| Persistent disk | Yes | With your own setup |
| Pause/resume | Yes | No documented way |
| Automatic snapshots | Yes | Yes |
| Fork/clone | Yes | Yes |
| Live fork (no pause) | Yes | Yes |
| Memory fork | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes |
| ≥24 h sessions | Yes | Yes |
| Idle auto-stop | No documented way | Yes |
| Wake on request | No documented way | Yes |
| HTTPS preview URLs | Yes | Yes |
| Raw TCP inbound | Yes | Not published |
| Public IPv4 | No documented way | No documented way |
| Egress allowlist | No documented way | No documented way |
| Secret proxy | Yes | No documented way |
| Secret proxy for any API | Yes | No documented way |
| Preinstalled agents | Yes | No documented way |
| Agent harness API | Yes | No documented way |
| MCP server | No documented way | No documented way |
| GPU | No documented way | No documented way |
| Windows | No documented way | No documented way |
| Arm64 | No documented way | No documented way |
| Self-hosting | No documented way | Yes |
| BYOC | No documented way | Yes |
| Open source | No documented way | Yes |
| Scoped API keys | Yes | Not published |
| Spend limits | Yes | Not published |
| Usage per sandbox (API) | Yes | No documented way |
| Audit logs | No documented way | Yes |
| SSO | No documented way | Yes |
| SOC 2 | No documented way | Yes |
| HIPAA | No documented way | No documented way |
| EU data residency | No documented way | Yes |
| Zero data retention | Yes | Not published |
Performance
Mastra is not in the public benchmarks we use, so we cannot say which is faster. Mastra also does not publish what hardware one CPU hour buys. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. That boat sandbox ran on an AMD Ryzen 9 9950X host. boat also has Ryzen 7 9700X hosts and does not promise a CPU model.
V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Mastra is not in the public benchmarks we use, so we cannot say which is faster.
Pricing in five scenarios
Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.
| Scenario | boat, a month | Mastra, a month |
|---|---|---|
| One coding agent, workdays 4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days | $20 · $20/mo | $290 · Teams · with limits |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $26 · $20/mo | $414 · Teams · with limits |
| 50 agents in parallel 50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside | $317 · $20/mo × 3 seats | $2,230 · Teams · with limits |
| Sandboxes for your users 2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once | $200 · $100/mo × 2 seats | $1,395 · Teams · with limits |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $8,800 · $2000/mo · with limits | $2,736 · Teams · with limits |
boat: Plans cost $20, $100, $500 or $2,000 a month, and a card is required, also for the 7-day trial. The whole plan price comes back as VM time for that month and does not carry over. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; above that, an extra start costs $0.03 to $0.07.
Mastra: Mastra bills CPU hours: Starter is free with 24 hours, then $0.35 an hour, and Teams has a $250 plan fee with 250 hours, then $0.25 an hour. It does not say how many vCPUs or how much memory a CPU hour is, so our bills count one CPU hour per sandbox hour. A 24/7 server is a $100 add-on per project. Egress, traces, memory tokens, databases and model tokens bill on top. Below 24 CPU hours a month, the free Starter plan costs less than boat's $20 plan.
Limits in those scenarios
Mastra is marked as not a clean fit in every scenario because it is an app platform first and does not publish machine sizes, so its bills rest on a CPU hour of unknown size. It also publishes no limit on how many sandboxes run at once, so 300 sandboxes for your users or 1,000 jobs at once are not confirmed there. Its sandboxes are destroyed at the idle timeout, so an agent that waits needs a stable id and a checkpoint. boat does not fit the 1,000-job burst either: the $2,000 plan includes 2,400 starts a day and 90 a minute, the burst needs about 6,667 a day, extra starts are paid, and starts above 270 a minute fail with 429. boat never queues a start. boat has no GPU and no region outside Germany, Finland and France.
| Scenario | boat | Mastra |
|---|---|---|
| One coding agent, workdays | None for this scenario |
|
| One agent that never stops | None for this scenario |
|
| 50 agents in parallel | None for this scenario |
|
| Sandboxes for your users | None for this scenario |
|
| 1,000 short jobs at once |
|
|
boat's own limits
- Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
- Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
- A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
- Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
- boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
- Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
- Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
- Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source
Which one should you use?
Use Mastra when
you are building your own agent in TypeScript and want the framework, memory, tracing and hosting in one place, short-lived sandboxes next to it, a ready issue-to-PR factory, US regions, a free starter plan or a self-hosted setup.
- A whole framework for building agents. Useful if you are writing your own agent: Mastra gives you agents, workflows, memory, tracing and hosting in one TypeScript framework.
- An open-source software factory. Useful if you want a ready workflow from issue to pull request: Mastra Factory runs coding agents in sandboxes.
- Open source and self-hosted. Useful if you must run everything yourself: the framework is Apache 2.0, and Enterprise runs the platform on-prem or in your cloud.
- US regions. Useful if your users or data are in the US: Mastra runs in Portland, Ashburn and San Francisco as well as Amsterdam.
Use boat when
your agents need a real machine for hours or days: a full VM whose disk boat saves every minute and keeps after stop, with Docker, a desktop, public HTTPS ports, SSH and preinstalled coding agents you drive by API. boat runs in Germany, Finland and France only.
- The same machine comes back. On both products, running processes stop. On boat, disk saving is on by default, and auto-stop goes up to 30 days or off, so an agent can wait days for a review. On Mastra you pick the id and call snapshot() to keep recent writes. The Persistent Server add-on keeps your server up, not the sandbox.
- Docker, a desktop and open ports. An agent that runs docker compose, tests a web app in a real browser or shares a preview link needs those pieces. On Mastra you set them up: pick the E2B backend for Docker, or plug in Daytona or E2B Desktop for a desktop, and pay that provider too.
- Coding agents you drive from outside. Mastra's agent API drives agents you write in its framework. To run Claude Code or Codex in a Mastra sandbox, you install it and connect it over ACP. Its keys sit in the sandbox as environment variables, as they do on boat with the proxy off.
Questions people ask
Is boat cheaper than Mastra?
In four of the five scenarios we priced, yes. Mastra's bills rest on a CPU hour of unpublished size, which we count as one per sandbox hour. One coding agent on workdays comes to $20 on boat and $290 on Mastra Teams. One agent running all month comes to $26 versus $414, 50 agents in parallel to $317 versus $2,230, and sandboxes for your users to $200 versus $1,395. For 1,000 short jobs at once, Mastra costs less: $2,736 against $8,800 on boat, because boat charges for starts above its plan's limits. Neither fits that scenario cleanly.
Is Mastra a sandbox?
Not mainly. Mastra is a TypeScript framework for building agents, and its platform hosts them. Each environment also gets a workspace with on-demand sandboxes. These are Debian Linux VMs on Railway by default. The platform destroys them after an idle timeout and can restore their files from a checkpoint.
Can a Mastra agent use another sandbox?
Yes. The framework supports many sandbox backends, including Daytona, E2B, Modal, Vercel, Fly.io Sprites, AgentCore and Docker. You can add one by implementing its sandbox provider interface. Each backend has its own persistence, networking and limits.
Do Mastra sandboxes keep their files?
Yes, through filesystem checkpoints. Pass a stable id, and a new sandbox boots from the last checkpoint of the old one. Call snapshot() to save a checkpoint at once. Running processes and writes after the last checkpoint are lost. A boat sandbox stops instead: boat saves its disk every minute and at stop, keeps it at least 14 days, and has no compute charge while it is stopped. boat does not save memory or running programs either.
Where does my data run?
boat sandboxes run on machines in Germany, Finland and France, and you cannot pick a region. Snapshot copies can be stored outside the EU. Mastra has a us zone (Portland, Ashburn, San Francisco) and an eu zone (Amsterdam), and new environments default to the US.
Is boat SOC 2 compliant?
SOC 2 is in progress, and boat has no SOC 2 report today. Live status is at status.ascii.dev and our data retention policy at docs.boat.dev/data-retention. Mastra's trust center says it received its SOC 2 Type II report in October 2025.
Start a sandbox
Install the CLI, then run boat new.
7-day free trial