Easy configuration of Claude code environment variables

Claude Code Env (CCE) is a simple but powerful command-line tool that solves a common pain point for developers working with Anthropic’s Claude models and compatible APIs for Claude Code CLI.
The Problem
If you frequently switch between different Claude-compatible services (official API, third-party proxies, enterprise networks), you know the pain of manually editing environment variables like ANTHROPIC_BASE_URL
and ANTHROPIC_AUTH_TOKEN
.
The Solution
CCE provides a clean, intuitive way to manage multiple model configurations and switch between them with a single command:
# Add a new model configuration
cce add
# Switch between models
cce use claude
cce use kimi-k2
# View current configuration
cce status
Key Features
Multiple models: Quickly switch between official APIs, proxy servers, and enterprise networks.
Environment variables: Avoid frequently editing environment variables like
ANTHROPIC_BASE_URL
andANTHROPIC_AUTH_TOKEN
.Team collaboration: Easily share and sync configurations with your team.
How is it different from claude-code-router?
Unlike claude-code-router
, CCE is not a proxy tool. It’s purely a client-side environment variable manager — it doesn’t intercept or forward requests, making it simpler and more secure.
Installation
pnpm add -g @vainjs/claude-code-env
Perfect for developers who work with multiple Claude-compatible services and want to avoid the hassle of manual environment management.
Subscribe to my newsletter
Read articles from young directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
