AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Claude Oauth Auth

skill-aberson-claude-skills-claude-oauth-auth · by aberson

How to authenticate with Claude using a subscription OAuth token instead of an API key. Use when setting up Claude Code sessions, building tools that invoke the claude CLI, or when a user has a Claude subscription but no API key.

No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-aberson-claude-skills-claude-oauth-auth

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aberson-claude-skills-claude-oauth-auth)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Claude Oauth Auth? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Claude OAuth Authentication (no API key needed)

Requirement: the user must have an active Claude subscription (Pro, Max, or Team) for this method to work. With a subscription, the claude CLI supports authentication via CLAUDE_CODE_OAUTH_TOKEN instead of ANTHROPIC_API_KEY — no API key is required.

Usage

Set the environment variable and invoke claude normally — no API key required:

CLAUDE_CODE_OAUTH_TOKEN= claude -p "your prompt"

In Docker/containers, pass it as an -e flag:

docker run -e CLAUDE_CODE_OAUTH_TOKEN=  claude -p "your prompt"

In a tmux session, inject via tmux set-environment then load with:

eval "$(tmux show-environment -s)" && claude

Priority

If both CLAUDE_CODE_OAUTH_TOKEN and ANTHROPIC_API_KEY are present, Claude Code prefers the OAuth token.

Notes

  • The CLI handles token validation and refresh internally — do not manage the OAuth flow yourself.
  • Store the token as a file at ~/.config//.secrets/CLAUDE_CODE_OAUTH_TOKEN and load it at runtime to avoid hardcoding.
  • Never log or expose the token value.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.