{"id":"pg_gnp8k4spyd3g","property_id":"prp_vlhkwkfqvw6r","domain_id":"dom_8rouhwjxaucl","root_domain":"railway.com","locale":"en","url":"https://railway.com/sandboxes","url_hash":"cfdb77f37a61cbcafc309568063d0896e464e9b182f089d4f04fce23dc94d628","path":"/sandboxes","depth":1,"canonical_url":"https://railway.com/sandboxes","canonical_page_id":null,"page_type":"landing","page_type_guess":"landing","state":"indexed","skip_reason":"budget","priority":"0.9","discovered_via":"sitemap","first_seen_at":"2026-09-26T10:07:03.207Z","last_seen_at":"2026-11-25T12:09:32.444Z","http_status":200,"content_hash":"45d194f7de8c796a42bbfc5315e70fb1979bb2e4a5967878606752bc6f5c1979","title":"Sandboxes | Railway","description":"Create Linux VMs with coding agents preinstalled. Run commands, connect to your private network, checkpoint, and fork. Pay for measured usage.","author":null,"published_at":null,"modified_at":null,"word_count":774,"reading_time_sec":211,"lang_detected":"en","images":[],"links_out":null,"markdown_source":"readability","refresh_interval":"monthly","last_fetched_at":"2026-11-25T12:09:01.991Z","next_refresh_at":"2026-12-25T12:09:01.991Z","runs_count":1,"changes_count":0,"last_changed_at":null,"fail_count":0,"last_error":null,"created_at":"2026-09-26T10:07:03.207Z","updated_at":"2026-09-26T10:07:03.207Z","inlinks":14,"inlinks_body":0,"outlinks":38,"outlinks_external":2,"anchor_terms":[],"template_score":"0.77777777777777777778","cash":"0.162355240839291946","cash_total":"2.255266970507946818","pagerank":"0.0213222214122353","is_orphan":false,"link_confirmed":true,"discovered_wave":0,"embedded_hash":null,"embedded_at":null,"domain_name":"Railway","brand_color":"#17222f","domain_rank":494,"spam_score":6,"markdown":"## A full computer on demand\n\nRailway Sandboxes are full Linux VMs you create in code. Wire one into your project's private network, checkpoint it, fork it, and throw it away. Just pay for what it uses, not how long it exists.\n\nAvailable on every plan. [CLI](https://docs.railway.com/cli/sandbox), [TypeScript SDK](https://github.com/railwayapp/railway-ts-sdk), dashboard, and API.\n\n## Useful right when you provision\n\nClaude Code, Codex, and other coding agents come preinstalled, along with Node.js and Git. Start running commands as soon as your sandbox is ready, with your databases and services on the same private network when you need them. [Read the guide →](https://docs.railway.com/guides/agents-in-sandboxes)\n\nRailway's base image includes Claude Code, Codex, and other coding agents, along with Node.js and Git. The other-provider path shows the setup steps needed when these tools aren't included in the image.\n\n## Reach your sandbox  \nby web, Android, iOS, or SSH\n\nWatch your sandboxes list from code, or step in yourself with Railway's unrivaled developer experience. [Dashboard docs →](https://docs.railway.com/sandboxes#dashboard)\n\n250,000+\n\nprovisions\n\nand counting\n\n## Everything a sandbox needs,  \nin the SDK and the CLI\n\nThe same primitives from TypeScript, from your terminal, or from an agent provisioning from the MCP.\n\nexec with durable sessions\n\nRun code live, detach, and reattach from another process. Sandboxes are great when you want to outlive the process that started them.\n\nFiles API\n\nEvery box gets a file-browser, read, write, list, and stream files of any size.\n\nCheckpoints and forks\n\nNamed disk snapshots stored in the environment. Fork a running sandbox in one call.\n\nTemplates\n\nBootstrap the base image for reusability. Railway then builds, hashes, and caches the image for quicker start-up.\n\nPrivate networking\n\nOpt a sandbox into the environment's private network to reach your Railway services by hostname.\n\nPublic domains\n\nUp to 10 Railway-provided HTTPS domains per sandbox, one per port.\n\nSSH and port forwarding\n\nrailway sandbox ssh and railway sandbox are all SSH native with keys tied to your account.\n\nFour regions\n\nUse our 8 sites in US West, US East, EU West, and Southeast Asia.\n\nIdle timeout\n\nForgotten sandboxes destroy themselves, or have them not de-provision. Your call.\n\nPricing\n\n## Priced for how agents  \nactually work\n\nA sandbox bills per second for the CPU it actually uses and the memory it holds. [See all pricing →](https://railway.com/pricing)\n\nMemory\n\n$0.001157 per GB-minute\n\nCPU\n\n$0.001157 per vCPU-minute\n\nEgress\n\n$0.05 per GB\n\nSandbox usage draws from the same included credit and usage limits as your services. Destroyed sandboxes cost nothing. Per-plan limits are on the [pricing page](https://railway.com/pricing).\n\nFAQ\n\n## Common questions\n\n### What is a Railway sandbox?\n\nAn isolated Linux VM you create through the TypeScript SDK, CLI, or dashboard. Git, Node.js, and coding agents are already installed, so you can start running commands and working with files right away.\n\n### How is a sandbox different from a service?\n\nA service runs your deployed app, API, or worker. A sandbox gives your application a VM for a task, like running an agent or testing a change. They are isolated VMs outside of the Railway service lifecycle that you manage.\n\n### How much does a sandbox cost?\n\nCPU and memory usage are billed per second, at $50/vCPU-month and $50/GB-month. Outbound traffic costs $0.05/GB. For example, a 20-minute task averaging 1 GB of memory and 30% of a vCPU costs about $0.03, plus outbound traffic.\n\n### Do I pay for an idle sandbox?\n\nYes. It still uses memory, and background work can use CPU and bandwidth. Sandboxes have an idle timeout by default, though running commands or active sessions can keep them alive. Destroy yours when you're done to stop compute charges.\n\n### Can a sandbox reach my database?\n\nYes. Set networking to PRIVATE and pass in your database credentials. Your sandbox can then connect to databases and services in the same environment. The default setting, ISOLATED, only allows outbound internet access.\n\n### What are checkpoints, forks, and templates?\n\nA checkpoint saves a sandbox's disk so you can start from it later, even after deleting the original. A fork creates another sandbox from a running one's files. A template lets you reuse a setup, with builds cached for next time. Each new sandbox boots fresh; processes and memory aren't copied.\n\n### Which plans include sandboxes?\n\nAll of them, including Free and Trial. Your plan determines how many sandboxes you can run in each environment, their CPU and memory limits, and idle timeout options. Usage counts toward your plan's included credit.\n\n### Can my sandbox have a public URL?\n\nYes. Choose PRIVATE networking and request a domain when you create it. You can have up to 10 domains, each pointing to a different port. They're removed when you destroy the sandbox.\n\nYour agent's next\n\ncomputer is now boarding\n\nCreate your first sandbox today\n\n[Create a sandbox](https://railway.com/new)\n\n![](https://railway.com/landing-2/trains/station-floor--light.svg)![](https://railway.com/landing-2/trains/station-floor--dark.svg)","storage":{"htmlKey":"stealpage/html/railway.com/pg_gnp8k4spyd3g/run_tctf67xl1yq1.html.gz","markdownKey":"stealpage/md/railway.com/pg_gnp8k4spyd3g/run_tctf67xl1yq1.md.gz"},"facets":null,"assets":[{"kind":"image","src_url":"https://railway.com/og.png?v=2","r2_key":null,"alt":null,"caption":null,"width":null,"height":null,"is_hero":true,"zone":"main"},{"kind":"image","src_url":"https://railway.com/landing-2/trains/station-floor--light.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/landing-2/trains/station-floor--dark.svg","r2_key":null,"alt":"","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"}],"shots":[{"viewport":"mobile","width":390,"height":844,"r2_key":"stealpage/shots/railway.com/pg_gnp8k4spyd3g/run_tctf67xl1yq1-mobile.png","phash":"a033024b0f4e8416","visual_delta":null,"captured_at":"2026-11-25T12:09:07.705Z"},{"viewport":"desktop","width":1440,"height":900,"r2_key":"stealpage/shots/railway.com/pg_gnp8k4spyd3g/run_tctf67xl1yq1-desktop.png","phash":"5d12061e1c627232","visual_delta":null,"captured_at":"2026-11-25T12:09:07.132Z"}],"history":[{"id":"run_tctf67xl1yq1","started_at":"2026-11-25T12:09:01.985Z","http_status":200,"fetcher":"direct","changed":false,"diff":null,"word_count":774}],"citedBy":[]}