FAQ for engineers

ParallelSandbox lines up the test builds your AI is developing in a row: you open one and use it, talk and circle what's wrong, and the AI makes the next version. That's how you iterate fast on your user experience.

Before you hand work to an AI, find out how ParallelSandbox works, where your code and data go, and what stays behind. This page is for people; the AI reads SKILL.md and the tool reference.

Your AI operates ParallelSandbox: you ask it in one sentence to start a box, set it up or delete it, and it calls the matching tool or REST endpoint. The sandbox_* tools and /v1/... endpoints below are there so you know what it actually does.

What can ParallelSandbox do for me?

  • A row of test builds: your AI works on several versions at once. Each one is a real, running test build of your app (web, mobile or desktop), waiting in a row for you.
  • Talk and circle what's wrong: open any build and use it. See something wrong? Say it out loud and circle it on the screen. No forms, no screenshots to paste.
  • Your AI makes the next version: your words and circles go back to the same AI conversation that built it. It fixes what you pointed at and hands you the next version.

Here is how that works behind the scenes:

  • Your AI (Claude Code, Codex, Cursor, Gemini CLI, or any client that speaks MCP) opens a box for each piece of work: a small remote Linux virtual machine with Docker, git, Node, Go, Chromium and a virtual display.
  • In the box the AI runs the services you changed, tests them in a real browser or an Android or iPhone simulator, takes screenshots and recordings, and hands the result to you to try. How you open it and send feedback that goes back to the same conversation: How it works.
  • One box per piece of work, isolated from each other. Several can run at once without fighting over ports, databases or your own machine.
  • There is no AI inside the box. Your own AI does the work through MCP tools; ParallelSandbox itself never sends your code to an AI model.

What is a box like?

An x86_64 Linux machine (Debian 12). Each size unit is 2 vCPU, 8 GB of memory and 40 GB of disk, and a box is 1, 2 or 4 units (4 is the largest). Docker, git, Node, Go, Python, PHP, Chromium and a virtual display are built in; Java, Android, .NET, Rust and Flutter toolchains are added when needed.

Where do I start?

  1. See the real flow first: the example repos are two public repos that run locally with docker compose up, and the page lists every step of running them in a box.
  2. Connect: paste the line from the quick start into your AI. It installs the skill and signs in to your account with OAuth; you do not hand it any key.
  3. Make the first task small, for example "run this repo in a box, test the home page in a browser, and hand it to me for review".

What does the architecture look like?

ParallelSandbox architecture: your computer, ParallelSandbox (AWS), your network

Part Where What it does
Your AI client Your computer Calls the MCP tools: start a box, run commands, take screenshots, hand over
Local adapter parallelsandbox-mcp (optional) Your computer Needed only to send a local folder into a box (sandbox_sync) or pull files back to your machine (sandbox_pull)
Control plane AWS MCP and REST API, accounts, secrets, metering
Hosts and boxes AWS Each box is its own small virtual machine with its own disk and network, isolated from the others
URL routing AWS Serves URLs like https://<id>-<key>.box.parallelsandbox.com from the web service in the box
Storage and registry AWS Screenshots and recordings, fetched files, the build cache, the images you publish
Android emulators AWS Android devices rented with sandbox_device
iPhone simulators Dedicated Mac hosts iPhone devices rented with sandbox_device
Connector (optional) Your network A container you run; it dials out to ParallelSandbox so boxes can reach the dev databases and services you list

How does one piece of work run, start to finish?

  1. Start: the AI calls sandbox_start with what the box is for, the services it runs and the ports they listen on, the secrets to bring and the environment to plug into. The box starts from a clean snapshot that holds no account data.
  2. Design first (when the work adds or changes screens, services or stored data): the AI sends sandbox_draft (phone screens, each a piece of HTML the AI writes), sandbox_architecture (services) and sandbox_schema (tables), and ParallelSandbox shows them on each design's page in the app (and on the box's page when the AI names the box): the draft as hand-drawn phone screens with what is new in red, the architecture as a clean diagram with what is new in blue, and the schema as text, every field with a short note. How you give feedback on them: How it works. This happens on the server, not in the box, and needs no box: the AI can design before starting one, and designs stay after a box stops.
  3. Code in: the AI runs git clone in the box, or sends your local working tree into the box through the ParallelSandbox API with sandbox_sync.
  4. Run and test: the AI builds, starts services and runs tests with sandbox_exec, and takes screenshots and recordings with sandbox_shot.
  5. Hand over: the AI hands the box to you with sandbox_review: a link in its reply and a card under "Ready for you" in the app. What you do then: How it works.
  6. Stop: once you are done, the AI calls sandbox_stop (or you tap "Shut down" in the app) and the box is archived: its disk is kept 30 days, and opening it brings the same box back until then. The result lists what in /work is neither pushed to git nor kept in a persistent folder; push or pull back anything you want to keep longer.

