box docs
box runs the iOS builds, tests and screenshots of your coding agent on a real Mac, and Android on an emulator, from Linux, WSL or a Mac. Start by pasting one line into your agent; your first GitHub sign-in adds $10 of credit. Below: setup, sign-in, every command and what it costs
Install
The easiest way is to paste one line into your agent. It installs box and walks you through the rest
Set up box with https://xenoci.com/setup
To install it yourself on Linux (x86_64, arm64) or a Mac with Apple silicon, run this. On Windows, run it inside WSL. It checks the file against the server’s checksums and puts it at ~/.local/bin/box
curl -fsSL https://xenoci.com/install.sh | sh
Sign in
box signs you in with your personal GitHub account. It only learns who you are and gets no access to your repositories or organizations
box login
Open the link it prints, enter the code and approve. box status shows your account, balance, about how many iOS or Android build minutes it buys and the minutes used today. Your first sign-in with a GitHub account adds $10 (200 iOS build minutes) once
Connect your agent
Run it once per machine. Your agents then know about box in every project
box setup
box setup installs the box skill for Claude Code and Codex, adds a short box section to ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md and registers the MCP server for both. It writes nothing into your project. For Cursor, or to commit the notes for your team, run box setup --project in the repository. Your agent reads its own instructions at xenoci.com/setup
The MCP server offers these tools
buildtestscreenshotrundebugexecdescribefindtaptypeswipepress_buttonlookstopreport_problemreport_jobclaimsstatuslogsusagelogintopup
Build and test
From the root of an iOS project
box build --dry-run # lists what would be sent box build box test box test --only-testing AppTests/LoginTests box screenshot out.png
The log streams while the job runs and results land in .box/out/<job>/. A failed build prints each compile error as file:line:col with the nearby lines, using your local paths. box build --device-build makes an unsigned Release build for a device, saved as device-build.zip
A .box/setup script at the project root runs on the build machine before box build, box test and box run, once until its contents change. If it fails, the build does not start. Put framework downloads and .xcconfig copies there; it is not a place for secrets, and .env is never uploaded. box build --dry-run says whether it would run
Each job prints one line per step, from your source to the results
- Upload box checks every file and sends only the new or changed ones.
.gitignoreis respected and.envis never sentbox: upload: 70 files checked, 3 new (12 KB), .gitignore respected, .env never sent - Mac The job waits for a free Mac (not billed), which unpacks your source next to the project's previous build
box: machine: source unpacked - Build xcodebuild compiles only what changed since that build
box: build: done in 41s - Test Your tests run on a simulator and are counted
box: tests 3 passed, 0 failed - Results Logs, the result bundle and screenshots come back to
.box/out/<job>/, and the last line says what it costbox: bj_… succeeded, 120s billed, $0.10
The log streams while the job runs and results land in .box/out/<job>/. A failed build prints each compile error as file:line:col with the nearby lines, using your local paths. box build --device-build makes an unsigned Release build for a device, saved as device-build.zip
Test before every push
Run your tests on a Mac before code leaves your machine, so a broken push never starts a CI run. From the git repository of an iOS project
box setup --pre-push # adds .git/hooks/pre-push git push # runs box test first git push --no-verify # skip it once box setup --pre-push --off # remove the hook
The hook runs box test and stops the push when the tests fail. If box can’t run (no balance, not signed in, an outage), the push goes on with the message. A push that only deletes branches runs nothing. It is written only in this repository’s .git/hooks, never in your git config, and an existing pre-push hook that isn’t box’s is left alone. With husky or lefthook, add box test to their pre-push hook instead
Drive the app
box run builds the app and keeps it open on a simulator. box ui acts on it until the next build, test, run or stop
box run box ui describe # one element per line with a tap point box ui tap --label "Sign in" box ui type "hello" box ui swipe 200 600 200 200 box ui button home box ui screen now.png box stop
box ui tap also takes --id ID or a point X Y. box ui type works in Korean and any other language
Android
Add --platform android to a job command to build, test, screenshot or run an Android app, for example box build --platform android
- Every job command takes
--platform iosor--platform android, and so does every MCP job tool (platform) - Without it, box looks at the project folder: an Xcode project,
project.yml,Package.swiftor anios/folder means iOS;settings.gradle,gradlewor anandroid/folder means Android - When both are there (Flutter, React Native, Expo), box picks neither and exits 2 asking for
--platform, so no job runs on the platform you did not mean - To fix the choice for a project, put
platform = "android"(or"ios") in.box.toml.--platformstill wins - Android has one size: 4 vCPU / 16 GB. It runs on a Linux Android emulator, and the emulator boot time is not billed
--xcodeis for iOS only; with--platform androidit exits 2box debugandbox build --device-buildare iOS only and exit 2 on Android.box testruns every unit test (GradletestDebugUnitTest), so--only-testingis not used- The debug APK is saved as
.box/out/<job>/app-debug.apk. The Gradle cache stays between jobs of the same project, so the next build is incremental
box build --platform android # app-debug.apk in .box/out/<job>/ box test --platform android box screenshot --platform android out.png box run --platform android box ui tap --label "Sign in" # also describe, type, swipe, button home box exec --platform android -- ./gradlew tasks box purge --platform android --yes
box ui type takes single-line ASCII text on Android. Run from the folder with settings.gradle or gradlew, or the Flutter, React Native or Expo project root
Android costs $0.02 per minute on the one Android size (4 vCPU / 16 GB), from the same US dollar balance as the Mac. The emulator boot time is free. The current rate is at xenoci.com/api/v1/pricing, and every job prints its rate when it is submitted
More commands
box debug --break File.swift:42 | Launch the app under LLDB on the Mac and print the stack and variables at each breakpoint stop. Up to 10 --break, --print VAR (default: all locals), --tap-label or --tap-id to reach code behind a button, --stops up to 20 |
box web <url> | Open the page in Safari on a Mac and in Safari on an iPhone simulator: safari-mac.png, safari-ios.png and web.json with page errors and failed requests. --serve "npm run dev" --port 3000 starts your dev server on the Mac first (node_modules installed in the same job). --width, --dark (iPhone), --wait-for, --device |
box devices | The simulators the Mac has (name, runtime, udid) or, with --platform android, the emulator profiles. --device "<name or udid>" on test, run and screenshot picks one (default iPhone 17) |
box exec -- <command> | Run one shell command in the project folder on the Mac |
box logs | Follow the last job again, or a job by id |
box stop | Stop a job or the open app session |
box cancel | Cancel the job running now. The command that followed it exits 130 |
box purge --yes | Empty this project’s workspace on the Mac |
box usage --csv | Save your jobs and what each one cost as a CSV, with --from and --to (KST dates, up to 92 days, the last 3 months) |
box balance --csv | Save every balance change (top-ups, the signup credit, job charges) with the balance after each, same dates |
box topup | Open the wallet top-up page |
box report bj_… --reason "..." | Report a job that failed on our side (the Mac, a time limit, a lost connection) or was charged wrong. Also box bug. box claims shows refunded or declined with the reason |
box feedback "..." | Send a note about box to the team, with your last job attached |
--json | One JSON event per line, ending with a result that has billed_seconds |
Exit codes
| 0 | Done |
| 1 | The build or tests failed. Fix the code and run again |
| 2 | Wrong usage or a problem on your machine |
| 3 | The account or box itself, like signing in or the balance. The message says which. Don’t retry it in a loop |
What gets sent
- Only the project folder, and only files that changed since the last time
- Anything
.gitignoreleaves out is not sent, and.envfiles never are box build --dry-runlists exactly what would go- A workspace that goes unused for 7 days is deleted
Pricing
- $0.05 per minute of iOS build and test time, prepaid in US dollars. $10 of credit when you first sign up
- Android: $0.02 per minute on the one Android size (4 vCPU / 16 GB), from the same US dollar balance as the Mac. The emulator boot time is free. The current rate is at xenoci.com/api/v1/pricing, and every job prints its rate when it is submitted. Rounding and everything below work the same way
- Each job pays for every started minute it ran on the Mac, rounded up: 1 to 60 s is one minute ($0.05), 61 to 120 s two ($0.10), so 90 s = 2 minutes = $0.10. Upload, queue and Mac start are not counted
- No daily usage limit
- Jobs that fail because of us cost nothing
- The workspace and build cache are included
box usage --csvandbox balance --csvsave your jobs and balance changes as CSV files that open in Excel. When the balance runs out, box shows the top-up link
Not available yet
- Windows without WSL
- Picking an Xcode or iOS version
- Physical iPhones (simulators only)
- Team or organization accounts