Skip to content

feat(providers): add Anthropic Subscription provider for native Claude login#233

Open
vadimvlasenko wants to merge 4 commits intomainfrom
feat/anthropic-subscription-provider
Open

feat(providers): add Anthropic Subscription provider for native Claude login#233
vadimvlasenko wants to merge 4 commits intomainfrom
feat/anthropic-subscription-provider

Conversation

@vadimvlasenko
Copy link
Copy Markdown
Collaborator

Summary

Adds a new anthropic-subscription provider that enables codemie-claude to 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

  • New provider plugin src/providers/plugins/anthropic-subscription/ — full provider implementation: template, setup steps, and auth helpers for native Claude Code login flow
  • New core helper src/providers/core/codemie-auth-helpers.ts — extracted shared auth utilities (buildAuthHeaders, ensureApiBase, promptForCodeMieUrl, authenticateWithCodeMie, selectCodeMieProject) previously scattered or duplicated across SSO/JWT plugins
  • Removed duplicationbuildAuthHeaders was duplicated identically in codemie-auth-helpers.ts and sso.http-client.ts; now defined once in core and imported
  • Removed dead filesso.setup-helpers.ts was a pure re-export with zero callers; deleted
  • claude.plugin.ts — added anthropic-subscription to supportedProviders
  • sso.setup-steps.ts — removed unused SSOTemplate import
  • Unit tests — new test files covering ensureApiBase, buildAuthHeaders, parseClaudeAuthStatus (including error case), buildConfig, fetchModels, AnthropicSubscriptionTemplate hooks and env exports; 22 new test cases added

Impact

Users with an Anthropic subscription can now run codemie setup and 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

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

…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>
vadimvlasenko and others added 2 commits April 8, 2026 15:39
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants