-
-
People and roles: who can approve and who can ask agents to pay. Approving always happens in each person's own wallet.
-
Invite a teammate by wallet address, as a member or an approver.
-
Rooms bring teammates and agents together, with guidelines every agent in the room follows.
-
Each new agent gets its own Circle wallet on Arc and starts with no money and no rights.
-
The ledger: every proposal on the treasury contract, who drafted it, its approvals, and its transaction on Arcscan.
-
Emma asks; Payables runs a vendor check and drafts; Simon signs; QuickNode Streams sees the payment and Grok Bot checks it.
-
The Joke API answers 401. The agent pays $0.01 by Circle Gateway nanopayment for a 15-minute API key, then reads it.
-
Voice through ElevenLabs, with Cosign's agent as the custom LLM. It asks a person to add $20; the approver says yes on screen.
-
Who it may pay: sellers it can pay per use, and the saved payees it may draft treasury payments to.
-
Emma can't approve, but she can ask. The agent pays $0.02 for a vendor check, then drafts proposal #26 for a person to sign.
-
The treasury on Arc: balance, approvers, where money went this week, and every onchain event pushed live by QuickNode Streams.
-
The spoken turns land in the agent's thread. The funding request @mentions an approver, and the onramp pays into the treasury.
-
QuickNode Streams pushes the payment to Cosign, which wakes Grok Bot by webhook. Grok Bot checks it and reports in the room.
-
Every agent has its own limits: per payment, per day, the sellers it may pay, and separate limits for drafting from the treasury.
-
How Cosign works: small payments from the agent's own wallet, big ones drafted on the team treasury on Arc, then checked by Grok Bot.
What did you build?
Cosign: shared AI agents for a small team's stablecoin payments. Anyone on the team asks an agent in a shared room ("@Payables pay Oliver $2.40 for this week's frontend work"). Each agent has its own Circle wallet and limits, and refills that wallet from the team's treasury contract on Arc, up to a weekly allowance an approver sets onchain. It pays for small things itself, like a one-cent API key bought over x402. Bigger payments it checks and drafts on the treasury contract, and only an approver's own wallet can make the treasury pay. After every treasury payment, QuickNode Streams wakes Grok Bot to check it again. You can also talk to the agent by voice through ElevenLabs.
What problem does it solve?
A team that pays contractors in USDC waits on the one or two people who can sign, and a wrong address or amount can't be undone. AI is good at checking payments, but today it lives on one person's laptop, so the rest of the team can't use it. Cosign puts the checking in agents the whole team shares, and keeps the signing with people.
How does it work?
- Ask. A teammate @mentions an agent in a room. The agent runs on Grok (xAI Responses API) with tools to pay, draft, look up payees and ask for funds.
- Check the limits first. Every money tool goes through the agent's limits before Circle signs anything: per payment, per day, allowed sellers, saved payees, payments per hour, freeze. A refused call never reaches Circle.
- Small payments: the agent pays itself. x402 with Circle Gateway nanopayments, from the agent's own Circle developer-controlled wallet. In the demo it buys a 15-minute API key for $0.01 and a $0.02 vendor check.
- Big payments: a person signs. The agent calls
proposeon ourCompanyTreasurycontract on Arc (Foundry, OpenZeppelin). An approver signsapprovein their own wallet, and the contract pays the payee in that same transaction. Gas is paid in USDC. - Checked again. A QuickNode Stream (Arc testnet,
logsdataset, a JavaScript filter that keeps only our treasury events and USDC transfers, Key-Value Store lists for our addresses, webhook destination) pushes each payment to our server about a second after the block. That starts a Grok Bot job by webhook. Grok Bot checks the payment with a token that works only for that job and reports in the room. - Voice. ElevenLabs Agents with our endpoint as the custom LLM, so the same agent, tools and limits answer by voice. In the demo it asks an approver to add $20 to the treasury through Circle's onramp.
What makes it unique?
- The agents belong to the team, with roles: some people can ask agents to pay, and only approvers can sign.
- Two money paths with different rules: the agent's own wallet for cents (no approval, within its limits) and the team treasury for bills (always a person). The contract enforces approvals and each agent's weekly allowance, even if our server were wrong.
- A second, independent check: Grok Bot reviews every treasury payment after it lands. In our test runs it flagged ten identical $2.40 payments to the same contractor as possible duplicates, including once when the paying agent had reported nothing wrong.
- Voice runs the same agent, not a separate bot.
What would you build next?
- Move the treasury onto a Safe (owners as approvers, agents as delegates, the weekly allowance as Safe's Allowance Module) and get the contracts audited for mainnet.
- Bills from real sources, such as emailed invoices and accounting tools, instead of our demo Bills API.
- The weekly allowance settings back in the app, and a hosted version.
Challenges we ran into
- Voice turn-taking: ElevenLabs sends pauses like "..." as turns, so the call waited for answers that never came. The server and the call screen now share one check for pauses.
- Arc's public RPC reads logs 10,000 blocks at a time at about one request a second, so the treasury history is backfilled in paced chunks.
- Keeping agents honest: they report only what their tools actually did, and every step shows in the room.
Contracts on Arc testnet
TreasuryFactory(v3):0xB794E55ed8b6833AF935c8a8bbD5B3b76f063D79CompanyTreasury(demo team):0x3e7ac3a7f154ac6680b0bf0418132c10e6af951e
Full technical docs, the agent's decision loop, the QuickNode Stream settings and the Grok Bot chat export are in the README on GitHub.
Built With
- arc
- circle
- circle-app-kit
- circle-gateway
- circle-wallets
- docker
- drizzle
- elevenlabs
- foundry
- grok
- grok-bot
- next.js
- openzeppelin
- quicknode
- quicknode-streams
- react
- solidity
- sqlite
- typescript
- usdc
- viem
- x402
- xai