llm-provider-auth

Implement subscription-based LLM authentication using OAuth flows and token management.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/kangnam7654/ai-config-sync --skill llm-provider-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-provider-auth
Source: https://github.com/kangnam7654/ai-config-sync/tree/main/claude-code/skills/llm-provider-auth
Command: npx skills add https://github.com/kangnam7654/ai-config-sync --skill llm-provider-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables developers to leverage powerful LLM APIs (like ChatGPT, Gemini, Copilot, Claude) using their existing subscriptions, bypassing the need for direct API key management and associated costs.

Core Features & Use Cases

  • Subscription-Based Access: Integrates with various LLM providers to use their APIs through your active subscriptions.
  • OAuth & Device Flows: Implements secure authentication flows (PKCE, Device Flow) for different providers.
  • API Endpoint & Header Management: Details the specific endpoints, headers, and authentication methods for each LLM provider.
  • Use Case: A developer wants to integrate Claude's advanced reasoning capabilities into their application but prefers to use their existing Claude Pro subscription rather than paying for API credits. This Skill provides the exact steps to authenticate and call the Claude API using their subscription token.

Quick Start

Follow the guide to implement the PKCE OAuth flow for OpenAI Codex.

Frequently Asked Questions about llm-provider-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use my ChatGPT or Claude subscription for API access instead of API keys?

You can use your existing LLM subscriptions for API access by implementing provider-specific OAuth flows. This approach bypasses direct API key management, allowing you to authenticate via subscription tokens using PKCE and device flow mechanisms.

What is the PKCE OAuth flow and when do I need it for LLM provider authentication?

The PKCE OAuth flow is a secure authentication mechanism used to obtain subscription-based access tokens without exposing API keys. You need it when implementing interactive authentication for providers like OpenAI Codex or Claude, ensuring secure token exchange.

Does this guide cover authentication steps for GitHub Copilot and Gemini CLI?

Yes, this guide covers authentication flows and API endpoints for multiple providers including GitHub Copilot and Gemini CLI. It details the specific headers, API call formats, and device flow mechanisms required to access these services using active subscriptions.

How do I manage token renewal for subscription-based LLM API calls?

Token renewal for subscription-based LLM API calls is managed through provider-specific token refresh mechanisms detailed in the guide. You implement automated renewal processes to maintain continuous access using the refreshed subscription tokens.

What are the limitations of using subscription tokens instead of API keys for LLM access?

Using subscription tokens instead of API keys ties your access to the terms and rate limits of your active provider subscription. This approach requires implementing specific OAuth device flows and managing token expiration for each provider, rather than using static API keys.