Now in public beta

OAuth infrastructure
for AI agents

Your agent needs user permissions. We handle the tokens.
Storage, encryption, refresh. All managed.

const token = await agentauth.getToken('user_123', 'google')
// Token is always valid. We handle refresh.
The problem

OAuth is a pain

When your AI agent needs to:

  • Send emails from a user's Gmail
  • Read a user's Google Calendar
  • Access a user's Google Drive

You need OAuth tokens. For every single user. That means building:

  • OAuth consent flows
  • Secure token storage
  • Automatic token refresh
  • Expiration handling
The solution

Three lines of code

// Generate a URL for your user to connect
const url = agentauth.getConnectUrl({ 
  userId: 'user_123', 
  service: 'google',
  scopes: ['gmail.send']
})

// After they connect, get their token anytime
const token = await agentauth.getToken('user_123', 'google')

// Token is always valid. Use it with Google APIs.

We handle storage, encryption, and refresh. You ship faster.

How it works

Four steps to OAuth bliss

01

Add credentials

Add your Google OAuth credentials to the dashboard

02

Generate URLs

Generate connect URLs for your users with one API call

03

Users connect

Users see Google's consent screen and approve access

04

Get tokens

Get valid tokens anytime. Auto-refresh included.

Built for developers

Everything you need, nothing you don't

AES-256 encryption

All tokens encrypted at rest with enterprise-grade security

Auto refresh

Tokens automatically refresh before expiry. Always valid.

Simple API

Two endpoints. getConnectUrl() and getToken(). That's it.

TypeScript SDK

Fully typed SDK with IntelliSense support

Your OAuth app

Users see your app name, not ours. Full white-label.

Multiple scopes

Gmail, Calendar, Drive. Request what you need.

Start building in 5 minutes

Free while in beta. No credit card required.

Get started free
AgentAuth | OAuth infrastructure for AI agents