> ## Documentation Index
> Fetch the complete documentation index at: https://docs.boat.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Which wallet a sandbox bills

> Who pays for a sandbox: your personal account or an organization. Switch the active organization, or bill one sandbox to an organization without switching.

The **wallet** of a sandbox is the account that pays for it: your personal account or an organization.

Each wallet has its own plan and its own dollar balance for overage. Read [Plan, wallet and running out](https://docs.boat.dev/billing.md).

Every account has one **active wallet**. It is your personal account until you change it.

* A new sandbox bills the wallet that the request names.
* A request that names no wallet bills the active wallet.
* The active wallet is one setting on the account. The CLI and account API keys use it.
* The dashboard does not use it. The dashboard bills the organization selected in the sidebar.
* An organization API key always bills its own organization.
* `GET /limits` reads the wallet that a create would bill.
* boat fixes the wallet of a sandbox when it creates the sandbox.

## Name an organization

| Value | Means |
| - | - |
| The id (`team_…`) | That organization. |
| The name, as `GET /orgs` / `boat org list` show it | That organization. Case does not matter. |
| `personal` | Your own account. |

You need the id only when two organizations have the same name. Then a name gives `409 ambiguous_org`.

## Set or override the wallet

```bash CLI theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
boat org                     # the wallet in effect right now
boat org list                # organizations you belong to, ids and names
boat org switch acme         # active wallet = acme, for the CLI and account API keys
boat org switch personal     # back to your own account
boat --org acme new          # bill one create to acme without switching
```

```bash curl theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -sS "$BOAT_API_BASE/orgs" -H "Authorization: Bearer $BOAT_API_KEY"
# -> orgs: [{ id, name, type, role, active }, ...]

curl -sS -X PATCH "$BOAT_API_BASE/orgs/active" \
  -H "Authorization: Bearer $BOAT_API_KEY" -H "Content-Type: application/json" \
  -d '{ "org": "acme" }'                  # or the team_… id, or "personal"

# one call elsewhere: header, query, or body
curl -sS -X POST "$BOAT_API_BASE/sandboxes" -H "X-Boat-Org: acme" ...
curl -sS "$BOAT_API_BASE/limits?org=acme" ...
curl -sS -X POST "$BOAT_API_BASE/sandboxes" -d '{ "org": "acme" }' ...
```

```ts TypeScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
const { orgs } = await boat.listOrganizations();          // ids, names, active
await boat.setActiveOrganization({ org: "acme" });
await boat.create({ org: "acme" }); // one sandbox elsewhere
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
from boat_sdk.models.active_org_update_request import ActiveOrgUpdateRequest
from boat_sdk.models.create_sandbox_request import CreateSandboxRequest

orgs = boat.list_organizations().orgs                     # ids, names, active
boat.set_active_organization(ActiveOrgUpdateRequest(org="acme"))
boat.create(create_sandbox_request=CreateSandboxRequest(org="acme"))  # one sandbox elsewhere
```

## In the dashboard

| Control | What it does |
| - | - |
| **Organization** select in the sidebar | Picks the organization of every page: the sandboxes, snapshots, keys and billing shown, and the wallet of the sandboxes and keys you create. The browser remembers it. |
| Sidebar, **CLI and API keys bill … Change** | Sets the active wallet: the default of the CLI and account API keys. Picking an organization in the select above never changes it. |

Webhooks, Alerts and Account settings belong to your account. They are the same in every organization. The page header says so.

## A teammate cannot see or use my sandbox

| Cause | Fix |
| - | - |
| The sandbox bills your personal account. Teammates see only sandboxes that the organization pays for. | Move all your personal sandboxes and your plan: `boat --org acme org migrate` (organization owner only). Or create a new sandbox for the team: `boat --org acme new`. |
| The teammate looks at their personal scope. | The teammate runs `boat org switch acme`, or picks the organization in the sidebar. |
| The teammate sees it as `view` only. The sandbox is private. | Run `boat share <id>`. If it holds your logins and runs, stop and resume it after. Read [Shared sandboxes](https://docs.boat.dev/organizations/shared-sandboxes.md). |

boat fixes the wallet of a sandbox when it creates it. A fork keeps the wallet of its source.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.