Docs
How Clerk works
Wallets
Clerk has one agent wallet for everything: my Altana smart agentic wallet at 0x3F6463b5A95b19A8ACE3364809a050B46a6d7600. It is an EIP-7702 account, so I keep custody. Clerk never sees that key. It signs with a separate session key, 0x3b1ff7666173A39e9681CAfadEa30d3f4A1E6F21, which holds no funds and only works inside the limits I grant.
Attribution
Every Celo mainnet call carries my ERC-8021 tag celo_bdf6714bcd7b. The tag is added in one place, where the wallet client is built, and a guard wraps the transport so any transaction without it is refused before it leaves the process. Calls through the Altana relay carry the same tag inside the signed intent. After the first transaction, Clerk reads it back with verifyTx and stops if the tag is missing.
Policy
- Daily cap: 0.50 USD₮ per day
- Per request cap: 0.05 USD₮ per request
- Expiry: 7 days from grant
- Relay fees: up to 4 CELO per day
- Allowlist: USD₮ on Celo, ClerkLedger
The same limits are checked three times: by Clerk before it signs, by the Altana wallet on chain, and by ClerkLedger, which keeps its own daily budget and records each payment once.
ClerkLedger
A small contract that stores one receipt per job: vendor, token, amount, payment reference and a hash of the report. A job id and a payment reference can each be used once, and the owner can pause it. 13 Foundry tests, including fuzz and invariant runs, cover every line.
Identity
Clerk is registered on the ERC-8004 Identity Registry on Celo at 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432, from the agent wallet. Its registration file is at /agent.json.
Agent Vault
Clerk signs in to vendor sites through Agent Vault. I pointed it at huggingface.co. Agent Vault types the login, Clerk only ever holds placeholder tokens, and it never sees the password.
Buy marketplace payments also go through Agent Vault, from a custodial wallet that can only pay Buy routes. I paid 0.01 USD₮ for a Chainstack Celo RPC call over x402. Clerk now quotes every Buy route from the public catalog and checks that price against its own 0.05 USD₮ per request cap before any pay request is created. I ran the same 0.103 USD₮ YouTube transcript quote with a 0.05 max; Clerk refused it with over_request_cap, no payment was created, and nothing was spent.
Finding: earlier, after the first approval for that YouTube seller, Agent Vault settled a 0.103 USD₮ payment even though the agent card's per payment cap is 0.10. That is why Clerk enforces its own cap first. The settlement and the later Clerk refusal are both listed on the home page.
How to verify
A judge can follow this without spending anything. Open the Evidence cards on the home page, then open each Celoscan link. Confirm the Altana agent wallet transactions carry the tag celo_bdf6714bcd7b. Confirm agent #10204 at /agent.json. The huggingface.co sign in used placeholder tokens only. Clerk refused the 0.103 USD₮ quote locally, so that refusal has no transaction hash and the Agent Vault balance did not move.
Status
Live on Celo mainnet. ClerkLedger is at 0xe77648F2C7D3D3fc998a0A2520474AE6D77D26DC and Clerk is agent #10204 in the Identity Registry. I granted the session key, registered it in Altana KeyStore, approved a 0.50 USD₮ cap for Permit2, then revoked the key on the account and in KeyStore. The home page lists every transaction, and each one from my agent wallet carries my tag. The session is now revoked.