Support Claude Code OAuth login (no API key needed)#103
Open
prajapatimehul wants to merge 2 commits intoKeygraphHQ:mainfrom
Open
Support Claude Code OAuth login (no API key needed)#103prajapatimehul wants to merge 2 commits intoKeygraphHQ:mainfrom
prajapatimehul wants to merge 2 commits intoKeygraphHQ:mainfrom
Conversation
Mount ~/.claude into Docker container so the Claude Agent SDK subprocess can resolve credentials from the host's OAuth login. Also update the CLI auth check to accept ~/.credentials.json as a valid auth source. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25e2603 to
e0bc3e6
Compare
|
What about in .env.example there was I located my .claude/.credentials.json file and retrieved the OAuth token, which I set when I configured Claude Code /login on WSL. I just added that variable to .env and commented out the API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets you run Shannon with just
claude loginon the host — no API key needed.What changed
~/.claudeinto the worker container so the Claude Code subprocess can find OAuth credentials~/.claude/.credentials.jsonin the auth check before erroring outclaude loginas the easiest auth optionclaude loginas option 1Why not read-only mount?
Claude Code writes debug logs to
~/.claude/debug/. A:romount crashes it withEROFS: read-only file system.Tested
Ran
./shannon startwith no API key in.env, justclaude logincredentials on the host. Workflow started and pre-recon agent ran 150+ turns successfully.