box

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

  1. Upload box checks every file and sends only the new or changed ones. .gitignore is respected and .env is never sent
    box: upload: 70 files checked, 3 new (12 KB), .gitignore respected, .env never sent
  2. 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
  3. Build xcodebuild compiles only what changed since that build
    box: build: done in 41s
  4. Test Your tests run on a simulator and are counted
    box: tests 3 passed, 0 failed
  5. Results Logs, the result bundle and screenshots come back to .box/out/<job>/, and the last line says what it cost
    box: 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

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:42Launch 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 devicesThe 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 logsFollow the last job again, or a job by id
box stopStop a job or the open app session
box cancelCancel the job running now. The command that followed it exits 130
box purge --yesEmpty this project’s workspace on the Mac
box usage --csvSave 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 --csvSave every balance change (top-ups, the signup credit, job charges) with the balance after each, same dates
box topupOpen 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
--jsonOne JSON event per line, ending with a result that has billed_seconds

Exit codes

0Done
1The build or tests failed. Fix the code and run again
2Wrong usage or a problem on your machine
3The account or box itself, like signing in or the balance. The message says which. Don’t retry it in a loop

What gets sent

Pricing

Not available yet