Railway vs Together Code Sandbox
Railway is an app platform whose sandboxes are self-serve VMs. Railway destroys a sandbox after its idle timeout, and files survive in checkpoints you take. Together Code Sandbox runs VMs from Docker-image snapshots that you can save with their memory when they end. Together must enable it for your organization.
The companies and products
Railway
Railway is a cloud platform for deploying web apps, servers and databases. It also sells Sandboxes and Cloud Agents.
Railway's main product is app hosting: you deploy services and databases as containers on its own hardware. In 2026 it added Sandboxes: isolated Linux VMs that you create from the CLI or a TypeScript SDK, run commands in and destroy. It also added Cloud Agents: a personal VM for a coding agent that keeps its disk and sleeps or wakes. Cloud Agents are in Priority Boarding, and breaking changes may occur. Railway suits teams that already host on Railway and want sandboxes next to their apps.
Together Code Sandbox
Together AI is a cloud for running and training AI models, and Code Sandbox is its product for running code in isolated VMs.
You build a snapshot from a Docker image or Dockerfile on Together's builder, then start sandboxes from it and run commands and file operations through the together-sandbox SDK or CLI. When a sandbox ends you can save its disk, and its memory too, as a new snapshot to start more sandboxes from. It is aimed at model-generated code, agent tool calls and reinforcement learning rollouts, and Together must enable it for your organization. The pricing page also lists Code Interpreter at $0.03 per 60-minute session.
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. “28th cheapest of 365” means 27 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 | Railway: price rank | Together Code Sandbox: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month | 28th cheapest of 365 $1,481 a month | 67th of 365, with limits $528 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Railway fits an always-on assistant if you set the idle timeout to 0, with memory billing the whole time. A Together sandbox runs until you end it or its ttl ends, with no idle detection, so your backend starts and stops it. On boat you turn auto-stop off on a paid plan (default 1 hour). | 21st cheapest of 361 $3,977 a month | 107th of 361, with limits $1,095 a month | 6th cheapest of 361 $657 a month |
| Code interpreter bursts 100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month Railway fits short code runs well: it bills for CPU used and destroys the sandbox after. Together runs short code through exec in a sandbox too, once Together enables the product. boat's $20 plan includes 12 starts per minute and 200 per day. | 42nd cheapest of 336 $413 a month | 318th of 336, with limits $2,190 a month | 189th of 336, with limits $2,000 a month |
| Sandboxes for your users 300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month Railway allows 100 sandboxes per environment on Pro, and its domains have no built-in auth. On Together every port URL is open by default unless you set an experimental access policy. boat's HTTPS URLs are token-gated by default. | 46th of 349, with limits $290 a month | 231st of 349, with limits $900 a month | 3rd cheapest of 349 $209 a month |
| RL rollouts 1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month Together can save a sandbox with its memory and start many copies from it, which suits rollouts that branch from one warm state, once Together enables it. Railway forks a running sandbox's filesystem. boat forks from the last 1-minute disk snapshot, without memory. | 84th of 349, with limits $4,450 a month | 309th of 349, with limits $21,900 a month | 39th of 349, with limits $2,000 a month |
| Agent evals 250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month Railway can fork a running sandbox, and Together documents a Harbor guide for agent evals. boat has a Harbor integration too, and ships coding agents with an API to prompt, steer and follow each run. | 113th of 359, with limits $364 a month | 260th of 359, with limits $450 a month | 10th cheapest of 359 $200 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month CI jobs that build containers need Docker inside. Neither Railway's nor Together's sandbox docs describe it, so you install and verify it yourself. boat documents Docker on every sandbox. | 116th cheapest of 374 $1,210 a month | 253rd of 374, with limits $180 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Railway's Cloud Agents keep a disk and sleep or wake, but are in Priority Boarding. Together sandboxes have no idle detection or wake on request. A boat sandbox stays up once auto-stop is off and keeps its disk after a stop. | 69th cheapest of 371 $89 a month | 226th of 371, with limits $22 a month | 19th cheapest of 371 $26 a month |
| Computer-use agents 50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month Neither Railway nor Together includes a desktop. On Railway you add Xvfb and noVNC with the template builder; on Together you build a desktop and browser into your own image. boat streams a 60 fps desktop with Chrome. | 47th cheapest of 367 $407 a month | 105th of 367, with limits $600 a month | 7th cheapest of 367 $200 a month |
| Browser-use agents 50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month | 53rd of 356, with limits $93 a month | 195th of 356, with limits $900 a month | 7th cheapest of 356 $200 a month |
| Scraping & bots (startup scale) 50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month | 65th cheapest of 343 $570 a month | 181st of 343, with limits $180 a month | 6th cheapest of 343 $90 a month |
| Mass scraping & bots (undetectable) 1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month | 111th of 327, with limits $2,988 a month | 126th of 327, with limits $3,600 a month | 73rd of 327, with limits $1,800 a month |
| Parallel red teaming 200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month | 71st of 351, with limits $574 a month | 95th of 351, with limits $150 a month | 3rd cheapest of 351 $200 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 | 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 | Not ranked: misses a requirement |
Key features
| Feature | Railway | Together Code Sandbox | boat |
|---|---|---|---|
| Getting started | Self-serve on Free, Hobby or Pro, from the CLI or a TypeScript SDK | The SDK and CLI must be enabled for your organization by Together | Sign up with a card (7-day trial), then start a sandbox from the API, CLI or dashboard |
| Isolation | Sandboxes and Cloud Agents are isolated Linux VMs; app services are containers | A VM per sandbox on Together's infrastructure | Full VM with its own kernel, on physical hosts dedicated to boat; vCPUs are shared |
| Machine size | 8 vCPU / 8 GB on Hobby; on Pro up to 32 vCPU / 32 GB per the docs (24 vCPU / 24 GB per the pricing page) | 0.1 to 16 cores, 1 to 8 GB of memory per core; disk size not configurable | 2, 4, 8 or 16 vCPU at 2 GB per vCPU; disk fixed per size, 51 to 251 GB; 16 vCPU needs the $100 plan |
| When the sandbox goes idle | Destroyed after the idle timeout, 30 minutes by default, or never if set to 0 | Runs until you terminate it or its ttl ends; ttl counts from creation; no idle detection and no wake on request | Auto-stop after 1 hour by default (a timer, not an idle check); disk kept at least 14 days; no compute charge while stopped |
| Saving state | Named disk checkpoints you take, with no memory | End a sandbox with a snapshot of its disk, or disk and memory; new sandboxes from a memory snapshot resume with processes running | Disk saved every minute and at each stop with no code; memory is not saved, so a resume is like a reboot |
| Fork | Fork a running sandbox's filesystem | The parent stops first, then you start many sandboxes from its snapshot, with memory if you ask | Fork a running sandbox from its last 1-minute snapshot; the original keeps running |
| Docker, root and KVM | Root shell on an Ubuntu VM; Docker and /dev/kvm are not documented, so you install and verify them yourself | Commands run as user 1000 by default, root per exec on request; Docker inside and nested virtualization are not documented | Docker, root, systemd and /dev/kvm documented on every sandbox |
| Reaching the sandbox | Up to 10 public HTTPS domains, set only at creation, with no built-in auth; SSH and port forwarding | A URL per port, open to everyone by default; an experimental policy limits access by IP or requires a token; SSH not documented | Up to 50 HTTPS URLs, token-gated by default; SSH; public IPv6 for raw ports; no dedicated IPv4 |
| Coding agents | Claude Code, Codex, OpenCode and Pi in the image, run through exec | You install your agent in your image and run it through execs; a Harbor guide for agent evals | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets go in as environment variables, or are signed in and saved in a checkpoint | No credentials proxy documented | Optional paid proxy ($1 a day when on, plus $1 per 1,000 requests) keeps real keys of supported providers out; other secrets still enter |
| Desktop and computer use | No desktop included; you can add Xvfb and noVNC with the template builder and publish the port on a sandbox domain | No built-in desktop or stream; install a browser or virtual display in your own image | Built-in desktop and Chrome at 1920x1080, 60 fps, with computer-use tools |
| What else runs next to it | Postgres, Redis and app services in the same project, on a private network the sandbox can join | Model inference, fine-tuning and GPU clusters on the same Together account | Sandboxes only; host your own services inside a sandbox |
| Regions | US West, US East, Amsterdam and Singapore | Not published | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | Railway | Together Code Sandbox | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Not published | Not published | Yes |
| Nested virtualization | Not published | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | Not published | Yes |
| Browser | Yes | Not published | Yes |
| Computer-use API | No documented way | Not published | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | With your own setup | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | No documented way | No documented way |
| Secret proxy | No documented way | No documented way | Yes |
| Secret proxy for any API | No documented way | No documented way | Yes |
| Preinstalled agents | Yes | No documented way | Yes |
| Agent harness API | Yes | No documented way | Yes |
| MCP server | Yes | Yes | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | Yes | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | Yes | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Railway and Together Code Sandbox are not in the public benchmarks we use, so we cannot say which is faster. 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. Every boat sandbox in that run ran on an AMD Ryzen 9 9950X host. boat also places sandboxes on other 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. Railway and Together Code Sandbox are 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 | Railway, a month | Together Code Sandbox, a month | boat, 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 | $16 · Hobby · with limits | $5 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $70 · Hobby · with limits | $22 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $26 · $20/mo |
| 50 agents in parallel 50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside | $739 · Hobby · with limits | $264 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $317 · $20/mo × 3 seats |
| Sandboxes for your users 2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once | $223 · Pro · with limits | $900 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $200 · $100/mo × 2 seats |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $781 · Pro · with limits | $6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits | $8,800 · $2000/mo · with limits |
Railway: Railway bills sandboxes per second at about $50 per vCPU-month on CPU actually used and $50 per GB-month on memory in use, which keeps billing while a sandbox waits. Plans: Free ($0 with $1 of usage a month), Hobby ($5) and Pro ($20 per workspace); the Hobby and Pro fees count toward usage. Sandbox disk has no published price, so our bills leave disk out.
Together Code Sandbox: Together lists Code Sandbox at $0.0446 per vCPU-hour and $0.0149 per GiB-hour, about $0.30 an hour at 4 vCPU / 8 GB, from prepaid credits. Your organization must have it enabled first. Billing granularity, snapshot storage and egress prices are not published. The pricing page also lists Code Interpreter at $0.03 per 60-minute session; the scenario tables use that line because Code Sandbox needs enablement.
Together Code Sandbox: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan allows 100 sandboxes at once and 12 starts per minute, 60 per hour, 200 per day. Extra starts cost $0.03 to $0.07 each.
Limits in those scenarios
We mark every Railway scenario as not a clean fit because Railway publishes no sandbox disk price, so its bills count CPU and memory only. It caps sandboxes per environment at 50 on Hobby and 100 on Pro, so 300 user sandboxes or 1,000 jobs at once need several environments or an Enterprise limit. The Together column in the scenario tables uses the Code Interpreter line on Together's pricing page, because Code Sandbox needs Together to enable it, and Together publishes no concurrency or start limits for Code Sandbox. On boat, the 1,000-job burst needs about 6,700 starts a day, above the 2,400 the $2,000 plan includes, and starts above 270 a minute fail with 429.
| Scenario | Railway | Together Code Sandbox | boat |
|---|---|---|---|
| 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 |
|
|
|
Which one should you use?
Use Railway when
you want self-serve sandbox VMs today, next to apps and databases you already host there, or in US and Asia regions.
- Sign up and start today. Useful if you need sandbox VMs now: Railway's are self-serve, while Together's Code Sandbox waits on Together enabling it.
- Your apps and databases in one place. Useful if your app already runs on Railway: sandboxes can join the private network of your Postgres and services.
- Regions in the US and Asia. Useful if your users are in the US or Asia: Railway runs in California, Virginia, Amsterdam and Singapore.
Use Together Code Sandbox when
you already run models on Together and want light sandboxes, from a tenth of a core, that you can save with their memory and branch from.
- Memory snapshots to branch from. Useful for rollouts and test variants: save a sandbox with its memory and start many copies with processes still running.
- Sandboxes next to your models. Handy if you already run inference or fine-tuning on Together: sandboxes and models share one account.
- Sizes cut to the job. Good for many light jobs: sandboxes start at a tenth of a core, priced per vCPU-hour and GiB-hour.
Where boat fits
On Railway and on Together, your code saves the work: Railway with checkpoints before the idle timeout, Together with a snapshot when a sandbox ends. For agents that work for hours, build with Docker, use a browser or serve apps to other people, boat gives each one a full machine that saves its disk with no code, with the agent and a desktop already set up. boat runs only in the EU and limits starts by plan.
A disk that survives the wait
A Railway sandbox is destroyed after 30 idle minutes by default, and turning that off keeps memory billing. A Together sandbox runs until its ttl ends, with no wake on request, and keeps work in the snapshot you take. A boat sandbox saves its disk every minute and at each stop, with no compute charge while stopped. boat does not save memory.
Docker, KVM and a desktop, documented
Neither Railway's nor Together's sandbox docs describe Docker inside or /dev/kvm, and neither includes a desktop. On both you install and verify them yourself. boat documents Docker, systemd, root and /dev/kvm, and streams a 60 fps desktop with Chrome.
Agents you drive from outside
On Railway you run each agent through exec, and on Together you bring your own harness. Both leave API keys inside the VM. boat adds a prompt, steer and events API, and its optional paid proxy keeps the real keys of supported providers outside.
Use boat when your agents do real work for hours: a full VM that saves its disk with no code, with Docker, /dev/kvm, a desktop, token-gated HTTPS hosting and coding agents you drive by API. boat runs only in the EU and limits starts by plan. Compare it one to one: boat vs Railway and boat vs Together Code Sandbox.
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
Questions people ask
Is Railway cheaper than Together Code Sandbox?
At Together's Code Sandbox list rates, compute only, Railway is lower in our scenarios: one always-on agent costs $70 against $217, 50 agents $739 against $2,619, and sandboxes for your users $223 against $744. Railway's numbers leave out disk, and Code Sandbox needs Together to enable it. boat comes to $26, $317 and $200 for those three jobs.
Which is faster, Railway or Together Code Sandbox?
We cannot say. Neither is in the public benchmarks we use. boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on an AMD Ryzen 9 9950X host.
Can Railway or Together Code Sandbox run Docker?
Neither documents Docker inside a sandbox, so you install and verify it yourself. Railway gives a root shell on an Ubuntu VM, and Together runs commands as a normal user by default, with root per exec on request. boat documents Docker, systemd, root and /dev/kvm on every sandbox.
Can I sign up for Together Code Sandbox right away?
No. The together-sandbox SDK and CLI must be enabled for your organization, so you ask Together for access. Railway sandboxes and boat are both self-serve; boat's trial needs a card.
What happens to the sandbox when work stops?
Railway destroys a sandbox after its idle timeout, 30 minutes by default, and keeps the checkpoints you took. Together runs a sandbox until you end it or its ttl ends, and can save its disk and memory as a snapshot. A boat sandbox auto-stops after 1 hour by default, keeps its disk for at least 14 days, and has no compute charge while stopped.
Where do Railway and Together run?
Railway has regions in California, Virginia, Amsterdam and Singapore. Together does not publish regions for Code Sandbox. boat runs only in Germany, Finland and France, and you cannot pick a region.
Try boat
Install the CLI, then run boat new.
7-day free trial