AgentPass Guard is a local-first policy simulator and guard layer for AI agents using paid APIs on Solana.
The point is simple:
Pay.sh and x402 let agents pay. AgentPass Guard helps builders test and enforce when an agent is allowed to pay.
The demo shows a research agent with a human-defined pass:
- Daily budget.
- Allowed API services.
- Auto-approval threshold.
- Expiration.
- Revocation.
- Receipt log.
The agent attempts three actions:
- An allowed pay-per-use API call that auto-approves.
- A non-allowed tool call that is blocked.
- A larger request that requires human approval.
Agentic API payments need small, frequent, programmatic payments with receipts. Solana is a strong fit because fees are low, settlement is fast, and devnet/mainnet transaction links can serve as an inspectable receipt trail.
npm install
npm run devOpen http://127.0.0.1:4173.
The web app itself is static and works without a backend. npm install is only needed for the optional devnet proof script.
No secrets are committed. Copy .env.example to .env for Colosseum Copilot validation:
COLOSSEUM_COPILOT_API_BASE=https://copilot.colosseum.com/api/v1
COLOSSEUM_COPILOT_PAT=your-token-hereReal .env files are ignored by git.
To check the token from this app folder:
npm run copilot:statusnpm run devnet:demoThis script:
- Creates a temporary devnet payer wallet.
- Requests a devnet airdrop.
- Sends a tiny payment to a mock API provider wallet.
- Adds receipt metadata through the Solana Memo program.
- Prints an explorer link for the transaction.
If the public faucet is rate-limited or unreachable, the script falls back to a simulated receipt and exits cleanly. Force the simulation path with:
node scripts/devnet-demo.mjs --simulateOverride the RPC endpoint (e.g. Helius devnet) with SOLANA_RPC_URL.
AgentPass Guard is not trying to replace pay.sh or x402. It sits above the payment rail as the builder-facing policy simulator and control layer:
- Budgets.
- Tool allowlists.
- Approval thresholds.
- Revocation.
- Receipts.
This keeps the product narrow enough for a hackathon demo while pointing toward a real startup wedge: production guardrails for teams running many agents.
Generate the local PPTX:
npm run deckImported Google Slides deck: