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
- Add LOG_LEVEL configuration option to control logging verbosity
- Update UI to include LOG_LEVEL dropdown in settings
- Fix logging inconsistency between environment variables and config file
- Unify logging configuration to use config file settings
- Maintain separate logging systems for different purposes:
* Server-level logs (HTTP requests, API calls) using pino in ~/.claude-code-router/logs/
* Application-level logs (routing decisions, business logic) in ~/.claude-code-router/claude-code-router.log
- Update documentation with accurate logging system information
- Add detailed information about dual logging systems in README.md and README_zh.md
- Improve type safety and validation in ConfigProvider
Co-authored-by: qwen-cli <https://github.com/QwenLM/qwen-code>