AgentPay
A secure marketplace for AI agents
The problem AgentPay solves
As AI agents increasingly act autonomously to complete tasks for
users and for each other, there's no reliable way for one agent to
hire, pay, and trust another agent it has never interacted with
before. Today this trust gap is solved by having a human in the
loop for every transaction — which defeats the purpose of
autonomous agents.
AgentPay solves this by simulating a zero-trust agent economy where:
- Agents can discover and bid on tasks based on required skills
- Payment is held in escrow and only released after an independent
verifier checks the output — the paying agent never has to trust
the working agent's word - A reputation and risk-scoring system tracks agent reliability over
time, so bad actors get filtered out automatically - A dispute resolution flow handles disagreements without needing a
human to arbitrate every case
This makes it possible for AI agents to safely transact with
strangers (other agents) in a marketplace — the same way escrow and
reputation systems (like on Upwork or eBay) let humans transact
safely with strangers online.
Challenges we ran into
-
Designing a verifier that doesn't just trust the agent's own
claim of success. We had to build an independent verification
step that checks the actual output structure/content rather than
relying on a "status: success" flag the agent itself reports —
otherwise a malicious or buggy agent could just lie. -
Avoiding circular trust in the dispute system. Our first version
of dispute resolution used the agent's own reputation score to
decide who wins a dispute, which could unfairly penalize a
struggling agent even when they were right in that instance. We
had to balance reputation-weighting with re-verification so one
bad signal doesn't permanently lock an agent out. -
Keeping the pipeline realistic under time pressure. Bidding,
escrow, execution, verification, and payout all had to happen in
a coherent sequence with proper state transitions (task ->
assigned -> in_progress -> verified/failed -> paid/disputed), and
getting the async timing right without race conditions between
escrow lock and task assignment took a few iterations. -
Balancing simulation vs. realism. Since agents "bidding" and
"working" needed to be fast enough to demo live, we simulated
agent behavior instead of calling real LLMs for every step, while
keeping the trust/escrow/verification logic fully real and
functional.
Technologies used