Skip to content

Add support for custom Anthropic-compatible endpoints and update documentation - #31

Open
coding-commits wants to merge 2 commits into
foreveryh:mainfrom
coding-commits:main
Open

Add support for custom Anthropic-compatible endpoints and update documentation#31
coding-commits wants to merge 2 commits into
foreveryh:mainfrom
coding-commits:main

Conversation

@coding-commits

@coding-commits coding-commits commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Adds ccm custom / ccc custom so Claude Code can target any Anthropic-compatible gateway via CUSTOM_BASE_URL, CUSTOM_API_KEY, and CUSTOM_MODEL in ~/.ccm_config.

Usage

ccm config   # set CUSTOM_BASE_URL / CUSTOM_API_KEY / CUSTOM_MODEL
ccm custom   # switch current shell
ccc custom   # switch + launch

Test plan

  • Configure custom vars in ~/.ccm_config and run ccm custom
  • Confirm ccm status shows the custom base URL / model
  • Launch with ccc custom against a known Anthropic-compatible endpoint
  • Verify missing config fails with a clear error

- Introduced CUSTOM_BASE_URL, CUSTOM_API_KEY, and CUSTOM_MODEL for user configuration.
- Updated command usage to include 'custom' for switching to custom endpoints.
- Enhanced documentation in README and help outputs to reflect new custom endpoint capabilities.
- Modified existing functions to validate and require custom configuration settings.

Usage:
  ccm custom            # Switch to custom endpoint
  ccc custom            # Launch using custom endpoint
…e endpoints

- Enhanced descriptions in both English and Chinese README files to indicate the new capability of switching to custom Anthropic-compatible URL endpoints.
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.

1 participant