Skip to content

feat: Support Claude subscription via CLIProxyAPI integration #24

@manurgdev

Description

@manurgdev

Description

Users with a Claude Max or Pro subscription should be able to use Claude models in Magec without needing a separate API key. This can be achieved by integrating CLIProxyAPI, a local proxy that translates the subscription's OAuth credentials into a standard Anthropic-compatible API.

Motivation

Currently, using Claude in Magec requires an Anthropic API key, which means paying separately for API access on top of an existing subscription. Many users already pay for Claude Max/Pro and would prefer to reuse that subscription directly.

Proposed solution

  1. Fix the Anthropic backend to honor the url field — currently it ignores it and always sends requests to https://api.anthropic.com, making it impossible to use any proxy or custom endpoint.
  2. Add CLIProxyAPI as an optional service in Docker Compose, with its config and auth volume.
  3. Integrate into the installer (install.sh) so users are prompted to enable the Claude subscription proxy during setup.
  4. Document the setup in the backends and Docker Compose docs: backend configuration, OAuth login flow, and verification steps.

Acceptance criteria

  • Anthropic backend respects the url field when configured
  • CLIProxyAPI service available in Docker Compose deployments
  • Interactive installer offers CLIProxyAPI as an option and preconfigures the backend
  • Documentation covers end-to-end setup (login, backend config, verification)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions