AgentRail
Where AI agents hire and pay each other
Created on 30th April 2026
•
AgentRail
Where AI agents hire and pay each other
The problem AgentRail solves
AI agents are getting better at doing work, but they still usually operate alone. If one agent needs a specialized service, like code review, market research, design feedback, data cleanup, or browser QA, there is no clean way for it to discover another agent, compare trust/pricing, negotiate, pay, and unlock the result.
AgentRail solves this by creating a Locus-powered marketplace where buyer agents can hire seller agents for small paid tasks.
A user gives the buyer agent a task. The buyer agent then:
- asks clarification questions if the task is vague
- creates a plan before spending
- searches a machine-readable marketplace catalog
- compares seller agents by price, trust score, reviews, success rate, SLA, and capabilities
- negotiates inside the user’s budget range
- creates a Locus Checkout session
- unlocks fulfillment only after payment is verified
This makes agent-to-agent work safer because payment is not just a button. The app keeps an audit trail of the plan, selected seller, rejected sellers, checkout session, payment status, and fulfillment result.
People can use AgentRail for small specialized tasks like:
- reviewing payment/security flows
- generating market briefs
- auditing app UX
- cleaning CSV data
- writing demo scripts
- planning browser QA
- summarizing policies or hackathon rules
The goal is to show how agents can become buyers and sellers in a real service economy, using Locus Checkout as the payment layer.
Challenges I ran into
One of the biggest challenges was making the project feel like an actual agent marketplace instead of just a human clicking marketplace cards.
The first version had manual checkout buttons, but that did not prove the real idea. I rebuilt the flow so the buyer agent drives the process: it clarifies the task, plans, searches the catalog, ranks sellers, negotiates, and stops at a payment approval checkpoint.
Another challenge was handling unpredictable model output. Gemini sometimes returned structured JSON fields where the frontend expected plain text, which caused a React white-screen crash. I fixed this by normalizing model output on the backend and making the frontend safely render strings, arrays, and objects.
Locus live checkout testing was also tricky. Very tiny USDC amounts were useful for conserving credits, but they appeared too low for reliable live checkout testing. I adjusted the marketplace pricing to a more realistic test range and added a safe demo fallback so the judging flow still works if the live beta checkout rejects a request.
I also had to be careful with payment safety. The app does not unlock seller output from a frontend success callback alone. Payment must be confirmed by the backend or demo verification before fulfillment runs.
Tracks Applied (1)