- LLDB breakpoints
box debugstops at a line you name and prints the stack and the variables. - Live view in your browserWatch the simulator while the agent works, and tap in it yourself.
- Video, dark mode, languagesOne option records the run, turns on dark mode or changes the app language.
- Pay by the started minute$0.05 a Mac minute, $0 when the failure is ours, and a $300 cap on what one account holds.
Agent runbook
If you are the agent that was handed this page, work through the six steps from top to bottom and close with the report
in step 6. The pasted line is the user's consent to install. The installer runs without sudo, writes nothing
outside ~/.local/bin/box and ~/.config/box/, and verifies the download against the server's
SHA256SUMS.
- Secrets stay out of the conversation and out of the repository. Do not request a token, a code or a password, and do not save one in the project.
- Money is the user's call. Do not top up and do not pay for them.
1 Get the CLI
Runs on Linux (x86_64 and arm64), WSL, and macOS on Apple silicon. Native Windows and Intel Macs are not supported.
command -v box >/dev/null 2>&1 || curl -fsSL https://xenoci.com/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
box --version
The last line prints the version that was installed.
2 Sign the user in with GitHub
Run box status. If the output has a login line and a balance, this machine is signed in
already and you can move on to step 3.
If it does not, run box login --no-browser. It prints a GitHub address and a one-time code and returns at
once. Send the user both in a single message, then wait for their reply. On GitHub they enter the code and approve. That
approval tells box which account they are and nothing more: no repository or organization access. A first sign-in also
adds $10 of credit.
After the user confirms, run box login. It answers box: signed in as <login>. Finish with
box status, which should exit 0 and list the login and the balance.
- Cloud agents. Cursor background agents, Codex cloud and Claude Code on the web begin every session
signed out. The user can fix that once, in the settings of the agent's environment: store a
BOX_TOKENsecret there and add step 1's install command to the setup script. Leave the token value out of the conversation. - A balance of $0.00. When
box statusshowsbalance $0.00, runbox topup --print, pass the address it prints to the user and wait.
3 Prepare the project
Go to the top folder of the iOS project, the one that holds the .xcodeproj, .xcworkspace
or project.yml.
box setup
This writes a short, marked box section into CLAUDE.md and AGENTS.md and leaves their existing
text alone. It also installs the box skill for Codex and Claude Code and a rule file for Cursor. Then add
.box/ to .gitignore, because job results are saved there, and ask the user whether to commit
CLAUDE.md, AGENTS.md and the skill files.
4 Add the MCP server
Pick the line for the agent you are running as.
claude mcp add box -- box mcp # Claude Code
codex mcp add box -- box mcp # Codex
The server provides these tools:
build test screenshot run debug exec describe tap type swipe press_button look stop report_problem status logs usage topup
They load the next time the agent starts. For the rest of this session, call the CLI.
5 Run a first build
box build --dry-run # list the files a build would upload, and stop there
box build # compile on the Mac
box test
box screenshot out.png
box run --detach # start the app, print a job id and a live view link
box ui describe # one line per element on screen, each with a tap point
box ui tap --label "Sign in"
box stop
Begin with the dry run and one box build. The lines after that are what an agent usually needs next.
6 Report to the user
End with four facts: box is installed, the GitHub login that is signed in, the balance from
box status, and the job id and result of the first build.
Debug, watch and record
Breakpoints with LLDB
box debug --break File.swift:42 --print count starts the app under LLDB on the Mac. At every stop it prints
the stack and the variables.
- Up to 10
--breakpoints, each afile:lineor a function name. --stopssets how many stops to report, 20 at most.--tap-labelor--tap-idpresses a button first, for code that only runs after a tap.- Over MCP it is the
debugtool.
$ box debug --break BoxDemoApp.swift:22 --tap-id add
debug: attached to com.xenoci.box.BoxDemo
breakpoint 1: BoxDemoApp.swift:22
== stop 1: thread 1, breakpoint 1.1
#0 ContentView.add(_:) at BoxDemoApp.swift:22
#1 closure #2 in closure #1 in ContentView.body.getter at BoxDemoApp.swift:15
variables:
before (Swift.Int) = 0
step (Swift.Int) = 3
label (Swift.String) = "added 3"
box: bj_fxXzCejnrvbFLA5B succeeded, 180s billed
A live view of the simulator
box run compiles the app and boots it in a simulator that stays up afterwards. An agent should always pass
--detach. Without it the command stays attached and streams the log until the session is over. With it the
command returns a job id and a live view link.
Pass that link to the user. It opens only for their GitHub account, and on the page they can tap, swipe and type in the app.
The agent drives the same session with box ui: describe, screen out.png,
tap --id, tap --label, tap X Y, swipe, type and
button home. The MCP tools do the same.
A session closes in one of four ways: box stop, another build, test, run or debug of the same project,
10 minutes with no change on screen, or 30 minutes in total.
Video, dark mode and languages
box screenshot --record out.png takes the screenshot and also saves the run as screen.mp4.
--dark turns on dark mode and --locale ko_KR sets the language. ja, ar
and the rest work the same way, and ar and he lay the app out right to left. Both options work
with screenshot, run and ui. The language only changes when the app ships it.
Pricing
$0.05 per Mac minute, every started minute. Prepaid in US dollars, with no subscription and no daily limit.
| Rounding | Each job is rounded up to the minute. 1 to 60 seconds on the Mac is one minute ($0.05), 61 to 120 seconds is two ($0.10). |
|---|---|
| Free | Uploading, time in the queue and starting the Mac. |
| Failure on our side | $0 for that job. |
| Sign-up credit | $10, once per account. That is 200 minutes, to use within 14 days. |
| Balance cap | One account holds $300 at most. |
box status prints what is left. box usage --csv lists every job and
box balance --csv every balance change. box topup opens the top-up page.
Platform support
| Native iOS | Xcode projects and workspaces. Swift, SwiftUI, UIKit and Objective-C. Swift Package Manager and XcodeGen. |
|---|---|
| With a setup command | CocoaPods, Tuist, fastlane, Flutter, React Native and Expo. Run the tool's own setup through box exec before building. Each of these was built and launched on a simulator. |
| Targets | The iOS simulator on Xcode 27.2, the one version installed, and unsigned builds for real iPhones (build --device-build). |
| Not yet | Native Windows, Intel Macs, choosing the Xcode or iOS version, physical iPhones, signing or TestFlight upload done for you, Kotlin Multiplatform, Capacitor, .NET MAUI, and team or organization accounts. |
Commands
Jobs and output
box logs | Follows the last job again. |
|---|---|
box cancel | Stops the last job. |
box jobs | Lists recent jobs. |
box test --only-testing Target/Class/test | Runs only the tests you name. |
--json | Prints one JSON event per line. The last one is a result with billed_seconds. |
Exit codes
0 | Success. |
|---|---|
1 | A compile error or a failing test. Every error comes as file:line:col with your local path and the lines around it. Fix the code and run the command again. |
2 | The command was called the wrong way, or the local machine is at fault. |
3 | The account or box itself: signed out, an empty balance or a Mac fault. The message names the cause. Tell the user instead of retrying. |
130 | The job was cancelled. |
Worktrees and project names
The Mac keeps one code copy and one build cache per project name. The name is the folder name unless you pass
--project NAME, so two git worktrees do not overwrite each other.
Builds for a real iPhone
box build --device-build compiles a Release build and leaves it unsigned. You get
device-build.zip in .box/out/<job>/. Signing and uploading happen on your own machine, so
signing keys stay off box. Over MCP, the build tool takes device_build: true.
Steps that run on the Mac
A project.yml makes box run xcodegen generate by itself. For any other step, such as
pod install, flutter build ios or a code generator, use
box exec -- <command>. It runs in the project folder on the Mac, and whatever it produces is still
there for the next build.
Code and data
A job syncs your project folder to a Mac and builds it there.
| Uploaded | The project folder, minus whatever .gitignore and .boxignore exclude. After the first sync, only files whose contents changed. |
|---|---|
| Never uploaded | .env files (.env.example is uploaded), .git, .box, node_modules, Pods, .build and DerivedData. |
| Check first | box build --dry-run prints every file a build would upload. |
| Kept on the Mac | The code copy and its build cache, between jobs, so later builds start warm. |
| Deleted | A project idle for 7 days. box purge --yes deletes this project's workspace on the Mac immediately. Neither one changes the files on your machine. |
| Returned to you | Logs, screenshots, videos and zips, in .box/out/<job>/. We keep job logs and results for 7 days. |
Failure reports
When a command fails, the CLI sends the box team a short report: the command, the exit code, step timings, the box version, the OS and CPU, our error code and message, and the job id. Paths, addresses, tokens and e-mail addresses are stripped from the message before it leaves. Your code, file contents and environment values are never part of it.
To switch it off, run box telemetry off or set BOX_TELEMETRY=0 or
DO_NOT_TRACK=1.
Contact
Run box feedback "what went wrong". The message goes to the people who run box, with your last job
attached. MCP agents call report_problem instead. You can also write to
play@xenoci.com.
Docs for people are at xenoci.com/docs, and service status is at xenoci.com/status.