The @vibe-kit/auth package provides secure OAuth authentication for AI providers’ MAX subscriptions, allowing you to leverage your existing subscriptions programmatically instead of paying per API call.

Key Features

MAX Subscription Access

Use your existing AI provider MAX subscriptions instead of pay-per-use APIs

Multiple Providers

Claude AI available now, with Gemini, Grok, and ChatGPT Max coming soon

Secure OAuth 2.0 + PKCE

Industry-standard security with automatic token refresh and secure storage

Universal Compatibility

Works in both Node.js and browser environments with appropriate builds

Getting Started

Try It Out

Experience the authentication flow with our interactive demo template:

Auth Demo Template

Complete Next.js application demonstrating OAuth flow with Claude AI

Why Use MAX Subscriptions?

Instead of paying per API call, leverage the subscriptions you already have:
  • Cost Effective: Use your existing MAX subscriptions instead of pay-per-use APIs
  • Higher Limits: MAX subscriptions often have higher rate limits and priority access
  • Latest Models: Access to the newest and most capable models in each provider’s lineup
  • Consistent Experience: Same interface across different AI providers
Whether you’re building a CLI tool, web application, or any project that needs AI capabilities, @vibe-kit/auth provides a secure, scalable authentication foundation that works with your existing subscriptions.