claude code 安装和使用

1 安装claude code

npm install -g @anthropic-ai/claude-code

 

2 安装CC Switch

https://ccswitch.io/zh/download

 

3 切换模型

image

百炼有免费额度,可以用来学习测试

image

image

在百炼找一个可以用的模型,开启免费用完即停,然后把模型名字复制,填到CC Switch中

https://bailian.console.aliyun.com/cn-beijing?tab=costing-balance#/costing-balance/free-quota

image 

例如:"ANTHROPIC_MODEL": "kimi-k3"

image

然后启用

image

 

4 使用claude

重新打开cmd终端,输入claude

image

选择Yes信任

可以看到模型就是 kimi-k3,这样就可以使用claude了

image

posted @ 2026-08-30 00:06  后知后觉0107  阅读(27)  评论(0)    收藏  举报