# Setup and networks

> Setting up a first wallet on Base, saving the recovery backup, signing your rules, adding a network and changing network connections, from the plain-words view to the agent's exact steps.
>
> Describes Orbit 0.1.9. Web page: https://docs.orbit.dialectic.com/0.1.9/using/setup-and-networks/

This page covers getting started with Orbit: creating your wallet, choosing who approves, signing your rules, and later adding another network or changing how Orbit connects to one. The first part is in plain words for anyone using Orbit; the sections after it are the agent's workflow.

Orbit isn't available in the United States.

## What happens, in plain words

Your money lives in **your wallet**: a Safe smart wallet that you control. Your agent gets its own small wallet to send actions from. It is never one of your approval keys: it can only do what your wallet's permissions and your rules allow.

Setting up goes like this:

1. **Enter your access code.** A new Orbit starts by asking "Do you have an Orbit access code?", and your agent asks only that until you answer. If you already gave your agent the code, it uses it without asking again. Nothing else in setup starts until a code is accepted. An Orbit that is already set up is never asked. If you don't have a code, ask the Orbit team for one. If you connect from a country where Orbit isn't offered, Orbit says so and setup doesn't start; nothing is created or charged.
2. **Choose how to talk.** Your agent asks whether you want to set up in the Orbit page in your browser or right here in chat. Both do the same things.

### On your Orbit page

The step bar shows five steps: **Start, Fund, Create, Approve and Protect**.

1. **Start.** Connect the wallet that will own your Orbit wallet (or paste its address). The page shows "This wallet will own your Orbit wallet:" with that account, and records it only when you click **Continue with this wallet**. If you switch accounts in your wallet first, the page shows the new one.
2. **Fund.** Your agent's wallet needs a little gas to send transactions. You send it once on Base. **Send … from your wallet** sends exactly the amount shown from the wallet you connected, switching it to Base first if needed; you confirm it in your wallet. The address and QR code stay on the screen if you send from somewhere else. When Orbit can read a trusted price, "About $X" shows under the amount; on a brand-new wallet it often can't yet, and then no dollar figure shows. After a send, the page says "Sent, waiting for it to arrive." and doesn't offer the button again until the gas arrives.
3. **Create.** When the gas is there, the page says "Your agent's gas has arrived." with the amount received and who will own the wallet. **Start Orbit setup** creates your wallet on Base with your approval keys; nothing is created before you click it. The steps only Orbit does then run by themselves.
4. **Approve.** One step, "Approve your setup.": what the setup allows (your packages, with their gas top-up and token transfer details), with **Change** if you want to pick packages yourself, then "How careful should your agent be?". **Continue to approve** shows your agent's limits (the main ones up front, every other setting under **All settings**), and you approve the setup and sign your limits with your wallet, right there. As soon as your wallet signs, the page says "Approved. Finishing your setup…".
5. **Protect.** Orbit's protection key needs a little gas, so the watchdog can pause your wallet in an emergency. When Approve shows the line "Orbit also turns on protection: up to … from your agent's wallet for its guardian's gas…", your approval covers it: protection turns on by itself once the setup has run, within the amounts that line showed, and the page shows it happening. If network fees moved past what you approved, the page asks instead: it shows the gas, the fee and what it is for, and one **Approve and turn on protection**.

Along the way, once your agent's wallet exists, the page asks you to **save your recovery backup** ("Your agent's wallet is ready. Save its backup."). This file holds Orbit's own keys. The screen waits until you download it, or choose "I'll do it later" when setup doesn't need it yet; other ways to save it are under "Other ways to save". You save it yourself, on your Orbit page or in a terminal. It never goes through chat. A finished setup whose backup isn't saved yet shows "Save your backup" on Overview, not an unfinished setup.

If your access code includes Basic, you can choose it in your first setup. It waits until Orbit can confirm the code's plan, then goes into the same approval; nothing is charged for it.

A reload, a slow service or a check that fails for a moment keeps you on the screen you were on. If you leave setup unfinished, **Settings → Wallets** marks that wallet ("Setup not finished", "Protection off" or "Backup not saved") with a button to carry on.

### In chat

1. **Tell your agent your choices once.** One reply: which wallets are your approval keys (and how many must approve), how careful your agent should be (Cautious, Balanced or Active; Cautious unless you pick another), roughly how much you will put in, and which packages to use. Token Transfers is off unless you turn it on; Gas Top Up is on unless you turn it off.
2. **Send a little gas, then say start.** You send it once on Base. Your agent tells you when it has arrived and asks "Start?"; nothing is created until you answer.
3. **Approve the setup.** Your wallet is created on Base with your approval keys. You approve one setup transaction per network, in the Safe app or by signing in chat.
4. **Sign your rules.** Your limits are drafted from your choices, and you sign them once. Where Orbit can combine them, you sign the spending plan and the limits together in one signature. Your agent works inside them.
5. **Turn on protection.** Your agent asks you to approve the protection key's gas after setup. If the spending plan you approved already pays for that gas, protection turns on by itself.
6. **Save your recovery backup.** Setup never waits for it: your agent asks you to save it once setup is done, on your Orbit page or in a terminal.

If Orbit can't download what it needs to prepare your setup, the page says "Your setup couldn't be prepared." with the reason and one **Try again**. Nothing was changed.

