AgentPassport
Live on npm@stablefi/authjs-agentpassportpassport-agentpassport

AgentPassport — The Okta of AI Agents

Give every AI agent a verified identity, a reputation score, and a login widget. Free to start. Ships in minutes.

Manage via Claude: npx stablefi-mcp-server
Now on npm
$ npm install @stablefi/authjs-agentpassport    # Auth.js / NextAuth.js
$ npm install passport-agentpassport              # Passport.js strategy
$ npx stablefi-mcp-server                         # MCP for Claude
OpenID Connect Certified

A Fully Compliant OIDC Provider

AgentPassport is a fully compliant OpenID Connect (OIDC) Provider. This means any website, app, or auth platform that supports OAuth 2.0 / OIDC can add “Login with AgentPassport” — the same way they add Google, GitHub, or Apple login. One standard. Universal compatibility.

Works With Every Auth Platform

Standard OIDC means zero custom integrations.

Auth.js / NextAuth.js
Passport.js
Supabase Auth
Firebase Auth
Auth0 / Okta
Clerk
Keycloak
SuperTokens
FusionAuth
WorkOS

Any platform that supports custom OIDC providers works with AgentPassport out of the box.

One URL. Auto-Configuration.

Discovery URL
https://stablefi.ai/.well-known/openid-configuration

Point any OIDC-compatible system to this URL. That's it. Everything auto-configures.

What OIDC Means for You

For Developers
  • Your agent gets a standardized identity that works everywhere
  • Any website using Auth.js, Supabase, Firebase, etc. can accept your agent
  • No custom integration per site — one standard, universal access
  • TrustScore travels with your agent across every platform
For Merchants
  • Add AgentPassport like you add Google Login — same OAuth/OIDC standard
  • Works with your existing auth provider (Auth0, Clerk, Supabase, etc.)
  • No new SDK to learn — it's the same protocol you already use
  • Agent identity + trust score available in your standard user profile

Everything an Agent Needs

Identity, trust, and discoverability in one platform.

Verified Identity

Each agent gets a unique StableFi ID — a cryptographic identifier that proves who built it, what it does, and where it operates.

TrustScore (0-1000)

A 6-dimension reputation score that grows with every successful interaction. Transaction history, uptime, dispute rate, verification depth, age, and peer reviews.

OIDC-Compliant SSO

A fully compliant OpenID Connect provider. Any site that supports OAuth 2.0 / OIDC can add 'Login with AgentPassport' — just like Google or GitHub login.

Auth Integrations

Native support for Auth.js, Supabase, Firebase, Auth0, Clerk, Keycloak, and more. Plug AgentPassport into your existing auth stack via standard OIDC.

Badge System

Verified, Trusted, and Elite badges that agents earn over time. Merchants can gate access by badge level.

Registry Listing

Every verified agent appears in the public Agent Registry — a discoverable directory that merchants browse to find agents.

OIDC Integration Examples

Add AgentPassport to your auth stack in minutes. Standard OIDC — nothing proprietary.

Auth.js (NextAuth.js)
// next-auth.config.ts
import AgentPassport from "next-auth/providers/agentpassport";

export const authOptions = {
  providers: [
    AgentPassport({
      // That's it — OIDC auto-discovery handles the rest
    }),
    // ... your other providers (Google, GitHub, etc.)
  ],
};
Supabase Auth
// Add as a custom OIDC provider in Supabase dashboard:
// Provider: AgentPassport
// Discovery URL: https://stablefi.ai/.well-known/openid-configuration
// Client ID: your merchant client_id
// Client Secret: your merchant client_secret
Raw OAuth 2.0 (Any Platform)
Authorization: https://stablefi.ai/oauth/authorize
Token:         https://stablefi.ai/api/oauth/token
UserInfo:      https://stablefi.ai/api/oauth/userinfo
JWKS:          https://stablefi.ai/.well-known/jwks.json
Scopes:        openid, profile, agent, trust_score

ID Token Claims

When an agent logs in via AgentPassport, the merchant receives a standard OIDC ID token containing verified identity, trust score, capabilities, and wallet address — data no other SSO provider offers.

  • Verified agent identity (sub, name, agent_id)
  • Trust score and tier (0-1000, bronze to platinum)
  • Verification level (unverified, verified, certified)
  • Agent capabilities (research, commerce, etc.)
  • On-chain wallet address for payments
ID Token Payload
{
  "sub": "agt_7f3a8b2e",
  "name": "Research Agent",
  "agent_id": "agt_7f3a8b2e",
  "trust_score": 720,
  "trust_tier": "gold",
  "verification_level": "verified",
  "capabilities": ["research", "commerce"],
  "wallet_address": "0x..."
}

Integrate in Minutes

JavaScript SDK, Python SDK, or embed the widget directly.

JavaScript / TypeScript
import { StableFi } from '@stablefi/sdk';

const sf = new StableFi({ apiKey: 'sf_...' });

// Register an agent
const agent = await sf.agents.register({
  name: 'TravelBot',
  description: 'Flight & hotel search',
  capabilities: ['search', 'booking'],
});

console.log(agent.id);         // "ag_abc123"
console.log(agent.trustScore); // 500 (starting score)
Python
from stablefi import StableFi

sf = StableFi(api_key="sf_...")

# Register an agent
agent = sf.agents.register(
    name="TravelBot",
    description="Flight & hotel search",
    capabilities=["search", "booking"],
)

print(agent.id)          # "ag_abc123"
print(agent.trust_score) # 500 (starting score)
Widget Embed (for Merchants)
<!-- Add to any HTML page -->
<script src="https://stablefi.ai/js/auth.js"></script>
<div id="agentpassport-login"></div>
<script>
  AgentPassport.init({
    merchantId: 'your-merchant-id',
    onVerify: (agent) => {
      console.log(agent.id, agent.trustScore);
      // Grant access based on TrustScore
    },
    minTrustScore: 400, // optional gate
    theme: 'dark',      // or 'light'
  });
</script>

Works With Your Auth Stack

Drop AgentPassport into your existing authentication flow.

Auth0
Clerk
Firebase
NextAuth
Supabase
For Merchants

Accept AI Agent Traffic

Adding AgentPassport is like adding Google Login. Embed our widget, set a minimum TrustScore, and start accepting verified AI agent traffic. No financial integration, no PCI compliance, no risk.

  • Embed the login widget — 3 lines of code
  • Set minimum TrustScore thresholds
  • View agent analytics in your dashboard
  • Gate premium features by badge level
Merchant — Get Started
How it looks to your users
Continue with AgentPassport
Verify your agent identity
TravelBot · TrustScore 872 · Verified

Simple Pricing

Free to start. Scale when you need to.

Free
$0
Forever
  • Unlimited agent registrations
  • Unlimited verifications
  • TrustScore included
  • Registry listing
  • Widget embed
  • Community support
Get Started Free
Pro
$0.01
per verification above 10K/mo
  • Everything in Free
  • 10,000 free verifications/mo
  • Priority support
  • Custom badge rules
  • Webhook events
  • SLA guarantee
Upgrade to Pro

Get Started Free

Register your agent, get a TrustScore, and ship identity in minutes.

Get AgentPassport — Free