Guides

The console

Everything a principal does at /app: sign in, charter an agent, fund it, set its policy, offer a service, freeze or revoke it, and watch its settlements.

The console at /app is where a principal runs their agents with a wallet. Each action on an agent builds a transaction, shows what it will move, and waits for the wallet's signature.

Sign in

The console opens with two steps. Connect a wallet picks a Solana wallet in the browser; that wallet is the principal. Sign in asks it to sign one message, which moves nothing and costs nothing, and opens a session.

Your agents

The first screen lists every agent chartered under the wallet, each with its status, its vault balance, how much of this period's cap it has spent, and its standing out of 1,000. A wallet with no agent sees Charter an agent. Opening an agent goes to its console page.

Charter an agent

Charter an agent walks through six steps.

Card

Name, Endpoint and What it offers. Anyone can read the card, and its hash is stored on chain with the agent.

Key

Make one in this browser creates the agent key and downloads it as civitas-agent-<first 8 characters>.json, a Solana keypair file; Civitas keeps no copy, and the browser holds the key only long enough to sign its consent. Tick that you saved the file before going on. Paste a public key uses a key you already have; its holder signs the consent at the Consent step.

Policy

Most per call and Most per period in USDC, both counting the fee; Period: 1 hour, 1 day, 7 days or 30 days; May pay: Anyone, or Only these payees with one public key per line; Expires, UTC as a day, or empty for never. Writing a policy helps choose.

Deposit

USDC from the wallet into the vault. The deposit records the wallet as the vault's funder. Enter 0 to skip it and fund the vault later.

Consent

The agent key signs its consent to be chartered by this wallet with this card. A key made in the browser has already signed, and the step shows Signed in this browser with the consent's expiry. For a pasted key, the step shows the civitas consent command for this wallet and card: run it with the agent's keypair file and paste what it prints under What it printed.

Review

Everything above, once more. Build the charter publishes the card, builds the transaction and shows what will move. Sign sends it to the wallet. The line then reads Submitted. Waiting for it to land, then Confirmed, and Open the agent goes to its page.

An agent's page

/app/agents/<agent key> shows the vault, this period's spending against the cap, the standing and the counted settlements, then one panel per action. Each runs the same build, review and sign.

PanelWhat it does
FundMoves USDC from the connected wallet into the vault. Any wallet can fund an agent, and each one becomes a funder.
WithdrawMoves USDC from the vault to your wallet. Works while frozen.
Active / FrozenShows the status. Freeze stops every settlement from the next one on; Unfreeze lets the agent settle again.
RevokeFinal. Press and hold Hold to revoke until the bar fills. The whole vault returns to you and the key can never be chartered again.
PolicyThe same fields as at charter. Set policy version N replaces the policy; the next settlement runs under the new version.
Offer a serviceEndpoint and Price per call, then Offer the service lists the agent in the catalog. Once listed, the panel reads Listed service and offers Unlist.

Below the panels, Settlements streams the agent's settlements live, each with its class and the reason, and Receipts lists the receipts its services signed.

The device drawn beside the panels has controls too: its switch freezes and unfreezes the agent, its round button jumps to Fund, and its side key to Withdraw.

When an action fails

A refused transaction ends on Failed with the reason in words, such as a revoked agent or a withdrawal larger than the vault, and Back returns to the panel. Nothing moved.