How long does a box stay?

  • 10 minutes without activity → frozen: no credits are charged, memory and /work are kept, and the next call wakes it in a few seconds.
  • 24 hours after its last use → archived: only its disk is kept, and opening it again brings back the same box in a minute or two, without what was in memory. To keep it longer before that, tell your AI "keep this box for 3 days"; it sets that when it starts the box, up to 7 days.
  • sandbox_stop (or "Shut down" in the app) → archived at once, the same way, its disk kept 30 days from then; stopping an archived box deletes it right away.
  • 30 days after its last use → the archived disk is deleted, and the box with it.
  • Once deleted, the box's URLs stop working and /work does not come back; a new box has new URLs.

My frontend and backend live in several repos. How does a box run them?

Can one box run several repos?

Yes. A box is a Linux machine: the AI can clone several repos under /work and run them together with docker compose or their own commands. Services find each other by name (for example api:3000), just like compose on your machine.

Or one box per service?

That works too. With services in different boxes, a link points a name in box B at a port in box A: the programs in B call the host name they always use, with no config change. It fits two people (or two AI conversations) each changing one service and testing them together.

Can boxes opened by two different people be linked?

Yes, as long as they are in the same account: a team shares one ParallelSandbox account (see team setup), which holds the boxes, environments, secrets, published versions and credits. Links only connect boxes of the same account. An account has no members or roles for now.

What about the services I did not change?

It depends on where they run:

Situation What to do
They run in your dev or staging (AWS, Kubernetes, an office) Create an environment: run the connector in your network and list the host:port addresses boxes may reach. A box then reaches the copy on your dev by its usual host name: the database, Redis and internal services alike.
It is an HTTP service with a URL Give externalBaseUrl when the box starts; HTTP to that service's name in the box goes to that URL.
Someone already built it and published a version Declare that version in services when the box starts; the box pulls the image and runs it without rebuilding (run a published version).

Your AI sets environments up over REST; there is no screen for it. All you do is run the connector in your own network (one docker run line). New addresses or settings on an environment reach only boxes started afterwards.

And services I do not own (another team, a third party)?

If your network reaches it, a box can too: run a connector where it is reachable and list its host:port. External services that only accept known IPs are listed the same way, and the traffic leaves from your own network with your public IP. A service you cannot reach yourself, a box cannot reach either.

Can a service on my dev call the copy I changed in the box?

Not over your private network: the connector only lets boxes connect out, and nothing on your network can connect into a box through it; a service on your dev that calls an internal host name keeps calling the copy on your dev.

The box's public URL (https://<id>-<key>.box.parallelsandbox.com), on the other hand, is reachable by anything on the internet, so callbacks such as webhooks can point at it.

To test "caller → changed service", the simplest way is to put the caller in the same box too, or in another box linked to it.

My code and data

Will the box always have my whole repo?

Not necessarily. It depends on how the AI puts it there:

  • git clone: the box fetches it itself. A private repo needs a token stored as a secret first (for example GITHUB_TOKEN), which the AI names when it starts the box.
  • sandbox_sync: sent from your computer. Only files git tracks, plus new files .gitignore does not exclude; or only the tree of one commit. Ignored files (.env and node_modules in most projects) are not sent by default.

Keep files you do not want sent in .gitignore, or ask the AI to send only a commit.

Where do my code and data go?

  • Boxes, the control plane, storage, the registry and the log service all run on AWS.
  • When you use an iPhone simulator, the app you built is sent to a dedicated Mac host and installed and run there.
  • A box connects wherever your programs connect: npm, GitHub, your dev, third-party APIs.
  • Traffic from a box to your dev goes through ParallelSandbox to your connector; the connector talks to ParallelSandbox over TLS, and your services' own TLS (your database's SSL, for example) is not unwrapped between the box and your service.
  • ParallelSandbox itself never gives your code to an AI model. What your AI sees (command output, screenshots) reaches your AI provider through your AI client, just as it does when you use it locally.
  • Voice input in the app is turned into text as you speak; neither the audio nor the text is stored.

