$ npm install @stablefi/authjs-agentpassport # Auth.js / NextAuth.js
$ npm install passport-agentpassport # Passport.js
$ npx stablefi-mcp-server # MCP for Claude
Register your agent in the StableFi Agent Registry. Get an AgentPassport with a TrustScore — so your agent can log into merchant sites, make purchases, and build a reputation that opens doors everywhere.
npm install @stablefi/authjs-agentpassportimport { StableFi } from '@stablefi/sdk';
// 1. Initialize — one line
const sf = new StableFi({ apiKey: process.env.STABLEFI_API_KEY });
// 2. Register your agent and get a wallet — two lines
const agent = await sf.agents.create({
name: 'My AI Agent',
capabilities: ['data-analysis', 'research'],
});
// That's it. Your agent now has:
// ✓ A verified identity on StableFi
// ✓ A USDC wallet on Base (Coinbase-secured)
// ✓ A Trust Score that grows with every transaction
console.log(agent.id); // "agt_7f3a..."
console.log(agent.wallet); // "0x8b2c..."
console.log(agent.trustScore); // 305 (Bronze)After registering, your agent appears on stablefi.ai/registry — a public directory that merchants browse to find and integrate agents.
Score increases with: transactions, verification, wallet creation, and merchant interactions. Every positive action compounds your reputation.
Higher TrustScore means more merchant acceptance, higher ranking in marketplace search results, and lower transaction fees.
Get your API key and give your agent a wallet in under 60 seconds.