"AI-Powered Autonomous Payment Agent reviving HTTP 402. Built with Gemini, Circle, and Arc."
arc-pulse is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
Autonomous AI-Powered Payment Agent for Agentic Commerce
Hackathon Submission for Agentic Commerce on Arc
Arc-Pulse is an autonomous API broker agent that detects premium API payment requirements (HTTP 402) and autonomously processes USDC payments on Arc L1 to unlock data access.
1️⃣ Agent requests premium API data
↓
2️⃣ API returns HTTP 402 Payment Required
↓
3️⃣ Gemini AI analyzes payment request
↓
4️⃣ Agent autonomously pays USDC via Circle Wallet
↓
5️⃣ Transaction confirmed on Arc blockchain
↓
6️⃣ Agent retries request with payment proof
↓
7️⃣ Premium data unlocked! ✅
| Layer | Technology |
|---|---|
| Blockchain | Arc L1 (Arbitrum Sepolia) |
| Payments | Circle Developer-Controlled Wallets, USDC |
| AI Agent | Gemini API with Function Calling |
| Backend | Express, tRPC, TypeScript |
| Frontend | React 19, TailwindCSS |
| Database | PostgreSQL, Drizzle ORM |
| Testing | Vitest, Playwright |
# Clone the repo
git clone https://github.com/your-username/arc-pulse.git
cd arc-pulse
# Install dependencies
pnpm install
# Setup environment
cp .env.example .env
# Edit .env with your API keys
# Setup database
pnpm db:push
# Start development server
pnpm dev
Navigate to http://localhost:5173/dashboard to see the agent in action!
arc-pulse/
├── client/ # React frontend
│ └── src/
│ ├── pages/ # Dashboard, Home
│ └── components/ # UI components
├── server/ # Express backend
│ ├── _core/ # tRPC, LLM, auth
│ └── modules/ # Core business logic
│ ├── paymentService.ts # Payment orchestration
│ ├── circleWallet.ts # Circle SDK integration
│ ├── geminiAgent.ts # AI decision engine
│ ├── arcBlockchain.ts # Transaction verification
│ └── walletFactory.ts # Wallet fallback pattern
├── drizzle/ # Database schema
└── tests/ # Test suites
See .env.example for all required configuration.
Required for Demo:
CIRCLE_API_KEY - Circle Developer API keyCIRCLE_ENTITY_SECRET - 32-byte hex entity secretCIRCLE_WALLET_SET_ID - Your wallet set IDGOOGLE_GEMINI_KEY or BUILT_IN_FORGE_API_KEY - AI API key# Run unit tests
pnpm test
# Run e2e tests
pnpm test:e2e
The dashboard at /dashboard demonstrates the complete flow:
MIT
Built with ❤️ for the Agentic Commerce on Arc Hackathon
What we loved:
POST /transfers endpoint which we used for the main payment flow.Challenges we faced:
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Self-healing infrastructure for AI agent payments. 90.3% auto-recovery.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.