The full details are in the privacy policy.

When a box stops, is its disk really wiped?

Yes:

  • When a box stops or is archived, its virtual machine is shut down and its disk file on the host is deleted right away. Host disks are encrypted, and the whole disk is deleted when the host goes away.
  • An archived box keeps a compressed copy of the parts of its disk that differ from the box image, in encrypted storage on AWS. It is deleted 30 days after the box's last use, when the box is restored, or at once when the archived box is stopped.
  • While a box is frozen, its memory and /work may be kept in encrypted storage; they are deleted when the box resumes or stops. There is also a 10-day upper limit as a safety net, which normal use never reaches.
  • To be precise: this is "delete the files on encrypted disks", not overwriting every block.

What is kept, for how long, and can it be deleted?

To delete something, tell your AI (for example "delete this box's screenshots" or "clear the build cache"); it calls the REST endpoint in the table.

Data Where Kept How to delete
The box's /work (code, containers, databases) The box's disk on its host; once archived, a compressed copy in storage on AWS Archived when the box is stopped, or 24 hours after its last use (up to 7 days if set); the archived disk is kept until 30 days after its last use sandbox_stop or "Shut down" in the app archives it; doing it again on the archived box deletes it
Files from sandbox_get and sandbox_pull Storage on AWS About 1 day Deleted automatically
Screenshots and recordings Storage on AWS Screenshots 30 days, recordings 7 days DELETE /v1/boxes/{id}/media, one box at a time
Frozen-box posters, review card images Storage on AWS Only the latest one per box Same as above
Drafts, architecture diagrams and schemas (every version) Pictures of drafts and architecture diagrams in storage on AWS; what the AI sent, a schema's tables included, in the control plane database Until the account is deleted; stopping a box or deleting its media leaves them Only by deleting the account
Build cache (sandbox_build) Storage on AWS At most 20 GB per account, oldest removed first DELETE /v1/build-cache, the whole account at once
Persistent folders (/persist/<name>) Storage on AWS The latest saved copy of each, until you delete it DELETE /v1/persist/{name}
Images published as versions Your account's image registry No limit DELETE /v1/versions/{id}, which also deletes the image when no other version uses it
Logs and source maps Log service Until you delete the log project DELETE /v1/projects/{id} (log.parallelsandbox.com)
Secrets Control plane database, encrypted Until you delete them Secrets in the app's settings, or DELETE /v1/secrets/{name}
An environment's service settings (environment variables) Control plane database, encrypted Until you delete them DELETE /v1/environments/{env}/services/{name}
Messages and activity records in the app Control plane database 7 days (a step that left a screenshot: 30 days) Deleted automatically

When you delete your account, its boxes are deleted, archived ones included, and all of the above is deleted within 30 days at the latest. The REST details are on the REST page.

Who can open a box's URL? Can I add a login or limit it by IP?

  • A box URL looks like https://<id>-<key>.box.parallelsandbox.com. The key is random, and a wrong one gets the same 404 as a box that does not exist; anyone with the full URL can open it, so treat it like a share link.
  • To limit where it can be opened from, give the account an IP allowlist: tell your AI "open box URLs only to our office's 203.0.113.0/24", and it calls PUT /v1/box-access. About 3 seconds later every box URL of the account accepts only those IPs; anything else gets 403 and does not wake a frozen box. There is one list per account, at most 50 entries, and only IPv4 is matched for now; to turn it off, ask for an empty list.
  • It suits teams with a company VPN or a fixed office IP. A colleague opening a review URL, or you testing on a phone over mobile data, must come from a listed IP (connect to the VPN first, say).
  • There is no extra login: a review URL has to work for a colleague straight away, without a ParallelSandbox account.
  • The takeover page and the app do not rely on the key in the URL: a takeover link is a one-time, expiring token from the control plane, and the app uses your sign-in.

Databases and test data

Is every box a fresh environment?

Yes. Every box starts from the same clean snapshot, and a database running in the box lives only as long as the box: the same box keeps it while frozen or archived, and it is gone once the box is deleted (see how long does a box stay?). There is no disk shared live across boxes like a Kubernetes PVC; for files that should carry over from one box to the next, the account has persistent folders: a box started with persist gets each named folder at /persist/<name>, saved when the box stops and restored into the next box that attaches it, one box at a time (sandbox_start).

How do my services' environment variables (DATABASE_URL and so on) get into a box?

