# BusBar: how-to

This page is for you and for your coding agent. If you are an agent reading
it, the section "Rules for agents" applies to you.

BusBar hosts your apps for your AI agent. You sign in once; your agent
uploads, runs and removes apps through BusBar's tools, as you, with exactly
your access. Every app is private until you open it.

- Landing page: https://mybusbar.com/
- Sign in and sign up: https://auth.mybusbar.com
- Your apps, in a browser: https://app.mybusbar.com/
- MCP endpoint, for your agent: https://app.mybusbar.com/mcp

## 1. Get an account

BusBar is invitation only.

1. Go to https://auth.mybusbar.com/if/flow/busbar-enrollment/ and sign up with the email
   address you were invited with.
2. Open the confirmation email from BusBar and follow its link.
3. Choose a password (12 characters or more).

If your address is refused, it is not on the invitation list. Ask the person
who invited you.

Forgot your password: use "Forgot password?" on the sign-in page.

## 2. Connect your agent

These steps are for Claude Code. In a terminal:

```
curl -fsSL https://app.mybusbar.com/install | sh
```

The script adds BusBar to Claude Code and writes one skill file. It holds no
secret and asks for none. You can read it first at https://app.mybusbar.com/install.

Then, inside Claude Code, run `/mcp`, choose `busbar` and authenticate. A
browser opens on BusBar's sign-in page. Sign in with the account from step 1.

Check it: ask your agent "Who am I on BusBar?". It tells you your username
and your workspace. A workspace is where your apps live. You have a personal
one, created on this first call.

## 3. Host your first app

Ask your agent, from the folder of your project:

> Host this on BusBar.

Your agent uploads what you built, runs it, waits until it is ready, and
gives you its address and who can open it. You do not need an account
anywhere else.

There are two kinds of upload. Your agent picks one; you can also say which.

A site:

- is a folder of files with an `index.html`;
- BusBar serves the files; you do not need Docker;
- is at most 256 MiB;
- suits pages, documentation and a front end that is only files.

An image:

- is a container image you built for `linux/amd64`, so you need Docker;
- BusBar runs your server;
- is at most 1 GiB;
- suits anything that runs its own process.

Each upload has a name. Uploading again under the same name makes a new
version, and deploying again runs the new version.

## 4. Who can open your app

A new app is private. Only people who can use its workspace open it, after
signing in to BusBar. In your personal workspace that is you alone. Everyone
else gets the sign-in page and is then refused.

You can open an app, or one path of it, to more people. Ask your agent:

> Let anyone signed in to BusBar open the docs path of this app.

There are three kinds of access:

- private: the people of the app's workspace;
- signed in: anyone with a BusBar account;
- public: anyone who has the address, with no sign-in.

Your agent tells you who can open the app each time it deploys.

BusBar's operators can read everything you upload. Do not upload or host
secrets or private data.

## 5. Work with other people

A shared workspace is a place several people run apps together. Anything a
team uses belongs in one; your personal workspace is for trying things.

Ask your agent to create a shared workspace and invite someone by email
address. The person accepts with their own BusBar account, signed up with
that address. Owners invite, remove and change roles; members deploy and
manage the apps.

To bring an app from your personal workspace into a shared one, ask your
agent to upload and deploy it there. Your personal copy keeps running. The
address is different, because the workspace is part of it.

## 6. See what is happening

Open https://app.mybusbar.com/ in a browser and sign in. You see, for each workspace:

- every app with its status, who can open it, what it runs and its last
  change;
- an app's logs, events, and its memory and CPU in use;
- every upload and its versions;
- your credits and what each app costs;
- the activity: what was changed, by whom and when.

The pages only show. To change something, ask your agent. It reads the same
things: "Show me the logs of this app", "What changed this week?".

## 7. Settings and secrets

Your agent gives an app its configuration values. For a secret, such as an
API key, it sends you an address where you enter the value yourself. The
value never goes through the conversation.

## 8. Credits

BusBar is paid for with credits. One credit is one US dollar. Your workspace
starts with 10. Running apps and stored uploads use credits by the hour;
your agent and the pages show the balance and what each app costs.

Nothing stops when the balance reaches zero. Ask the person who invited you
for more credits.

## 9. Limits

- 20 running apps per workspace.
- 100 upload names and 5 GiB of uploads per workspace.
- A site is at most 256 MiB; an image is at most 1 GiB.
- You cannot delete an upload yourself. Ask the person who invited you.

Your agent tells you when you reach a limit, and the pages show how much you
have used.

## 10. Remove an app

Ask your agent to remove it. It shows you a plan of what will be deleted and
deletes only after you agree.

## What your agent can do

- `whoami`: who you are, your workspaces and their credits.
- `guide`: the full reference for this installation, by topic.
- `artifact_upload`, `artifact_list`: send a site or an image to BusBar; list your uploads.
- `env_deploy`, `env_status`, `env_list`: run an upload and get its address; see whether an app is ready, and why not.
- `env_access`, `env_access_set`: see and change who can open an app, path by path.
- `env_logs`, `env_events`, `env_usage`: read an app's logs, what happened to it, and its memory and CPU.
- `config_set`, `config_get`, `config_unset`: an app's plain configuration values.
- `secret_declare`, `secret_request_entry`, `secret_list`, `secret_rotate`, `secret_delete`: an app's secrets. You enter a value yourself; it never passes through the conversation.
- `workspace_list`, `workspace_create`, `workspace_invite`, `workspace_members` and the other `workspace_` tools: shared workspaces and their members.
- `credits`: the balance, what is being spent and the price list.
- `changes_list`: the change log: what was changed, by whom and when.
- `env_delete`, `plan_apply`: plan the removal of an app, then carry out a plan you agreed to.

When this page and the tools disagree, the tools are right.

## Rules for agents

- Call `whoami` first in every task. Relay any `warnings` it returns.
- Call `guide` and read the topic before you first use a feature. The guide
  is the full reference for this installation.
- Work only through BusBar's MCP tools. You never need cluster credentials,
  a registry login or anyone's password, and you must not ask the user for
  them.
- After you deploy, tell the user who can open the app.
- Do not open an app or a path to more people unless the user asked for it.
- A failed call returns `{"error":{"code","message"}}`. Report the code and
  the message as given. `FORBIDDEN` means the user's account does not allow
  it: say so, and do not look for another way in.
- Anything that deletes is plan-then-apply: show the user the plan and apply
  it only after they agree. Never apply a plan on your own.
- Never put a secret in a chat message, a repository or a tool argument that
  is not meant for one.
- If the user asks for something BusBar does not offer, say that BusBar does
  not offer it. Do not imitate it another way.

## Help

Ask the person who invited you to BusBar.
