Batch jobs and cron schedules with one API call.
Run evals, test suites, data pulls and reports on their own sandboxes, many side by side. Each job runs to the end even if a connection drops, never runs twice, and keeps its output for 7 days.
- Sandbox ready
- Ran once
- Output kept
- Cleaned up
Send a command. Get the result.
A job runs one command to the end on its own sandbox, and keeps what it printed. Start one, or a hundred side by side.
- 01
Send the command
One request: the image or sandbox to run on, the command and any secrets. You get a run ID back straight away.
- 02
It runs to the end
Each job gets its own sandbox. If a connection drops, the job reattaches to the same process; it never runs twice. A deadline stops it if it hangs.
- 03
Read the result
Exit code, stdout and stderr, kept for 7 days. The sandbox is deleted afterwards, or kept if you want to look inside.
Each case on its own sandbox. One failing case does not touch the others.
Anything you would type into a shell.
Run a model against your test set, one case per job, and compare the exit codes.
Run the full suite on a clean machine, outside your laptop and your CI minutes.
Fetch, transform and load in a script that finishes even if you close the terminal.
Build the weekly numbers on a schedule and read them in the morning.
- New or existing sandboxa fresh one from an image, template or snapshot, or one you already have
- Exit codes you can trusta non-zero exit is a completed run with its code; failed means it could not finish
- Timeouts and deadlinesfor the command and for the whole run, with clean-up when one hits
- Keep or deletethe sandbox is deleted when the run ends, or kept so you can open a shell on it
- Secrets, masked in outputnamed secret sets attached to the run, hidden in what it prints
- Setup in the same requesta pre-run script, environment variables, working directory and stdin
Lose the connection, not the run.
If one of our workers or a connection is lost, the command keeps running in its sandbox and the job reattaches. Retries never start it a second time.
Admitted
Limits checked and secret values pinned for this run.
Sandbox ready
A new one is created, or an existing one is woken.
Command runs once
A lost worker or connection detaches; the job reattaches to the same process.
Output kept
Exit code, stdout and stderr, flagged when partial or truncated.
Cleaned up
The new sandbox is deleted, or kept if you asked for that.
Debug the one that failed, not all of them. Every run keeps its own output, in the API and in the console's Jobs view.
Put it on a schedule.
Give a job a cron expression and a time zone. Each tick starts a run with the same durability, limits and output as one you start by hand.
- Pause a schedule, or trigger a run now without waiting
- Update a schedule or delete it with one call
- See recent runs and the next run time for each schedule
Start the way you work.
Jobs live in the REST API at api.bonya.ai, so any language or CI system can start one. The console shows every run and schedule.
Let your coding agent write the request.
Give it this prompt and your API key.
Sandbox rates. Nothing extra for jobs.
A job is billed as the sandbox it runs on, per second, for as long as it runs. A job's new sandbox stops costing anything once it is deleted.
What is a job?
One command or script, run to the end on a sandbox, with its exit code and output kept. You start it with one API call or on a cron schedule, and you read the result when it is done.
When should I use a job instead of running a command on a sandbox?
Use a sandbox command when an agent or a person is working interactively and waits for the answer. Use a job when the command must finish on its own: it survives lost connections, has a deadline, keeps its output and cleans up after itself.
What happens if your side fails mid-run?
The command keeps running inside its sandbox. When the worker or connection comes back, the job reattaches to the same process. Retries never start the command a second time, and an Idempotency-Key makes your own retries of the create call safe too.
How long can a job run, and how many at once?
Limits are per organization. The defaults are 20 running jobs at once, 600 seconds per command and 3600 seconds per run. Higher limits come with your plan or on request.
Where does the output go?
Each run keeps its exit code and up to 256 KiB of stdout and stderr for 7 days, readable from the API and the console. If output was cut off or partly lost, the run says so.
Can I start jobs from the CLI or an SDK?
Yes. Use bonya job run and bonya schedule create, the Python, TypeScript or Go SDK, the MCP server, the REST API or the console. See all developer tools.
Run it tonight. Read it in the morning.
Durable jobs and cron schedules on the same account as your sandboxes.