Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/introduction/agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Every transaction can carry a [memo](/transactions/memos) (max 500 characters) a
By default, signing happens in the web UI with a passkey. To operate headlessly, the agent signs with a local EOA that is a signer on the account:

1. After browser login, use the registered EOA shown in `splits auth whoami` and its `signerId`. If you authenticated with an API key instead, generate and register a local EOA with `splits auth create-key --register`. To use an existing signing key instead, import it with `echo $PRIVATE_KEY | splits auth import-key`, then register its address with `splits auth register-signer <address>`. Registering an EOA requires both **Read** and **Write** scopes. `splits auth whoami` shows each local key's `signerId`.
2. `splits accounts update-signers <account> --add-eoa-signer-ids <id>`: propose adding it as a signer. An agent with the Member role needs **Write** scope and can only add its own EOAs. It **cannot add passkeys, remove signers, or include `--threshold`**, even if the threshold value is unchanged. Other callers need both **Write** and **Owner** scopes and the Owner role. To change the threshold, an Owner includes `--threshold N` with those same scopes. The account's current signers approve the proposal at its current threshold. A workspace [created from an agent](/workspaces#from-an-agent) already has the agent's key as the Treasury's only signer.
2. `splits accounts update-signers <account> --add-eoa-signer-ids <id>`: propose adding it as a signer. An agent with the Member role needs **Write** scope and can only add its own EOAs. It **cannot add passkeys, remove signers, or include `--threshold`**, even if the threshold value is unchanged. Other callers need both **Write** and **Owner** scopes and the Owner role. To change the threshold, an Owner includes `--threshold N` with those same scopes. The account's current signers approve the proposal at its current threshold. A workspace [created from an agent](/workspaces#from-an-agent) already has the agent's key as a Treasury signer.
3. `splits transactions sign <id>`: sign pending proposals with the local key (**Write** scope). Auto-submits once the threshold is met. Signer and network changes sign the same way and execute on every network at once; on a multisig, run `splits transactions update-gas-estimation <id>` before the last signature.

When **adding** an EOA to an account, use its registration ID: `localKeys[].signerId` from `splits auth whoami`, `signerId` from `splits auth create-key --register`, or `id` from `splits auth signers` or `splits auth register-signer <address>`. The different EOA ID in `splits accounts signers <address>` identifies that account's signer entry and is used when **removing** it. If `splits auth whoami` shows `signerId: null`, check `splits auth signers` before registering again: a rate-limited signer lookup can also leave the ID null.
Expand Down
7 changes: 5 additions & 2 deletions src/pages/workspaces/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,20 @@ See [Account types](/accounts) for the full ownership model. From your new dashb

### From an agent

An agent running the [CLI](/introduction/agents) can create a workspace in two ways. Both create the same two accounts as the app, with two differences: the agent's own signing key is the Treasury's only signer, so the Treasury is the agent's deposit address, and the Root's signer is an [email signer](/workspaces/recovery#recovery-signers) rather than a wallet you connect.
An agent running the [CLI](/introduction/agents) can create a workspace in two ways. Both create the same two accounts as the app, with two differences: the agent's own signing key is a Treasury signer, so the Treasury is the agent's deposit address, and the Root's signer is an [email signer](/workspaces/recovery#recovery-signers) rather than a wallet you connect. Unless the agent names other Treasury signers, its key is the only one.

- **You approve it in the browser.** The approval page opens on its *Create* tab, prefilled with a name and networks. You sign in, enter the code the agent shows you, adjust anything, and approve. You become the workspace's Owner, and your login email is the Root's signer, which is what recovers the Treasury. The agent joins as an [agent member](/members#agent-members) with its own API key.
- **You approve it in the browser.** The approval page opens on its *Create* tab, prefilled with a name and networks. You sign in, enter the code the agent shows you, change the name, networks, or the agent's permissions if you want, and approve. You become the workspace's Owner, and your login email is the Root's signer, which is what recovers the Treasury. The agent joins as an [agent member](/members#agent-members) with its own API key.
- **The agent owns it.** No browser opens and nobody approves. The agent is the workspace's only Owner, and a recovery email it names is the Root's signer. **Splits sends nothing to that email and does not verify it**, so the agent must use an address a person gave it. Whoever signs in to Splits with that email becomes an Owner of the workspace, on every sign-in, which is how they recover it. Off-ramps and paid plans stay unavailable until a person has joined. One agent key creates one workspace: a second attempt with the same key is refused.

The agent can also give the Treasury other signers, such as your own wallets or other agents, and set how many signatures it needs, counting its own key. The approval page lists every Treasury signer and the threshold, and you can't change them there: deny the request if one is wrong. **Splits does not check who controls those addresses**, so the agent must use addresses a person gave it. Because the Root owns the Treasury, the Root's signer can [reset the Treasury's signers](/workspaces/recovery#recovering-your-accounts) later.

## Programmatic access

Via the [Splits CLI / MCP](/introduction/agents):

- `splits workspace create --name "Acme" --client-name "Claude Code"`: create a workspace you approve in the browser
- `splits workspace create-agent-owned --name "Acme" --client-name "Claude Code" --recovery-email you@example.com`: create a workspace the agent owns
- `splits workspace create --name "Acme" --client-name "Claude Code" --treasury-signers "0x…:Ledger,0x…:Judge bot" --treasury-threshold 2`: also give the Treasury other signers, as `address:name` pairs, and the threshold, counting the agent's key. Each option needs the other, and `create-agent-owned` takes both too
- `splits org create --email you@example.com`: email yourself a setup link for the app's flow
- `splits settings get`: the workspace's settings (**Read** scope)

Expand Down
Loading