Store them as an environment's service settings: import them from AWS ECS (with the SSM parameters and Secrets Manager values they reference), or upload a .env. A box started with that environment has /work/.sbx/env/<service>.env, and a changed service starts with it, configured exactly as on your dev. The settings are stored encrypted and the API returns only variable names; changed settings reach only boxes started afterwards.

Can I connect to my dev database directly?

Yes: an environment plus a connector, with the service settings from the previous answer. Note: when a changed service starts with your dev settings, its migrations and writes land in your dev database for real. To only read it (checking data, reconciling a ledger), run psbx-ro-psql <service> in the box: it connects with that service's database setting in read-only transactions and hides the connection string in its output.

I have a set of test data I want to keep using, without migrating and seeding every time.

Keep that database in your own network (for example a Postgres in your dev just for tests) and let boxes reach it through an environment's connector. The data and the migration state stay with you, and every box carries on from where the last one left it. This is the way to keep it for good: ParallelSandbox does not keep the databases inside boxes for you. The account's persistent folders do carry files from one box to the next, but a database writing in one is stopped each time the box freezes or stops, and has to be started again after a wake (sandbox_start).

I want a clean database every time.

Run psbx-testdb up <name> in the box: it starts a fresh Postgres 16 (or MySQL 8.0 with --mysql) and writes its DATABASE_URL to /work/.sbx/testdb/<name>.env; psbx-testdb reset <name> empties it again, and psbx-testdb gotest ./... gives every Go package a database of its own. Start other databases with your usual docker compose. For Redis, psbx-testdb up --redis. For an S3-compatible store, psbx-testdb up --s3 starts one (rclone serve s3, since MinIO no longer publishes its image or binaries: docker run minio/minio fails with pull access denied, and dl.min.io answers 410) and writes AWS_ENDPOINT_URL, the keys, AWS_REGION and S3_BUCKET to its .env.

In one line: what stays and what does not?

  • Does not stay: everything inside the box (code, containers, databases, /work) is gone once the box is deleted, 30 days after it is stopped or archived, except the account's persistent folders and what you pushed to a git remote.
  • Stays: what is in your own network (a database reached through the connector), the account's persistent folders (/persist/<name>, saved when a box stops and restored into the next box that attaches them), images published to the registry, the build cache, and the stored files in the table above, each with its own limit.

Secrets

Where are secrets stored, and how do they reach a box?

  • One list for the whole account, stored encrypted in the control plane. Not one set per box.
  • Nothing goes into a box by default. The AI names the ones it needs when it starts the box, the box receives them the moment it is claimed, and they become environment variables of every command; they disappear with the box.
  • A stored value cannot be read back: tool results, sandbox_status and platform logs only show names.
  • Inside the box a secret is an environment variable. When a command prints it, what comes back to your AI has it masked as **** (values of 8 characters or more), as are the secret-looking dev settings an environment puts in the box; files in the box, such as a log the program writes, still hold the real value, so do not fetch them to your AI if they may contain one.
  • Do not store ParallelSandbox's own API key as a secret; the box does not need it.

Is there a settings screen?

Yes: in app.parallelsandbox.com, the gear at the top right → Settings → Secrets. You can add, replace and delete them; it lists names and when each was last updated, and never shows a value. A value typed in the app never passes through your conversation with the AI, so it never reaches your AI provider; when the token is in your hands, use this. Your AI can also store one over REST (Secrets).

What if my program needs AWS permissions (S3, SQS)?

Do not store long-lived keys. Name an AWS role on the environment, and the box trades an OIDC token for temporary credentials that expire after an hour, the same way GitHub Actions connects to AWS (AWS permissions inside a box). ParallelSandbox holds no long-lived access to your AWS account.

Cost

  • A box is charged per minute from the moment it is ready; frozen boxes are free. It freezes after 10 minutes with no activity, so a box you forgot to stop does not keep burning credits.
  • Outbound traffic, logs and stored files are metered separately; environments and connectors are free. Rates are on Credits.

Example repos

Repo What it shows
example-compose-app A Node API and a Go worker wired together with compose; Playwright runs e2e in a real browser on the box's screen, with a recording, screenshots and a hand-over
example-web-with-logs A web page with the log SDK; error stacks restored with source maps; the write key brought into the box as a secret

Every tool call is on the example repos page. A full example with several services, a dev split between AWS and an office network, connectors, and using a changed service from another box is in team setup.