claude-agent-sdk-python icon indicating copy to clipboard operation
claude-agent-sdk-python copied to clipboard

Claude SDK Client & auth question

Open jankulma-turbine opened this issue 4 months ago • 1 comments

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

jankulma-turbine avatar Sep 22 '25 10:09 jankulma-turbine

I've gotten around this by providing API keys in my automation I'm using, but not sure about the OAuth flow for subscriptions. :/

EdanStarfire avatar Sep 23 '25 17:09 EdanStarfire