Your first wallet is always on **Base**. Ethereum and HyperEVM (Hyperliquid's network) can be added afterwards.

**Adding a network later.** On your Orbit page, pick the network: it shows what you get and what it costs, and one **Add** approves that spending plan. When one of your wallets fits, setup continues with it instead of asking. The new wallet copies the approval keys of your other Orbit wallet, read from the blockchain, with no extra screens; only if Orbit couldn't read them does it ask you once. It copies your packages where the new network offers them. Orbit starts as soon as the gas arrives; while it waits, "Checking your setup…" says what for (for example "Waiting for gas to arrive on Ethereum.") and offers **Check now**. If your agent's wallet is short of gas, the page can pay it from your Orbit wallet through the Gas Top Up you already approved; you confirm the amount. If Orbit has no connection for that network yet, the page says so and lets you choose how Orbit connects, right there. Your limits stay the same: you sign them again once so they also cover the new network (where Orbit can, together with the spending plan, in one signature), and if that signature is owed, the page asks for it first ("Sign your limits first."). Protection there turns on by itself once its gas arrives, with no reload or click; if that gas is slow to arrive, the page may ask you once instead. There is no new backup to save, because Orbit's keys are the same.

Before you approve, the page says once that swaps may pay a fee depending on your plan, and that your agent shows it before each swap. If Orbit can't work out how to move your agent's network fees, the page says so and shows you the address and amount to send them yourself; nothing was moved.

When Orbit refuses a step, the page shows Orbit's own plain words for it (for example "Pick the wallet you're adding this network to, then continue. Nothing was changed.").

What you approve or do yourself: the start of setup, any spending plan (and any spend outside it), each network's setup transaction, your rules, saving the backup, and any later change to how Orbit connects to a network that already has a wallet.

## Moving to a wallet set up with 0.1.9

From Orbit 0.1.9, new wallets are set up through Orbit's own provider.

- **Wallets set up before 0.1.9 keep working, but they stay as they are.** They are not moved.
- **To use a wallet as 0.1.9 sets it up, start again.** Update Orbit, start with a fresh install of Orbit, and set up a new wallet. This needs a new access code: one used by an earlier setup won't work for a fresh one. Then move your funds from the old wallet to the new one yourself, in the Safe app, with your own signature.
- **The new wallet is a fresh start, not a second wallet.** Orbit keeps one wallet per network in an install, so the new wallet doesn't sit beside the old one.
- **Nothing needs cancelling.** The old wallet's plan simply ends when it isn't renewed.

**For agents:** the move is a fresh install and a new setup, at the owner's request. The owner moves the funds in the Safe app and signs it themselves; never move them on the owner's behalf.

## For agents: the workflow

This section is for agents running Orbit (read-write build) that are setting up a first Safe, resuming a half-finished setup, adding a network, or getting the owner's limits signed. It goes deeper than the `orbit-onboarding` guide you get from `get_guide`, and never replaces it.

Everything here is as of Orbit 0.1.9. Live state always wins: `get_onboarding_status`, `health_check`, `verify_setup` and each tool's own `next` and refusal text are the source of truth over this page.

### The rule: `get_onboarding_status` is the procedure

`get_onboarding_status` is a state machine, not a report. Every stage carries a state (`blocked`, `pending`, `active`, `done`, `unknown`), who must act, and the next action. Ordering is enforced: a tool whose prerequisite stage is not satisfied refuses and names the missing stage.

- Call it at the start of a session and after every step. Follow its `next`; do not rebuild the stages from other tools.
- `unknown` means a read failed. It is not `done` and not `pending`.
- Once setup is complete and verified it leaves out the finished steps (`onboarding_complete: true`). Pass `detail: true` when you need every stage.
- With no `safe` and no default context it answers every configured chain instead of refusing (`safe: null`, with `safe_note`).
- `paid_plan` is a separate upgrade rail. Follow `paid_plan.next` only when the owner asks to upgrade; the free setup is complete without it.

Useful blocks in the answer:

| Field | What to do with it |
|---|---|
| `ask_first` | Present until the surface is recorded. Ask its question, then `record_onboarding_surface`. |
| `networks[]` | Per network: `initial_setup_available`, `quick_setup`, `requires_setup_plan`, `setup_requirements`, `existing_safe_config`, `proposal_transports`, `note`. Read these instead of assuming which network can do what. |
| `quick_setup` | Per-chain run picture: stage states, receipts, how far the run got and why it stopped. Pass `chain` for one chain. The `module_deployed` stage reads `skipped` with "It's created in the setup you approve." from the start: the module is created by the setup batch the owner approves, never as a step of its own. |
| `batch_prerequisites` | `required_package_ids`, `module_wait`, `mandate.answers_needed`. When the care level or a source Safe set the wait, `module_wait` carries `{chosen_seconds, source, words}` as a fact to relay, not a question. While drafted limits wait for an owner's signature, its `next` says to have them signed first (`present_mandate_for_signing` or the owner page), before preparing packages. |
| `recovery_backup` | Its `next` is the backup step. As of 0.1.9 it has `blocks_setup: false` and `ask_after_setup: true`. |
| `completion` | After a verified setup: the funding ask or the menu of next moves. |

## Access code first

### The first answer on a blank install

A fresh install's first answer asks one thing at a time. When an access code is needed, ask only "Do you have an Orbit access code?" and wait for the answer. The one next step is `orbit-mcp init`: run it yourself when you can, or ask the owner to run that one command. Then record the code; `get_onboarding_status` guides the rest (browser or chat, keys, network connection, setup). When no code is needed, the first question is browser or chat, then the same one step.

In diagnostic mode, `orbit_status`'s `fix` items are steps to follow in order, not text to relay word for word. After `init`, open the owner page with `open_owner_wizard`; do not start `owner-serve` yourself, and never paste or build the page's link. The package-access payment comes only after a Safe exists.

Before a Safe is set up, the placeholder address `orbit-mcp init` writes is not a Safe: `get_billing_status` and `get_portfolio` answer `safe_address: null` with `safe_note: "No Safe is set up yet."`, `list_safes` answers `safe: null` with the same note, `get_context` adds that `safe_note`, and `refresh_state`'s per-Safe report gives `safe_address: null` with that `note`. Say that no wallet is set up yet; never show the placeholder as an address.

### Recording the code

On a fresh install, `get_onboarding_status` shows the `access_code` stage first (stage `id: "access_code"`; `ask_first` is `{id: "access_code", question, record_with: "record_access_code"}`, with the surface question under `ask_first.then`), and `orbit_status` leads its first `fix` line with the same question. Every setup action refuses with `access_code_needed` until a code is recorded. An install that already holds a key or has a configured Safe is never asked.

- If the owner's message already contains an access code, pass it to `record_access_code` (`access_code`) exactly as they typed it, and do not ask.
- Otherwise ask exactly "Do you have an Orbit access code?", in a reply with nothing else, and pass their answer as typed.
- The answer has `state` (`accepted`, `needs_access_code`, `invalid`, `try_later`, `slow_down`), a plain `message` to relay, and `next`. On `accepted`, carry on from `get_onboarding_status` in the same turn. On `needs_access_code` or `invalid`, wait for the owner's code. On `try_later` or `slow_down`, do not retry on your own; call again when the owner says so.
- `state: country_not_supported`: the request comes from a country where Orbit isn't offered. Relay `message` exactly and stop. Don't ask for another code, don't retry, and never suggest a VPN or another country. It isn't a wait, and a stored code is left as it was. The same answer can come later from the access-key request (see [Refusals](https://docs.orbit.dialectic.com/0.1.9/reference/refusals/#packages-permissions-and-setup)).
- Never repeat the code in full. `access_code.masked` is the only form to show.
- In a terminal, `orbit-mcp onboard` asks for the code with hidden input. Without a terminal, it takes `--access-code <code>` or `ORBIT_ACCESS_CODE` (prefer the variable: a flag ends up in shell history). `orbit-mcp quick-setup` waits for the code as well.

## Preconditions to check

1. `health_check`: the build (`read-only` builds offer chat only and cannot sign), the running `version`, and the `blocking` list. If it says no setup was found but the owner says they set one up, the host entry is probably missing `ORBIT_STATE_DIR`: fix the host entry, do not start a new setup.
2. `get_onboarding_status`: where setup stands.
3. If another Orbit holds the state directory, `health_check` shows this process as `observing`. Use the acting one; never stop another Orbit process. See [Operations and recovery](https://docs.orbit.dialectic.com/0.1.9/using/operations-and-recovery/#one-acting-orbit-per-state-directory).

## Browser wizard or chat

Until the surface is recorded, `get_onboarding_status.next` is the surface question. Ask it once, offering both when `ask_first.choices` offers both, then call `record_onboarding_surface` with `surface: "wizard"` or `"chat"`.

- **Wizard.** Call `open_owner_wizard`. It opens the owner page in a browser on the computer where Orbit runs, which may not be the computer the owner is at. Relay `tell_the_user` and wait. When `opened` is false (remote host, no browser), offer chat. CLI-only owners can run `orbit-mcp owner-serve` themselves.
- **Chat.** Everything the wizard does can be done from chat. The one exception is saving the recovery backup (see below).

### The owner page link is a bearer credential

The owner page listens on loopback (the port is `[owner] port` in config) and its link carries a bearer token. `open_owner_wizard` never returns the link, on purpose.

- Never print, paste or log the owner page link, in chat or in any shared output, transcript, routine log or support message.
- Never tell the owner the page is the only way. Offer chat when the page is unreachable.

Sign links are different. A `signing_link` from a `present_*` tool or a `needs_owner_signature` answer carries no bearer and is meant for chat: paste it in full, including everything after `#`. See [Approvals](https://docs.orbit.dialectic.com/0.1.9/concepts/approvals/).

## First setup: Base only

As of Orbit 0.1.9 an Orbit's first setup runs on Base, where package access is billed (`networks[].initial_setup_available` is true only for Base). Say once that other networks are added afterwards. Ethereum (`mainnet`) and HyperEVM are added after onboarding (see [Adding a network](#adding-a-network)).

### Chat setup, in order

The `next` field leads; this is the shape it usually takes.

1. **Agent keys.** If the operator keystore does not exist, `create_operator_keystore` (it also creates the guardian). It returns public addresses only. Never read keystores or passphrase files, even if the owner approves.
2. **Network connection.** `record_rpc_profile` with `chain`, `kind` (`private` with `url`, or `public`). Ask this after the keystore and before the signers. To the owner, say "network connection address" from a provider, never "RPC". See [Changing a network connection](#changing-a-network-connection).
3. **Owner choices, one question.** Show the defaults as facts first, then ask once: the wallets that will control the Safe (and, if more than one, how many approvals are needed); the care level (Cautious, Balanced or Active; Cautious unless they change it; it also sets the module's wait between actions); roughly how much they will put in (their limits are sized from it); and the packages, all on except Token Transfers. Present no care level as a recommendation. Ask no separate wait question and no limits interview.
4. **Record them.** `record_quick_setup_inputs` with `chain`, `signers` (full checksummed addresses), `threshold`, `preset` (the care level) and `balance_anchor` (the amount, a decimal in the accounting currency); then `select_setup_packages` for the packages. The care level sets the wait unless the owner chose one (an explicit `module_cooldown_seconds` wins): relay `module_wait.words`. Ask the wait question only when an answer still carries `module_cooldown_choice_needed`; then offer only its `options_seconds` and preselect nothing.
5. **Gas, then "Start?".** `run_quick_setup` with `chain` answers with the gas to send to the agent's wallet on Base. After the gas arrives, tell the owner, show the package access amount, ask "Start?" and stop until they reply. The deposit is not consent. A spending plan is the alternative route (`get_funding_plan`): before the Base Safe exists it is approved with a click on the owner page; the chat signature route (`present_funding_plan_for_signing`) works only once the Base Safe exists. See [Funding and gas](https://docs.orbit.dialectic.com/0.1.9/using/funding-and-gas/).
6. **Run it.** After the owner's "start", `run_quick_setup` with `chain` and `owner_started: true` (in a terminal, `orbit-mcp quick-setup --owner-started`). Without it, a first setup in chat refuses with `owner_start_needed` before creating the Safe. It creates the Safe owned by the owner's wallets at their threshold (the agent key is never an owner) and stops at a wait, a halt, or an owner review. If it answers `in_progress`, poll `get_quick_setup_run` with the `chain` and act on its `outcome` (see below); do not run quick setup again to read the result. Calling `run_quick_setup` again with the same arguments attaches to the running run; it never starts a second one. When the chosen packages need the owner's limits before the setup can be prepared, it answers "The limits come first…" with the next step: draft the limits, have the owner sign them, run again.
7. **The owner's setup batch.** One batch per network that the owner signs. Read its review first (see [The setup review](#the-setup-review)). See [Approvals](https://docs.orbit.dialectic.com/0.1.9/concepts/approvals/) for the three routes (Safe app proposal, headless signing, Tx Builder export).
8. **Limits.** In chat, the limits are drafted from the care level and the amount; the owner signs them. When the spending plan is also waiting, one signature can cover both: `present_setup_approval_for_signing` (see [Approvals](https://docs.orbit.dialectic.com/0.1.9/concepts/approvals/#signed-chat-steps)). This also works in a first setup whose module the same approval creates. The full mandate interview below is for revisions, or when `batch_prerequisites.mandate.answers_needed` asks for it.
9. **After execution.** `finalize_root_update` when Orbit says so, then `verify_setup`.
10. **Protection.** `get_protection_plan`, then `enable_guardian_protection` (see [Funding and gas](https://docs.orbit.dialectic.com/0.1.9/using/funding-and-gas/#guardian-funding-and-protection)). On the chat path protection is asked for after setup; only an owner-page setup approval can turn it on by itself. The agent's first live action waits until the guardian has gas and the watchdog watches the Safe.
11. **Completion.** `get_onboarding_status.completion` asks for funding first, then offers the next moves. Start none of them unasked. Its `next` also carries the recovery backup reminder: ask for the backup now.

When a step completes, do the next one in the same turn. Stop only to ask what you cannot know, to get consent for a spend or a batch, or when the owner must act outside the chat. A deposit into a wallet is never consent to spend.

**The swap fee line.** The `run_quick_setup` answer that first hands over a wallet's setup approval carries `swap_fee_line` beside `settings`. Say it once, as written, with no figure; later answers for the same wallet carry `swap_fee_line: null`.

**A failed package download.** `corridor.composed` carries `code: package_source_unreachable` with `retry: true` and `owner_words`. Relay them and call `run_quick_setup` again; it resumes where it stopped.

Every setup and add-network refusal carries plain `owner_words` for the owner and keeps its technical sentence in `next`. Relay `owner_words`; follow `next`.

### Reading a finished run: `outcome`

A finished `get_quick_setup_run` carries `outcome`, the compact part of the run's answer, beside the full `result`: `reached`, `complete`, `stopped`, `stopped_code`, `safe`, `module`, `next`, the owner's step when there is one (`owner_batch_ready`, `primary_action`, `proposer_approval`, `credential_step`), and the owner-facing lines `next` may ask you to show (`settings`, which the owner's batch signature also approves, `mandate_why`, `mandate_offer`). Fields the run left empty are left out. A failed run's `outcome` is only its own `code` (when it has one), `message` and `next`; it never carries an earlier run's owner step, even while that earlier result still shows under `result`.

### Packages in first setup

- `select_setup_packages` refuses a package that has no part on the network with `package_unavailable_on_network` (`package_id`, `package_name`, `chain`, `chain_id`, and `default_package_ids` when the network has a default choice). Nothing is saved.
- **A paid package with an access code.** When the owner's accepted access code grants that plan, a paid package (for example Basic) is recorded and listed in `paid_access_pending`, with `paid_access_pending_words` to relay. It waits until the curator confirms the grant for this Safe: `install_package` answers `paid_access_pending` (`retry: true`), and `run_quick_setup` stops with that code and a waiting package row (`status: waiting_for_paid_access`). Nothing unconfirmed is composed or installed. Without such a code, or with a code for a lower plan, the package is refused as before (`paid_package_not_at_onboarding`, `plan_required` at install).
- **Package access.** A selected package that waits for this Safe's package access shows in `corridor.packages` as `status: "waiting_for_package_access"` with a plain note (and `credential_required: true`). It is not a failed install. The access step's `owner_step` reads in plain words: the amount in ETH, rounded up, what it is for, its limit and the network fee limit. How the agent pays moved to `credential_step.technical`; exact figures stay in `credential_step.quote`.

### The setup review

`generate_onboarding_batch` (and the signing paths through it) answers with the review the owner reads.

- `effect_review.packages` lists every selected package the batch grants, each with `id`, `name`, `version` and `required` (true for the packages the network asks for).
- **Packages not ready.** While a setup run is installing the selection, it refuses with `packages_installing` (`retry: true`). With no run going, it answers `packages_not_installed` (`retry: false`, `next_action: run_quick_setup`): run the setup, which installs them. A package whose install failed keeps `packages_not_installed`; one waiting for package access says `package_access_needed`; one waiting for a paid plan's access says `paid_access_pending`.
- **Not test-run.** When Orbit couldn't test-run the batch, the answer adds `simulation_unverified` (a re-run with `simulate_reviewed_setup` adds `unverified`): a `code` (for example `simulator_missing`, `simulation_slow`, `network_unreachable`, `rate_limited`, `setup_checks_failed`, `nonce_moved`, `readonly_build`, `fork_has_practice_state`, `dev_connection`, `simulation_unavailable`), plain `owner_words`, `retry` and your `next`. `retry` is true only for infrastructure reasons (a slow or busy connection, a rate limit, a network that didn't answer); offer to check again only then. A Base build without the bundled Base simulator can never test-run the setup: the answer says to update Orbit.
- **Protection line.** A first setup review adds `protection_disclosure`: the plain line ("Orbit also turns on protection: up to … from your agent's wallet for its guardian's gas, plus network fees of at most …") and the limits it binds (`cap_base_units`, `fee_budget_base_units`, `gas_ceiling_wei`, `native_symbol`, `guardian`, `agent_wallet`, `setup_digest`, `protection_revision`). Showing it is not consent: only the owner confirms it, on the owner page; no agent tool can. See [Funding and gas](https://docs.orbit.dialectic.com/0.1.9/using/funding-and-gas/#protection-with-the-setup-approval).
- **Settings changed.** Saving the same gas top-ups again (the same wallets and amounts, in any order or spelling) is no change and keeps the prepared approval current. When the settings really changed after the approval was prepared, Orbit prepares the permissions again once and builds a new approval, but only for a batch that never left this Orbit. If the waiting batch was proposed to the Safe app (or its proposal record is unsure), downloaded or signed by an owner here, it refuses with `settings_changed_after_send` and plain words (reject it in the Safe app, or set the setup aside and choose again), and replaces nothing.
- **Setting a batch aside.** `discard_setup_batch` works before the batch has created the module (a module address with no code reads as nothing allowed yet). A failed read at a module that exists still refuses.

### How to ask the owner

Facts first, one `Label: value` per line, each full address on its own line in code formatting, amounts with their unit. Then one short question with the choices. Never put amounts or addresses in the question line. Leave transaction hashes, explorer links and block numbers out.

```
Network: Base
Safe address:
`0x…`
Wallets that control it: <number>
Approvals needed: <number>

Approve this setup in your Safe app now, or sign it here in chat?
```

### Safe transaction service rate limits

Setup batches can be queued in the owner's Safe app through Safe's [transaction service](https://docs.safe.global/core-api/transaction-service-overview). Orbit queues there only as a registered proposer, which Safe calls a [delegate](https://docs.safe.global/core-api/transaction-service-guides/delegates): a key the owner allows to put transactions in the queue. It cannot approve them; the owner's approval keys still sign and execute.

If Safe's service answers 429 during setup, honour the backoff. Setup needs no API key. Offer the owner a choice: owner export (`use_owner_export_for_setup`), or a free Safe API key (`set_safe_api_key`; treat it like a network connection address and never repeat it back). After the owner approves Orbit as proposer, `use_safe_service_for_setup` moves later batches to the Safe app.

## Recovery backup

The backup holds Orbit's keys. It never goes through chat. As of Orbit 0.1.9 setup never waits for it: in chat, ask for it once setup is done (`get_onboarding_status.recovery_backup` has `blocks_setup: false`, `ask_after_setup: true`). This reverses 0.1.8-rc.3, where the backup came before funding.

- The owner saves it on the owner page, or in their own terminal with `orbit-mcp recovery-export --output <private-file.json>` (works over ssh).
- To finish the step, ask for "the confirmation code in your backup file" and call `acknowledge_recovery_backup` with it and `saved_by_user: true`. Never invent the code, and never ask for the file, keys or passphrases.
- If the owner chooses to save it later, call `defer_recovery_backup` with `deferred_by_user: true`. Only on their word. Keep saying it is still unsaved; until it is saved this host is the only place those keys exist.

## The mandate interview

The mandate is the owner's signed limits: one global document covering every configured Safe, with per-network overlays. Activating it switches every configured Safe at once. There is no MCP tool that activates a mandate; the owner's signature does.

### Steps

1. `get_mandate_interview` (read only): every field with its question, accepted answers, rationale, the preset columns, and the active values when a mandate is active.
2. Ask the owner. Two ways:
   - **Short profile.** `propose_global_mandate` with `profile`: `intent` (`yield`, `trading`, `borrow_leverage`), `intended_deposit` (the owner's own figure, a decimal string in the accounting currency), `risk` (`cautious`, `balanced`, `active`), and `allow_debt` (`true` or `false`; required unless the intent is `borrow_leverage`). Orbit derives the complete answer set in code. Set `no_review: true` only when the owner explicitly chose no review.
   - **Full answers.** `propose_global_mandate` with `answers`, a map from every field id to the owner's value.
3. `present_mandate_for_signing` (optionally with `proposal_id`). Show the decoded terms (`mandate` rows) and the message in full, and paste `signing_link` in chat complete.
4. When the owner pastes a signature back, `submit_mandate_signature` with `presentation_id` and `signature` (`signer_address` only for a contract wallet). Refusals name the mismatch: stale presentation, changed document, malformed paste, non-owner signer.

If the owner says no, call `present_mandate_for_signing` with the `proposal_id` and `decline: true`. Nothing is signed and the active rules stay.

When the owner wants to change a proposal you made, call `propose_global_mandate` with `based_on_proposal` set to its id: their edits start from your proposal, and the new proposal replaces it (one signature). A stale or unknown id is refused with `proposal_not_pending`.

### Every field is a decision

With `answers`, every interview field must be present. A missing field is refused ("every interview field must be an explicit decision"). `"none"` is a valid answer wherever a field is optional; leaving a field out is not.

On revision (a mandate is already active) each field carries `baseline`, the active value. Keeping a baseline is still a decision: pass it explicitly.

### Multi-network answers

The interview asks one overlay group per network, keyed by network name, for example `chains.base.max_actions_per_hour`, `chains.mainnet.allow_debt_positions`, `chains.hyperevm.max_nav_allocation_pct`. The overlay fields are:

| Field | Accepts |
|---|---|
| `chains.<network>.max_nav_allocation_pct` | a whole percent, or `"none"` |
| `chains.<network>.max_actions_per_hour` | a whole number, or `"none"` |
| `chains.<network>.max_actions_per_day` | a whole number, or `"none"` |
| `chains.<network>.allow_debt_positions` | `"yes"`, `"no"`, or `"none"` to inherit the global answer |
| `chains.<network>.denied_position_ids` | a comma-separated list of position ids, or `"none"` |
| `chains.<network>.max_position_concentration_pct` | a whole percent, or `"none"` to use the global limit |
| `chains.<network>.max_protocol_concentration_pct` | a whole percent, or `"none"` to use the global limit |

With full `answers` on a multi-network Orbit, answer every one of these for every network. When the owner has no per-network rule, `"none"` is the explicit answer for each (the short profile does this too; the proposal it returns shows the values it chose). An overlay can only be stricter than the global value; a looser one is refused at activation.

The interview also carries `global.auto_renew` (automatic subscription renewal). It is pre-decided as `"none"` on adoption; changing it is an explicit answer the owner signs. See [Billing and renewal](https://docs.orbit.dialectic.com/0.1.9/using/billing-and-renewal/).

## Adding a network

Offer this from the completion menu or when the owner asks.

1. `get_add_chain_context` with `source_safe` (the Safe the network is added from) and `chain` (the network being added). Keep the returned `revision` as `context_revision` for every add-network call. Relay its `same_address.note` about the new Safe's address; never promise the same address yourself. The new Safe copies the source Safe's current owners and threshold, read from the chain (`copied_owners`, with `inheritance_requires_review: false`): show them to the owner as facts and do not ask them to confirm; record different ones only if the owner asks. The context also returns `copied_packages`. If the chain read fails, the context falls back to asking the owner to review the saved wallets; "unavailable" is not an empty owner set.
2. Read `get_onboarding_status.networks[]` for that network:
   - `requires_setup_plan: true`: the network has no default package plan. A new Safe there can be added after onboarding on Base, with explicitly chosen packages: pass `setup_plan` with explicit `package_ids` to `record_quick_setup_inputs`, as its `setup_requirements` sentence says. It is never part of the first setup.
   - `existing_safe_config: true` with `quick_setup: false`: only an existing Safe can be connected (`configure_safe` adopts an existing Safe with an enabled makinaX module).
   - `setup_retired: true`: no new setup; existing Safes there stay readable.
3. `record_rpc_profile` for the new network, then `record_quick_setup_inputs` and `run_quick_setup`, each with `source_safe` and `context_revision`. `select_setup_packages`, `use_owner_export_for_setup` and `discard_setup_batch` take the same pair. The `record_quick_setup_inputs` answer carries `owners_match_source`: `true` (carry on), `false` (show both lists, `source_owners` and the recorded ones, and ask which to use) or `null` (show the recorded wallets and ask the owner to confirm). A package with no part on the new network is refused with `package_unavailable_on_network` and its `default_package_ids`; pass only the packages that network offers. When Orbit has no connection for the new network yet, the owner page's setup read answers `not_addressable` with the cause in plain words, and the owner chooses the connection there.
4. **The wait.** The new Safe copies the source Safe's wait between actions when its two waits are equal and an offered value; otherwise the care level sets it. An explicit `module_cooldown_seconds` still wins.
5. **Limits come first under active limits.** When signed limits are active and don't name the new Safe, its setup batch is refused (`generate_onboarding_batch`, `present_batch_for_signing`, `propose_onboarding_batch`) with `limits_cover_new_safe_first`; nothing was sent. When exactly one waiting limits draft adds this Safe and keeps every signed rule, the refusal names it (`limits_proposal_id`, `limits_ready: true`): that draft is the one to sign. Otherwise both stay empty. Draft the limits update that adds the new Safe, every other signed value carried over: `run_quick_setup` for that network drafts it, or `propose_global_mandate` with `carry_over: true` (an already pending draft comes back with `reused: true`). The owner signs it on the owner page or from chat; then prepare the setup again. If a new Safe was set up before its limits were signed, only exits run across the wallets until the owner signs (decreases, reduce-only and close orders, and swaps into the accounting token).
6. Gas on the new network comes from the agent's own gas on Base through Relay (`prepare_gas_route`, or the spending plan). The owner needs no gas on the new network. `get_add_network_gas_check` with `chain` says whether the agent's Base wallet holds enough to move there; when short, by how much and why, and whether the owner's Orbit wallet can pay through the Gas Top Up permission already signed (no new limit, no new signature). Only the owner confirms that, on the owner page; `get_base_gas_top_up_status` then follows it (`state`, `calls_done` of `calls_total`, `stopped` in plain words). A spending plan approved before the network was added does not cover it (`chains_note` says the networks apply to the next plan): a new plan and approval are needed. Package access on a new non-Base Safe is a quote the owner approves separately.

A refusal `add_chain_revision_outdated` means the reference is old: read `get_add_chain_context` again and confirm with the owner. To stop the owner page from resuming an unfinished add-network setup, `set_aside_add_chain` (the progress stays).

## Where a new module comes from

From Orbit 0.1.9, a new module is created through Orbit's own module provider on every network where Orbit records a provider whose code is the build this Orbit was made for (in 0.1.9: Ethereum, Base and HyperEVM); any other network keeps Makina's module factory. `health_check` → `module_sources` is the live answer per network. This covers first setup and adding a network, including a network added to a wallet whose first network has an earlier module. A Safe that already has a module keeps it: nothing is created again, moved or re-checked against the provider.

- **Read the source per network from `health_check` → `module_sources`**, listed on every install: each network's `module_source` (`orbit_provider` or `makina`) for modules created from now on, with a `reason` where the provider was asked for but isn't what the network uses. It says nothing about wallets that already have a module.
- **The provider couldn't be checked** (for example the network connection is down): setup waits and creates nothing. `run_quick_setup` answers with `stop_kind: wait`; `generate_onboarding_batch` refuses with `module_route_unchecked`. Try again in a moment. Orbit never creates the module another way instead.
- **The provider is closed** (not authorised yet, or not the build this Orbit was made for): `generate_onboarding_batch` refuses with `module_provider_closed`, and `run_quick_setup` stops with `module_deployment_disabled`. Relay the sentence as written: it ends with what the owner can do (try again later, or update Orbit and try again).
- **The opt-out** is the `[modules] source` setting: `"makina"` keeps every network's new modules on Makina's factory, and `[modules.networks.<name>] source = "makina"` does it for one network. See [Config and state](https://docs.orbit.dialectic.com/0.1.9/reference/config-and-state/#other-sections). Change it only on the owner's word.



## `verify_setup` verdicts

Use `verify_setup` for onboarding, right after the owner executes a batch, and to troubleshoot a refusal. Do not run it before every action: `execute_action` checks what its own call needs.

- Every gap is classified by who fixes it (`safe_owner`, `makina`, `curator`, `provider`) with exact parameters.
- **`missing` is not `unverified`.** `missing` is a real configuration gap. `unverified` means the check could not complete (often a failed read). Never report an RPC failure as a missing setting.
- A missing local swapper mapping is a config line, not a transaction: `add_swapper_mapping`, then `refresh_state`.
- When the `watchdog_live` check is not ready, relay its reason and follow its own `fix`.
- An operator or guardian under its usual reserve but able to pay for one action is reported funded with an advisory. Keep working and offer a top-up.

## Changing a network connection

`record_rpc_profile` writes `[rpc_urls]` and hot-reloads the connections.

- **During setup**, before any Safe exists on that network, it is a plain step.
- **The owner's own connection is kept.** `kind: "public"` never replaces a network's configured own (private) connection: it refuses with `private_connection_kept` and a plain sentence, and nothing is changed. Pass `replace_private: true` only when the owner explicitly asks to switch to the public connection. When the owner page sends the public connection for a network that already uses the owner's own, Orbit keeps it, writes nothing and answers `kept_private: true` with `owner_words`, and setup carries on.
- **On a network that already has a configured Safe**, pass only `chain`, `kind` and `url` (or `urls` for an ordered fallback list), no `safe` or `source_safe`. Any change to that network's connection list (replacing, adding a fallback, removing, reordering) answers `status: "needs_owner_signature"` with a `signing_link` and a one-time `confirm` reference.
- Paste the link in chat in full. When the owner pastes a signature back, call again with the **same request** plus `confirm` and `signature`.
- The answer says when a running watchdog needs `restart_watchdog` to pick up the change.

### Sign the link you saved, do not ask twice

Each call without a signature stages a new question with a fresh nonce, and the new question replaces the earlier one for that step. A signature over the earlier message then no longer matches. So:

- Call once, save the `confirm` reference and link, give the link to the owner, and wait.
- Do not call again "to show it again". If you must re-present, give the owner the new link and discard the old one.
- A staged question is valid until its `expires_at` and can be used once.

### Private connection addresses

A private connection address often contains an API key. The signing message shows each entry by its place (`primary`, `fallback 1`, …) and `scheme://host`. Any port, path, query or fragment is shown as `/…`, and user info is dropped, but the host itself is shown. The signature binds digests of the before and after lists.

- Never repeat a private address back in chat or put it in a summary or log.
- If the provider puts the key in the host name, tell the owner the signing message will show that host before they sign.


## Common refusals in this flow

| Refusal or state | Meaning | What to do |
|---|---|---|
| A tool names a missing stage | Ordering is enforced | Do the stage `get_onboarding_status` names |
| `access_code_needed` | A fresh install has no accepted access code yet | Ask "Do you have an Orbit access code?" and pass the answer to `record_access_code` |
| `country_not_supported` | The access-code check (`record_access_code` `state`) or the access-key request (`acquire_credential` `status`, `run_quick_setup` → `credential_step`, `install_package`) comes from a country where Orbit isn't offered. Nothing was created or charged | Relay the sentence exactly and stop: no new code, no retry, no VPN or other country |
| `identity_shape_removed` | The call used an older Safe form | Call again with its `use_instead` |
| `owner_start_needed` | First setup in chat before the owner said start | Tell the owner the gas arrived, ask "Start?", then call again with `owner_started: true` |
| `module_cooldown_choice_needed` | Neither the care level, a source Safe nor the owner set a wait for the network | Ask its `question`, offer only `options_seconds`; pass `preset` or `module_cooldown_seconds` as its `next_action` says |
| `limits_cover_new_safe_first` | Active signed limits don't name the new Safe | Draft the coverage (`propose_global_mandate` with `carry_over: true`, or `run_quick_setup` for that network); the owner signs; prepare the setup again |
| `nothing_uncovered`, `carry_over_alone`, `proposal_pending`, `carry_over_not_drafted` | `carry_over` refusals | Relay the sentence. `proposal_pending`: another limits proposal (`pending_id`) waits for the owner, who signs or declines it first. `carry_over_alone`: pass `carry_over` with no answers, profile, overrides or `based_on_proposal` |
| `paid_package_not_at_onboarding` | A paid package was selected before the curator confirmed paid access for this Safe, and the owner's access code doesn't grant that plan | Set up free first; subscribe later (see [Billing and renewal](https://docs.orbit.dialectic.com/0.1.9/using/billing-and-renewal/)) |
| `paid_access_pending` (`retry: true`) | The owner's access code grants the plan, and the curator hasn't confirmed it for this Safe yet | Wait and try again; relay `paid_access_pending_words`. The owner can also choose again without the package |
| `package_unavailable_on_network` | The package has no part on this network | Choose from that network's packages (`default_package_ids`) |
| `packages_installing` (`retry: true`), `packages_not_installed` | The selected packages are being installed, or not installed yet | Wait; or, with no run going, `run_quick_setup` |
| `settings_changed_after_send` | The settings changed after the setup batch was proposed, downloaded or signed | Relay the words: the owner rejects it in the Safe app, or the setup is set aside and chosen again |
| `private_connection_kept` | `record_rpc_profile` with `kind: "public"` on a network using the owner's own connection | Nothing changed. Only on the owner's explicit ask, call again with `replace_private: true` |
| `no_common_owner` | No one wallet controls every Safe the step covers | Relay its sentence |
| `mandate_required` | No limits signed for this Safe yet | `propose_global_mandate`, then the owner signs. Say "limits" to the owner |
| 429 from Safe's service | Rate limited | Honour the wait; offer owner export or a Safe API key |
| `module_route_unchecked` | Orbit couldn't check whether the module can be created just now. Nothing was prepared | A wait: try again in a moment |
| `module_provider_closed` | Orbit's module provider is closed for this network. Nothing was prepared | Relay the sentence; it names the owner's next step |

## Pitfalls seen in real agents

- Reconstructing progress from `health_check` and other reads instead of following `next`. The state machine already knows the order.
- Answering the mandate interview with only the global fields on a multi-network Orbit. Every `chains.<network>.*` field needs an answer, `"none"` when there is no rule.
- Calling `record_rpc_profile` again before the owner signed, which made the link the owner was holding stale.
- Pasting the owner page link into a shared channel. Only sign links go in chat.
- Treating a downloaded or proposed batch as active. Only the owner's executed batch, finalized by Orbit, is active.
