claude-agent-sdk-python
claude-agent-sdk-python copied to clipboard
Claude SDK Client & auth question
In https://github.com/anthropics/claude-code-sdk-python/blob/main/src/claude_code_sdk/client.py
When to use ClaudeSDKClient:
- Building chat interfaces or conversational UIs
I'd like to build a wrapper where users do not need to use cli directly to use claude code -- basically "chat interfaces or conversational UIs".
However the auth flow is cli only and impossible to automate as far as I understand/tried, and it seems such by design. How to authenticate users via chat interface only?
JK
I've gotten around this by providing API keys in my automation I'm using, but not sure about the OAuth flow for subscriptions. :/