# 对于 zsh
echo 'export ANTHROPIC_BASE_URL="https://cloud.api2key.com/anthropic"' >> ~/.zshrc
echo 'export ANTHROPIC_API_KEY="sk-你的API密钥"' >> ~/.zshrc
source ~/.zshrc
# 对于 bash
echo 'export ANTHROPIC_BASE_URL="https://cloud.api2key.com/anthropic"' >> ~/.bash_profile
echo 'export ANTHROPIC_API_KEY="sk-你的API密钥"' >> ~/.bash_profile
source ~/.bash_profile