mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-02-02 06:40:50 +08:00
This commit adds a new `ccr activate` command that outputs environment variables in shell-friendly format, making it easy to integrate claude-code-router with Agent SDK applications. Usage: eval $(ccr activate) This sets the following environment variables: - ANTHROPIC_AUTH_TOKEN - ANTHROPIC_API_KEY - ANTHROPIC_BASE_URL - NO_PROXY - DISABLE_TELEMETRY - DISABLE_COST_WARNINGS - API_TIMEOUT_MS - CLAUDE_CODE_USE_BEDROCK The implementation refactors the environment variable creation logic from `ccr code` into a shared `createEnvVariables()` function in `src/utils/createEnvVariables.ts`, ensuring consistency between both commands. Related: #855