Docs
Give each agent a small computer of its own. Here is how to start one, use it and put it away.
Quickstart
First create an account. New accounts start with free credit, and no card is needed.
-
Install the command-line tool
On macOS and Linux. On Windows, run it inside WSL.
Terminal$ curl -fsSL https://bruny.dev/install | sh -
Sign in
It shows a six-digit code and opens the dashboard. Enter the code there, copy the API key the page shows, and paste it into the terminal.
Terminal$ bruny login -
Create a machine
It waits until the machine is running.
Terminal$ bruny create my-box -
Get a shell, run one command, or set up an SSH host shortcut
bruny ssh-configlets plainssh my-box,scp,rsyncand VS Code or Cursor Remote-SSH reach your machines. See Use with OpenSSH and VS Code.Terminal$ bruny ssh my-box $ bruny exec my-box -- uname -a $ bruny ssh-config && ssh my-box
-
Copy a folder in, and results back out
Terminal$ bruny push my-box ./my-app $ bruny pull my-box my-app/dist
-
Pause it when you are done
A paused machine keeps its memory and files and is not charged.
bruny resume my-boxcarries on where it was.Terminal$ bruny pause my-box
-
Create a machine
On Machines, choose Create machine, pick a region and size, and create it.
-
Open its desktop or terminal
Desktop opens the machine's Linux desktop in a browser tab. Terminal opens the machine's terminal session, which keeps running when you close it. Neither needs a key or a port.
-
Sign in your coding agents once
Under Agents, save your Claude Code, Codex, pi or Antigravity CLI sign-in. New machines start with them already signed in.
-
Pause it when you are done
Pause saves the machine and stops the charges. Resume picks up where it left off.
The dashboard
Everything the command line does, you can do at app.bruny.dev:
- Machines: create, rename, pause, resume and delete them, and watch each one's CPU, memory, disk and network.
- Desktop and Terminal: use a machine from the browser. The terminal picks up where you left it (see Terminal sessions).
- Billing: your balance, what is running now, and usage by day and by machine.
- Activity: everything that happened on the account, and who did it.
On a phone the dashboard has three tabs at the bottom: Home for your machines, Terminal with a tab for each running machine and keys for Esc, Tab, Ctrl and the arrows, and Usage for your balance and account.
Machines
A machine is a small Linux computer of its own: Debian 13 with a desktop and a disk of its own. Your agent works there, not on your laptop.
When you create one you choose:
- Region
- Where it runs, such as Kuala Lumpur or Singapore. A machine stays in its region.
- Size
- Its memory and disk. The size is fixed when the machine is made.
- Image
- What is installed on it to start with.
- Name
- Optional. Without one you get a name like
calm-otter. You can rename it later.
bruny create with no options takes the first size, region and image available. Give it a wrong value and it lists the choices.
A machine is named on the command line by its name, its ID, or the start of its ID.
Terminal sessions
Each machine has one terminal session that keeps running when no one is looking. Start a build or an agent, close the tab, and open the terminal again later, on another computer or on your phone: the same shell is there, with what it printed while you were away.
- The dashboard's Terminal and
bruny attachboth join it. Open it in two places and both show the same screen; either can type. - Closing the tab, or typing
~.at the start of a line inbruny attach, leaves it running. - It ends when you type
exit, choose End session in the terminal's top bar (which stops everything started in it), or restart the machine. The next visit starts a new one. - Pausing keeps it, as it keeps everything else in memory.
- On joining, you get the last 256 KB of what it printed, a few thousand lines.
bruny ssh is different: a fresh shell of its own each time, ended when you leave, as with ssh.
Pause and resume
Pause saves the machine's memory and disk and shuts it off. Open programs, files and shell history are all kept, and a paused machine is not charged.
Resume carries on exactly where it was paused.
Auto-pause and auto-wake
Bruny pauses a machine by itself once it has been idle for its idle time, 30 minutes to begin with. A machine is idle when no coding agent is working in it, nothing passes over its terminal, SSH or public links, no one is typing or moving the pointer in its desktop, and its CPU has no load. A long build or an agent at work keeps it running; an open but silent terminal does not.
With auto-wake on, as it is to begin with, a paused machine is resumed when it is needed: bruny ssh, exec, push and pull wake it first and wait a few seconds for it, as do plain ssh and VS Code once set up, and so does a visit to one of its public links. Whoever has a machine's link can wake it that way, so turn auto-wake off for a machine that should stay paused.
Settings in the dashboard has the defaults for your machines: an idle time of 10 to 60 minutes, or never, and whether they wake. Each machine can have its own on its page, or with bruny set. The Trial plan pauses after 30 minutes and cannot change that. In an organization the owner sets the defaults and each member chooses for their own machines.
Delete removes the machine and its disk for good. It cannot be undone.
Lock, on the machine's page, keeps a machine from being deleted by accident. A locked machine cannot be deleted from the dashboard, the command line or the API until you Unlock it there. You can still pause, resume and rename it.
If your credit runs out, Bruny pauses your running machines rather than deleting them. Add credit and resume them.
Coding agents
Claude Code, Codex, pi and the Antigravity CLI (agy) come installed. Save your sign-in for each under Agents once (an API key, a Claude subscription through Sign in with Claude, a ChatGPT sign-in for Codex, or a Google account through Sign in with Google for the Antigravity CLI), and every new machine starts with them signed in.
To make a machine without them, use bruny create --no-agent-logins, or untick the option in the dashboard.
Bonus tokens
Your account comes with complimentary AI tokens, pre-configured for pi: open a new machine's terminal and run pi. Choose among the included models with /model; they are listed under bruny. If you saved a pi sign-in of your own, pi starts on your providers and the included models are there as well.
A Trial account gets its tokens once. On a plan, they refill every month on your billing date. Tokens going in and coming out both count, and everyone in the account shares them. Agents shows how many are left. When they run out, pi's requests are refused; your own provider keys keep working. Machines created before your account had tokens are not set up for them.
Starter packages
A starter package is a set of tools for one kind of work: Laravel Developer, TypeScript/JavaScript, Java Developer, Motion Graphic or Marketing. Pick one under Starter packages and each machine you create from then on installs it as soon as it runs, in a minute or a few. The install happens in the machine's terminal, so opening the terminal or bruny attach shows it as it goes. You can use the machine meanwhile.
To pick another package for one machine, choose it when you create the machine, or use bruny create --starter java (default, laravel, typescript, java, motion or marketing). If an install fails the machine still works; run bash ~/.bruny/starter/install.sh in it to try again.
Then run your agent on the machine with every approval off. If it breaks something, it breaks its own computer. Start it in the machine's terminal session and it keeps working after you leave: type ~. to go, and bruny attach my-box (or the dashboard's Terminal) to check on it.
$ bruny attach my-box $ claude --dangerously-skip-permissions
API keys
The command line and the API sign in with an API key. bruny login makes one for the computer it runs on, named after it. For scripts and the API, make one under API keys. A key is shown once, so copy it then. If you belong to an organization, a key works in one account, your personal one or the organization: bruny login asks which, and a key made under API keys is for the account the dashboard is switched to.
A key works the command line and the API: your machines, billing and activity. Making and revoking keys is done only in the dashboard. Revoke a key in the dashboard and it stops working at once, everywhere. Use one key per laptop or CI job, so you can revoke one without the others.
Credit and billing
- A running machine is charged by the minute, at its size's price. Paused machines are not charged.
- Charges come out of your credit. New accounts start with free credit.
- A machine starts only when your balance covers its first hour.
- If the balance runs out, running machines are paused, with everything kept.
Your balance, this month's total and what is running now are on Billing, current to the second.
Command line
The tool is called bruny. Install it with curl -fsSL https://bruny.dev/install | sh. It goes to /usr/local/bin if it can, otherwise ~/.local/bin. bruny update replaces it with the newest version when there is one.
- login [--api-key KEY] [--no-browser]
- Shows a sign-in code and opens the dashboard, where entering the code gives you an API key to paste back. It checks the key and saves it.
--no-browserprints the link instead of opening it. With--api-key, or a key on standard input, it only checks and saves that key. - logout
- Forgets the saved key. Revoke it in the dashboard to stop it working everywhere.
- whoami
- The account the key signs in to.
- list, ls [--json]
- Your machines, newest first.
- create [NAME]
- Creates a machine and waits until it runs.
--sizetakestiny,small,mediumorlarge(the first available size of that class, such assmall-6g) and defaults to small. Other options:--region,--image,--starter,--no-agent-logins,--no-wait,--json. - pause NAME
- Saves the machine and stops it. Also
stop. - resume NAME
- Carries on where it was paused. Also
start. - set NAME
- Shows when the machine is paused for being idle and whether it wakes by itself.
--idle 20(10 to 60 minutes,neverordefault) and--auto-wake on(offordefault) change them;defaultgoes back to the account's default. - delete NAME [--yes]
- Deletes the machine and its disk. Asks you to type the name unless
--yes. Alsorm. A machine locked in the dashboard is not deleted: unlock it there first. - ssh NAME
- A fresh login shell on the machine, ended when you leave. It goes through Bruny, so no SSH key or open port is needed. To use plain
sshand the tools built on it, see Use with OpenSSH and VS Code. - ssh-config [NAME…]
- Sets up plain OpenSSH for your machines, so
ssh my-boxworks.--remove NAMEtakes a machine out again. - attach NAME
- Joins the machine's terminal session, the one the dashboard shows, which keeps running. Type
~.at the start of a line to leave it running. - exec NAME -- COMMAND
- Runs one command and exits with its status. A paused machine with auto-wake on is resumed first, as it is by
ssh,pushandpull;--no-wakeleaves it paused and fails instead. Piped input reaches it:bruny exec my-box -- 'cat > f' < f. - push NAME PATH [TO]
- Copies a folder or file from your computer into the machine.
bruny push my-box ./my-appmakes~/my-appon the machine match./my-app.TOis the folder on the machine to put it in; without it, the home folder. - pull NAME PATH [TO]
- Copies a folder or file from the machine to your computer.
bruny pull my-box my-app/distmakes./distmatch~/my-app/diston the machine.TOis the folder on your computer to put it in; without it, the current one. - host NAME PORT
- Gives a port of the machine a public HTTPS link, such as
https://calm-otter-7k2q.bruny.link?_token=…, and prints it. Whatever listens on that port in the machine answers there, for HTTP and WebSockets; start your app first. The link opens only with its token, so share the whole link and treat it like a password. The same port gets the same link back.bruny host listshows your links, as does Links in the dashboard, andbruny host rm NAME PORTremoves one. A machine can have 10. Inside the machine,host 3000does the same.
Copying files
push and pull send only what differs: a file that is missing on the other side, or whose size, modification time or permissions differ. Run the same command again after a change and only the changed files travel. If a copy is interrupted, run it again and it carries on.
- A path on the machine starts at the home folder unless it begins with
/.my-app/distand~/my-app/distmean the same. - A trailing slash copies what is in the folder, not the folder itself:
bruny pull my-box my-app/dist/puts the files straight into the current folder. - Files that are only at the destination are left alone. Add
--deleteto remove them. --exclude PATTERNleaves out what matches, on both sides, and can be repeated:--exclude node_modules --exclude '*.log'.--dry-runshows what would be copied and deleted without doing it.- Symbolic links are copied as links. Permissions and modification times are kept.
In scripts and CI
Set BRUNY_API_KEY instead of running login. create, pause, resume and delete wait until they finish. Add --no-wait to return at once.
Use with OpenSSH and VS Code
Run this once, and again after you create or recreate a machine:
$ bruny ssh-config $ ssh my-box
Then plain ssh my-box works, and so do scp, rsync, port forwarding (ssh -L 3000:localhost:3000 my-box) and Remote-SSH in VS Code or Cursor: pick my-box from the list of hosts. The connection goes through Bruny, as bruny ssh does, so no port of the machine is open to the internet.
- Each machine gets an entry in
~/.bruny/ssh_configthat connects withbruny ssh --stdio. Your~/.ssh/configonly gains the lineInclude ~/.bruny/ssh_configat the top, and a copy of it is saved first as~/.ssh/config.bruny-backup. - It makes an SSH key,
~/.bruny/id_ed25519, and adds it to each running machine. A paused machine gets its entry, and its key the first time yousshto it, which wakes it and waits the few seconds that takes. - It saves each machine's host key, so ssh does not ask whether to trust it.
bruny ssh-configwith no name updates every machine and removes the ones you have deleted.bruny ssh-config --remove my-boxremoves one.
API
The API is at https://app.bruny.dev/v1 and speaks JSON. Send your API key as a bearer token:
$ curl https://app.bruny.dev/v1/vms \
-H "Authorization: Bearer $BRUNY_API_KEY"
| Request | What it does |
|---|---|
GET /v1/regionsGET /v1/plansGET /v1/images | Where machines can run, their sizes and images. No key needed. |
GET /v1/vms | Your machines. |
POST /v1/vms | Create one: {"region", "plan", "image", "name"?}. Answers at once; the machine starts in the background. |
GET /v1/vms/{id} | One machine and its status. |
PATCH /v1/vms/{id} | Rename it: {"name"}. Lock or unlock it: {"locked": true} or false. Its own idle time and auto-wake: {"idle_pause_minutes": 20, "auto_wake": false}, where minutes are 0 (never) or 10 to 60 and null goes back to the account's default. |
DELETE /v1/vms/{id} | Delete it and its disk. A locked machine is refused with 409 machine_locked. |
POST /v1/vms/{id}/actions | {"action": "pause"}, "resume" or "reboot". |
POST /v1/vms/{id}/wake | Resumes the machine if it is paused and auto-wake is on for it, and answers {"vm", "operation"}: wait on the operation, which is null when the machine already runs. 409 auto_wake_off when it is off. |
GET /v1/settings, PATCH | The account's defaults for auto-pause and auto-wake: {"idle_pause_minutes", "auto_wake"}. Only the account's owner changes them, and the idle time not on the Trial plan. |
GET /v1/vms/{id}/metrics | CPU, memory, disk and network over the last 15 minutes. |
GET /v1/operations/{id} | How a create, pause, resume or delete is going. ?wait=20 holds the answer until it has finished or that many seconds (30 at most) have passed, so you need not ask again and again. |
GET /v1/events | The account's activity. ?vm={id} for one machine. |
Create a machine
$ curl https://app.bruny.dev/v1/vms \
-H "Authorization: Bearer $BRUNY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"region": "sgp1", "plan": "default", "image": "debian-13-desktop", "name": "my-box"}'
Errors come back as {"error": {"code", "message"}} with a matching HTTP status. The message is written to be shown to a person.
Help
Stuck, or found something wrong? Write to help@bruny.dev and an engineer will answer.