feat(providers): add Anthropic Subscription provider for native Claude login#233
Open
vadimvlasenko wants to merge 4 commits intomainfrom
Open
feat(providers): add Anthropic Subscription provider for native Claude login#233vadimvlasenko wants to merge 4 commits intomainfrom
vadimvlasenko wants to merge 4 commits intomainfrom
Conversation
…e login Introduces a new `anthropic-subscription` provider that allows codemie-claude to run using Claude Code's existing native browser login (Anthropic subscription) instead of an API key. Refactors shared auth helpers into core to eliminate duplication, and adds unit test coverage for all new logic. Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
TarasSpashchenko
approved these changes
Apr 1, 2026
# Conflicts: # .gitignore
…g guard and model tier support - Add proxy routing guard integration tests for anthropic-subscription provider - Extend anthropic-subscription template with model tier configuration support - Update BaseAgentAdapter to handle anthropic-subscription provider routing - Add model-tier-config tests for BaseAgentAdapter - Update hook command with anthropic-subscription provider support - Extend config utilities for subscription provider detection - Update README with Anthropic Subscription provider documentation Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
8nevil8
reviewed
Apr 8, 2026
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
Adds a new
anthropic-subscriptionprovider that enablescodemie-claudeto run using Claude Code's existing native browser login (your Anthropic subscription) instead of requiring an API key. Also includes refactoring of shared auth helpers to eliminate duplication across providers.Changes
src/providers/plugins/anthropic-subscription/— full provider implementation: template, setup steps, and auth helpers for native Claude Code login flowsrc/providers/core/codemie-auth-helpers.ts— extracted shared auth utilities (buildAuthHeaders,ensureApiBase,promptForCodeMieUrl,authenticateWithCodeMie,selectCodeMieProject) previously scattered or duplicated across SSO/JWT pluginsbuildAuthHeaderswas duplicated identically incodemie-auth-helpers.tsandsso.http-client.ts; now defined once in core and importedsso.setup-helpers.tswas a pure re-export with zero callers; deletedclaude.plugin.ts— addedanthropic-subscriptiontosupportedProviderssso.setup-steps.ts— removed unusedSSOTemplateimportensureApiBase,buildAuthHeaders,parseClaudeAuthStatus(including error case),buildConfig,fetchModels,AnthropicSubscriptionTemplatehooks and env exports; 22 new test cases addedImpact
Users with an Anthropic subscription can now run
codemie setupand choose Anthropic Subscription as the provider. CodeMie uses Claude Code's stored native login — no API key stored. Optionally, users can link their CodeMie platform account to enable analytics sync.Checklist