60 points · by ashriv · 2w ago · 70 comments
Demo: https://www.youtube.com/watch?v=lCWMdBQ96rY
There’s been an explosion of sandbox companies coming out of SF, but sandboxes solve maybe 10% of the infrastructure problem for AI agents. The approach that most sandboxing companies take is:
You buy Hetzner/OVH Cloud bare metal servers, use Firecracker to slice the servers up into VMs, sell those VMs with low margins.
It’s a bit of an oversimplification, but the point is it’s a narrow solution to a fairly difficult problem.
We talked to a couple hundred companies that are building AI agents. From personal assistants and coding agents to specialized healthcare agents, and the main pattern we saw was that even after choosing a sandbox provider, you still have to build additional infrastructure just to get things working. These were the primary points of friction:
1. Agent lifecycle management.
There’s a lot that you have to build in order to properly give your agents VMs: things like sleep/wake, persistent storage, triggers, scheduling, per-user routing and spend caps, health monitoring, failure recovery, and deploying updates across thousands of VMs without downtime. There are so many of these small sandbox management tasks that companies have to build and maintain themselves, and they add up.
2. Custom environments.
Production agents have varying needs. Some agents need Windows applications. Others need Android, browsers with persistent sessions, custom operating system images, preinstalled desktop software and applications, or specific dependencies. Some agents need access to private networks to interact with customer-specific things on prem, or residential IPs, or the ability to restrict network access completely.
3. Cost optimization.
If you’re selling a personal assistant for $20/month, a sandbox that costs $0.04/hour comes out to roughly $29/month if you keep it running continuously, not including LLM inference, storage, etc. There is a way to combat this though, which is to optimize sandbox usage with auto-snapshotting, making things event-driven, mounting S3 buckets to agent environments via FUSE for cheap storage, cold-tiering snapshots, etc. All roads lead to… building more infrastructure.
So what did we build differently?
We give each agent its own isolated, persistent microVM and a configurable environment. On top of the compute, we built a lot of composable services: provisioning, persistent state, sleep/wake orchestration, triggers, schedule creation, monitoring, network configuration, updates, rollbacks, recovery, per-agent spend tracking, login handoffs, all the things you’d need for production agents.
We also spent a huge amount of time optimizing cost. A lot of thought was put into things such as scale-to-zero, copy-on-write over shared base images, compressed memory snapshots, hot/warm/cold snapshot and disk tiering, and other optimizations while balancing these with performance metrics like latency.
As a result, Maritime costs $1 for a 2gb RAM agent per month (unlimited usage for that $1), with additional resources available as needed.
Maria was a visiting lecturer at MIT and did research at Project NANDA on agent infrastructure. Ary did research on agent coordination protocols at the same lab. We started Maritime together this March because of all the issues we faced with trying to deploy agents to the cloud during our research.
We want your feedback.
If you're building an agent product, what did you have to build on top of sandboxes to make them work? We want to know about all the workarounds and weird things you’ve had to build.
Are there things you’ve tried to build with VMs but couldn’t? Does Maritime fit your needs? Is there a feature we’re missing that would make us more enticing?
Happy to answer any questions in the comments.
On the BYOK path that is less automatic. If a harness inside the VM can call OpenAI, Anthropic, or Gemini with a raw official key, Maritime's 429 never sees the request and the official invoice keeps growing. In that setup the cap that actually stops spend is still the provider one: an OpenAI project or org spend limit with enforcement turned on, or the equivalent workspace/org monthly limit in Anthropic's console (which is not per key, so one job can still burn a large share of the month). A per-run budget in the harness — turns, tokens, wall-clock, and dollars — is what kills a retry loop before either of those monthly limits is reached.
Prepaid or usage-deducted billing is a useful backstop on the official account too: when the balance hits zero, calls stop. That does not replace a per-run cap or a gateway 429, but it bounds the blast radius if a job is pointed at a key that is not going through Maritime.
caboulicam's point still stands: none of this caps a refund, a bulk email, or a Terraform apply. Those need a separate outbound policy.
I work at a neocloud company, and from my experience, getting VMs up and running with Firecracker/KVM on bare-metal infrastructure is relatively straightforward and requires little operational overhead initially.
The real challenge is what comes afterward: continuously monitoring, patching, and responding to newly discovered CVEs. Falling behind on security updates can have serious consequences, and ultimately, it's your customers who bear the risk.
This is one reason I'd be cautious about choosing a smaller provider based solely on price. At the infrastructure level, many providers are essentially selling the same isolated VMs. The real differentiators should be security, reliability, and operational maturity, particularly with AI accelerating vulnerability discovery and expanding the attack surface. Saving a few dollars on compute might not be worth the trade-offs.
There's also the question of geography and latency. If your agents run in a big tech cloud, offloading sandbox execution to infrastructure on another continent isn't necessarily a great choice. The added network latency can significantly impact agent responsiveness, especially when agents need frequent interactions with external services or real-time applications.
As for latency, we've noticed that since most agent runs take >10s, a couple extra ms of latency isn't a huge problem for a lot of companies. That said, we're planning on getting more edge hosts, and BYOC.
Thinking about product market fit, buyer personas, and right audiences here.
Would there be a future where maybe the agent can elevate to the human what the human needs to know when it wants to or requires it from what it has access and these platform-like UX constructs are more like a "just in time" construct similar to Claude Artifacts?
I expect the next cloud for AI to be fully headless, though maybe I'm wrong
Let me explain my current setup. We have something like muse/instinct/dots equivalent built for our customers(GTM domain), so each of them gets an agent with a VM (sandbox - currently using daytona). The sessions and the context (skills, instructions, hooks etc.) are synced to R2. Daytona(2GB ram, 3GB disk, 1vcpu) is working out good for us, cold starts are <500ms, whereas warm ones (non-archived sanboxes) are much lesser. Current problems we are facing is around agent swarms or sub-agents or multiple sessions from same customer (teams trying to interact) - we needed to manage the daytona sandbox sizing on this.
If I were to use maritime, what'd be different for me? Would I be paying $1/mo per customer agent? I can just move my harness to maritime and stop managing sandboxes, R2 sync etc.?
Another company I wanted to checkout is Omnara(another YC company), but Maritime felt closer to my task.
It’s $1/month for 1 vCPU, 2 GB RAM and 5 GB disk. Plans start at $20/month, including $20 of usage and 5 machines awake simultaneously. Model costs are separate.
You can bring your harness as a Docker image with a small HTTP wrapper. State saved under /data persists, so R2 isn’t needed just to restore that workspace. Keep it for backups or sharing state between workers.
Subagents sharing a box share its resources. Separate worker sandboxes add usage charges. We manage starting, sleeping and waking machines, but your harness still handles session coordination and worker sizing. Cold starts are <500ms as well
The two failure modes I would want a managed platform to handle by default are (1) an injected instruction in a fetched page or a customer email telling the agent to send data somewhere, and (2) a long-lived provider key sitting inside the VM where the agent, or anything it runs, can read it. Two patterns that seem to hold up: an egress allowlist enforced outside the VM rather than in the agent's own config, and giving the VM a scoped, revocable token that a proxy exchanges for the real key, so a leaked token has a spend cap and a kill switch.
Do you do either of those today, or is that left to the customer's harness?
Worth being explicit in your docs about which one it is, because people will assume the hard version and then get surprised by a bill from a runaway loop.
For the enforcement layer specifically, I built CostWindow for this — a drop-in proxy that refuses the call once a process hits its budget, before the provider is charged. Might be redundant with what you're doing internally, but it's the pattern I'd reach for.
In-progress tool calls are kept upon sleep/wake, however, open connections aren't (since typically the other side usually times out either way)
Also, digitalocean offers this now.
DigitalOcean is focusing on coding agent sessions in the cloud, rather than managing the things necessary to sell long living agents to customers.
side note, this design aesthetic is so cool but now literally every SF AI startup uses it -- I'd almost prefer craigslist style where the information is to the point and direct. i.e how much money/time will this save me and is it secure. the two questions i only care to answer here. i think the aesthetic is meaningless at this point bc of how easy it is to vibe this template out
Handoffs: renaming the old session isn't enough, it keeps running. Eight leftovers ate the box's memory and froze my coordinator mid-day. The handoff now stops the old session after ten minutes, and a cron job reads /proc/pressure/memory every minute and emails me when pressure or swap gets high.
Parallel test runs: a few workers running their suites at once took a 4-core box to load 13. An eight-line wrapper (flock plus nice 19 plus ionice idle) makes heavy jobs queue one at a time. Workers prefix anything slow with it.
Agree on the pre-tool-use hook. Anything that must hold goes in a hook for me now, since rules in CLAUDE.md get skipped once the context is long.
I built an open-source tool for this: Beep (https://github.com/flashmind-labs/beep). It runs Claude Code / Codex / OpenCode / Pi across your own machines over encrypted p2p (iroh/QUIC). There's no account and no middle server, it does Syncthing-compatible project sync, and it uses your existing subscriptions. If you do want managed infra, Maritime makes sense. But for one person with a couple of machines, you may not need a cloud at all.
plus it basically plugs into everything out of the box (ides, sdks, apps, etc), I haven't even broken the free tier for all my loads thrown at it.
It's reliable enough we even use it in production systems.