subscription-oauth

Configures OAuth login for AI subscriptions to authenticate the Collar agent without API keys.

1|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/specdog/collar --skill subscription-oauth-specdog
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: subscription-oauth
Source: https://github.com/specdog/collar/tree/main/skills/subscription-oauth
Command: npx skills add https://github.com/specdog/collar --skill subscription-oauth-specdog

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Users who already pay for AI subscriptions like ChatGPT Plus, Qwen Pro, or xAI SuperGrok often lack API keys and cannot connect those subscriptions to an agent harness. This Skill guides OAuth-based login so existing subscriptions authenticate the Collar agent directly. ## Core Features & Use Cases - Multi-Provider OAuth Login: Supports openai-codex, qwen-oauth, xai-oauth, nous, anthropic, google-gemini-cli, and minimax-oauth via the dag auth add command. - Headless Authentication: Provides copy-URL and SSH port-forwarding workflows for environments without a browser. - Troubleshooting Guidance: Documents known pitfalls such as 401 re-auth errors, provider naming mismatches, and Anthropic/Gemini OAuth limitations, with OpenRouter API key as fallback. - Use Case: A user with a ChatGPT Plus subscription runs dag auth add openai-codex, completes device-code login, sets the provider with dag model, and verifies with a test chat query. ## Quick Start Ask the agent to log in with your ChatGPT Plus subscription using OAuth instead of an API key.

Frequently Asked Questions about subscription-oauth

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

FAQPage Schema
How do I use ChatGPT Plus without an API key?▼

Run `dag auth add openai-codex` to start OAuth device-code login with your ChatGPT Plus subscription. After authorizing at chatgpt.com/device, the token is saved and you can select the provider with `dag model`.

How to authenticate an AI agent with an existing subscription?▼

Use `dag auth add` with the matching provider: openai-codex, qwen-oauth, xai-oauth, nous, anthropic, google-gemini-cli, or minimax-oauth. Verify with `dag auth list` and a test chat query.

Can I use OAuth login on a headless server without a browser?▼

Yes. Copy the auth URL to another device such as a phone, or forward the port with `ssh -L 8080:localhost:8080`. If neither works, fall back to an OpenRouter API key.

Why does OAuth login return a 401 error?▼

A 401 error means the saved token is expired or invalid and requires re-authentication. Run `dag auth add` again for that provider, or use `dag auth reset PROVIDER` before retrying.

What are the limitations of OAuth compared to API keys?▼

OAuth provides lower throughput than API-key access, making it suitable for chat but not batch workloads. Anthropic OAuth may fail with a 404 on the token endpoint, and Gemini OAuth may not support auxiliary tasks like vision.