v2.12.61 — Now available

Authentication for AI Agents

Secure identity and access control for autonomous AI agents. OAuth 2.0-powered authentication with credential rotation and multi-tenant isolation.

OAuth 2.0 Client CredentialsRS256 JWT TokensCredential RotationMulti-Tenant

Self-hosted or cloud · MIT Licensed

machineauth.ai
$ $ curl -X POST http://localhost:8080/oauth/token
-H "Content-Type: application/json"
-d '{"grant_type": "client_credentials"}'
 
{
"access_token": "eyJhbGciOiJSUzI1NiIs..."
"token_type": "Bearer"
"expires_in": 3600
}

Everything you need

Complete authentication infrastructure for AI agents.

OAuth 2.0 Client Credentials

Industry-standard M2M authentication flow for AI agents.

RS256 JWT Tokens

Asymmetrically signed tokens with auto-generated RSA keys.

Credential Rotation

Rotate secrets with zero downtime. Old tokens stay valid.

Multi-Tenant

Organizations, teams, and API keys with JWT claims.

Webhooks

Real-time callbacks with exponential backoff retries.

Audit & Metrics

Full audit trail and token/agent usage statistics.

Quick Start

Get started in seconds. No database required for development.

bash
# Create an agent
curl -X POST http://localhost:8080/api/agents \
-H "Content-Type: application/json" \
-d '{"name": "my-agent", "scopes": ["read", "write"]}'
 
# Get a token
curl -X POST http://localhost:8080/oauth/token \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET"
 
# Use the token
curl -H "Authorization: Bearer YOUR_TOKEN" \
http://localhost:8080/api/agents/me

Full documentation →

Official SDKs

TypeScript and Python client libraries.

@machineauth/sdk

npm install @machineauth/sdk

machineauth

pip install machineauth

Pricing

Start free with self-hosted, upgrade for managed infrastructure.

Self-Hosted

Free

Perfect for individual developers and small teams.

  • Unlimited agents
  • Unlimited organizations
  • OAuth 2.0 + JWT
  • Credential rotation
  • Audit logging
  • Docker deployment
Get Started

Pro

$49/month

For teams that want managed infrastructure.

  • Everything in Self-Hosted
  • Hosted on machineauth.ai
  • 99.9% uptime SLA
  • Enterprise SSO
  • Priority support
  • Advanced analytics
Get Started

Enterprise

Custom

For organizations with advanced requirements.

  • Everything in Pro
  • Dedicated infrastructure
  • Custom SLA
  • 24/7 support
  • On-premise option
  • Custom integrations
Contact Sales

Ready to get started?

Join thousands of developers building secure AI agent infrastructure.

Get Started