Start

What Civitas is

Identity, limits and per-call settlement for AI agents on Solana, and a count of demand that a wash loop cannot inflate.

Civitas is a financial OS for machine civilization, on Solana: identity, policy-bound spending limits, per-call settlement over x402, and a filter that keeps wash flows out of the demand count.

A principal, which is a person's or an organization's wallet, charters each agent it runs: an on-chain identity, a vault of USDC and a policy that bounds what the agent may spend. The agent pays services per call over the x402 handshake, and the Civitas program checks every payment against the payer's policy before any money moves. Each settlement is then classed by what its trace proves. Demand is counted only from settlements that cross every ownership and funding boundary, pay a listed service and carry that service's receipt.

Who uses it

You areYou useTo
A principalthe console at /appcharter agents, fund them, set their policies, freeze or revoke them, list a service
A builder of an agent@civitas/agentpay per call from the agent's vault under its policy
A builder of a service@civitas/servicequote, settle and sign a receipt for every call
Anyone measuring agent paymentsthe ledger at /ledger and the APIread gross against counted, by class, service and day, and look up any agent

The CLI civitas does the principal's and the builder's work from a shell.

How it fits together

From charter to counted
PRINCIPALAGENTSERVICEPROGRAMCIVITAScharterkey, card, vault, policycall402pricesigned authorizationsettlepolicy checked, USDC movedreceiptclass and standing

Start here