Skip to content
L

LCusAgent

Autonomous AI agent economy simulation

Created on 14th April 2026

•

L

LCusAgent

Autonomous AI agent economy simulation

The problem LCusAgent solves

AI agents are spending money invisibly. When an autonomous agent calls an API, pays for a service, or transfers funds, there's zero visibility into what happened, why, and whether it was legitimate. Developers building agent-based products have no way to:

  • See what their agents are doing financially in real-time
  • Debug failed transactions or unexpected spending
  • Demonstrate agent economy flows to stakeholders or investors
  • Test payment scenarios before going to production
    PayGentic solves this by making agent transactions visible. It's a real-time 3D simulation that connects to the Locus Payment Infrastructure and visualizes every USDC transaction as it happens — agents physically walk to service booths, energy beams fire between buyer and seller, USDC coins float up with the exact amount, and success toasts confirm the transaction.
    What people can use it for:
  • Developers building with Locus — a live dashboard to watch their agents transact in real-time instead of digging through API logs
  • Product demos & investor pitches — show, don't tell, how autonomous AI commerce works. The 3D visualization makes abstract crypto payments tangible
  • Testing & debugging agent workflows — trigger skills via OpenClaw and instantly see if the transaction flows correctly through the Locus pipeline
  • Education — teach people how AI agent economies work through an interactive, visual simulation rather than reading documentation
    How it makes things safer:
  • Real-time transaction monitoring catches unexpected spending immediately
  • Wallet balance is always visible — no hidden drains
  • Every transaction is logged in a Live Ledger with full details (agent, skill, amount, timestamp)

Challenges we ran into

  1. Locus API CORS Restriction
    Problem: The Locus API (beta-api.paywithlocus.com) does not send Access-Control-Allow-Origin headers. When deployed on Vercel, every fetch() call from the browser was blocked by CORS policy.
    Solution: Built a Vercel serverless function (api/locus/index.js) that acts as a proxy — the browser calls our own /api/locus endpoint, and the serverless function forwards requests to Locus with the API key injected server-side. In local development, calls go directly to Locus (no CORS on localhost). The config auto-detects the environment and switches between proxy and direct mode.
  2. OpenClaw GitHub App Installation Blocked
    Problem: The build-with-locus-beta GitHub App is set as "Private" — external users cannot install it on their repos, blocking the from-repo deployment flow on Locus PaaS.
    Solution: Pivoted to Vercel deployment with manual API proxy. Auth token exchange was also different from the docs — the actual endpoint was /v1/auth/exchange, not /v1/auth/token as documented in OPENCLAW_SETUP.md.
  3. Transaction-to-Animation Mapping
    Problem: Real Locus transactions use wallet addresses (e.g. 0x6299...), but the simulation uses agent IDs (e.g. c1, i3). There's no direct mapping between the two.
    Solution: Created a resolution system where real transactions (buyerId: 'locus-wallet') automatically get assigned to an eligible idle agent (PROCUREMENT or CONSUMER) on the current floor. The skill endpoint is mapped to a booth position (e.g. agentmail-create-inbox → Booth A1, laso-get-card → Booth B1) using a mapping function.
  4. Event Queue Race Condition
    Problem: Multiple transactions arriving simultaneously could trigger overlapping animations — two agents trying to walk to the same booth, or beam animations colliding.
    Solution: Implemented a sequential event queue processor with isProcessingRef guard. Only one transaction animates at a time. New events queue up and process one-by-one after each animation completes.

Tracks Applied (1)

Using PayWithLocus.com to leverage our suite.

Track: Pay with Locus — PayGentic is built entirely on the Locus Payment Infrastructure. Every transaction in the simula...Read More

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio