Title: Feature Request — Support Claude Code / Anthropic OAuth authentication (not just API keys)
Description:
I use Claude Code (Anthropic's VS Code extension) which authenticates via OAuth session tokens tied to my Claude Pro/MAX subscription. This gives me unlimited access to Claude models through VS Code.
However, Agent Zero only supports raw API keys (sk-ant-api03-...) via LiteLLM, which requires separate API credits purchased at console.anthropic.com. This means I'm paying for a Claude subscription but can't use that same authorization in Agent Zero.
The ask: Could Agent Zero support Anthropic's OAuth-based authentication (the same flow Claude Code uses) as an alternative to API keys? This way, users with Claude Pro/MAX subscriptions could use their existing subscription to power Agent Zero without buying separate API credits.
Technical context:
Claude Code authenticates via OAuth and provides a session token (e.g., gssiWmbu...)
This token works with Anthropic's API but uses a different auth flow than the x-api-key header that LiteLLM sends
The Anthropic API key in my .env has zero credits, but my Claude subscription is fully active and powers Claude Code right now
LiteLLM may already have or could add support for OAuth bearer tokens to the Anthropic provider
Title: Feature Request — Support Claude Code / Anthropic OAuth authentication (not just API keys)
Description:
I use Claude Code (Anthropic's VS Code extension) which authenticates via OAuth session tokens tied to my Claude Pro/MAX subscription. This gives me unlimited access to Claude models through VS Code.
However, Agent Zero only supports raw API keys (sk-ant-api03-...) via LiteLLM, which requires separate API credits purchased at console.anthropic.com. This means I'm paying for a Claude subscription but can't use that same authorization in Agent Zero.
The ask: Could Agent Zero support Anthropic's OAuth-based authentication (the same flow Claude Code uses) as an alternative to API keys? This way, users with Claude Pro/MAX subscriptions could use their existing subscription to power Agent Zero without buying separate API credits.
Technical context:
Claude Code authenticates via OAuth and provides a session token (e.g., gssiWmbu...)
This token works with Anthropic's API but uses a different auth flow than the x-api-key header that LiteLLM sends
The Anthropic API key in my .env has zero credits, but my Claude subscription is fully active and powers Claude Code right now
LiteLLM may already have or could add support for OAuth bearer tokens to the Anthropic provider