feat(agent): add ClaudeLocalClient subprocess shim for Claude Max OAuth accounts - #26960
Closed
benmont wants to merge 1 commit into
Closed
feat(agent): add ClaudeLocalClient subprocess shim for Claude Max OAuth accounts#26960benmont wants to merge 1 commit into
benmont wants to merge 1 commit into
Conversation
…unts Routes Anthropic messages.create() calls through the claude CLI subprocess instead of the SDK, keeping requests in the Max lane when direct API calls hit HTTP 400 "out of extra usage". Activated via HERMES_ANTHROPIC_CLAUDE_LOCAL=1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
Author
|
Thanks for the pointers — I wasn't aware of these. Looking at them, the overlap is real: #6427 takes the same subprocess approach as this PR but is more properly integrated into the Hermes provider system, and #12229 is a considerably more complete solution at P2. This PR doesn't add enough differentiation to justify a separate implementation. I'll close this one. Happy to help test or contribute to #6427 or #12229 if useful — I have a Claude Max account that reliably reproduces the #15080 failure, which could be handy for integration testing. |
This was referenced Jul 30, 2026
Open
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.
Summary
Implements the subprocess-based adapter approach discussed in #15080 as a long-term solution for Claude Max OAuth accounts that cannot use the direct HTTPS path with tools.
Closes #15080 (long-term solution path).
Test plan
🤖 Generated with Claude Code