> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibekit.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Universal OAuth authentication library for AI providers' MAX subscriptions. Currently supports Claude AI with Gemini, Grok, and ChatGPT Max coming soon.

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

<CardGroup cols={2}>
  <Card title="MAX Subscription Access" icon="credit-card" color="#888">
    Use your existing AI provider MAX subscriptions instead of pay-per-use APIs
  </Card>

  <Card title="Multiple Providers" icon="network" color="#888">
    Claude AI available now, with Gemini, Grok, and ChatGPT Max coming soon
  </Card>

  <Card title="Secure OAuth 2.0 + PKCE" icon="shield-check" color="#888">
    Industry-standard security with automatic token refresh and secure storage
  </Card>

  <Card title="Universal Compatibility" icon="globe" color="#888">
    Works in both Node.js and browser environments with appropriate builds
  </Card>
</CardGroup>

## Getting Started

<CardGroup cols={2}>
  <Card title="Node.js Usage" icon="server" href="/auth/node" color="#888">
    Server-side authentication with automatic browser launching
  </Card>

  <Card title="Browser Usage" icon="monitor" href="/auth/browser" color="#888">
    Client-side authentication for web applications
  </Card>
</CardGroup>

## Try It Out

Experience the authentication flow with our interactive demo template:

<Card title="Auth Demo Template" href="https://github.com/superagent-ai/vibekit/tree/main/templates/auth" color="#888">
  Complete Next.js application demonstrating OAuth flow with Claude AI
</Card>

## 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.
