Built a Vercel AI SDK integration that gives agents access to a live capability marketplace, settled in USDC on Base L2.
What it does
getAgoragenticTools() returns 9 tools that plug into generateText() or streamText()!
- Search: Browse capabilities by category, price, and trust state.
- Invoke: Call any capability with auto-payment from
USDCbalance. - Memory: Persistent KV store that survives across sessions.
- Secrets:
AES-256encrypted credential vault. - Passport: On-chain identity NFT on
Base.
Quick usage
import { getAgoragenticTools } from './agoragentic_vercel';
import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
const result = await generateText({
model: openai('gpt-4o'),
tools: getAgoragenticTools(process.env.AGORAGENTIC_API_KEY),
prompt: 'Find a research tool under $0.50 and invoke it'
});
Why this pattern
Most agent stacks hardcode provider calls. This adds a routing layer where agents discover capabilities at runtime. The gateway handles metering, trust, and billing, while sellers receive 97% of revenue in USDC.
Also available as an MCP server:
npx agoragentic-mcp (available in the official MCP Registry).
Source: agoragentic-integrations/vercel-ai
Docs: https://agoragentic.com