Skip to content

Use cheaper Claude model(claude-opus-4-20250514) to drive your Claude Code.

Notifications You must be signed in to change notification settings

XTurnV007/cheapClaude-cc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cheapClaude CC

中文 | English

使用更便宜的Claude模型(claude-opus-4-20250514)驱动您的Claude Code。

全面调研claude-opus-4-20250514性能参数

快速安装

  1. 前往CursorAI开放平台申请API Key。

点击前往:CursorAI开放平台

右上角控制台 -> API令牌 -> 添加令牌 -> 往下滑动到底部 -> 在分组设置中为您的令牌设置Claude Code专属分组

新建令牌 设置令牌名称和额度 设置Claude Code专属令牌分组 复制令牌

  1. 根据您的操作系统选择安装方式:

Unix/Linux/macOS

bash -c "$(curl -fsSL https://raw.githubusercontent.com/XTurnV007/cheapClaude-cc/refs/heads/main/install.sh)"

Windows

在 PowerShell 中运行(建议以管理员身份):

Invoke-WebRequest -Uri "https://raw.githubusercontent.com/XTurnV007/cheapClaude-cc/refs/heads/main/install.ps1" -OutFile "install.ps1" -ContentType "text/plain; charset=utf-8"; Get-Content -Path "install.ps1" -Encoding UTF8 | Out-String | Invoke-Expression; Remove-Item "install.ps1"

如果遇到执行策略问题,先运行:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  1. 开始低成本使用 Claude Code。
claude

手动安装(所有平台)

如果自动安装脚本无法使用,您可以手动安装:

  1. 安装 Node.js 18+ 版本:https://nodejs.org/
  2. 安装 Claude Code:
    npm install -g @anthropic-ai/claude-code
    
  3. 设置环境变量:
    • ANTHROPIC_BASE_URL=https://api.cursorai.art
    • ANTHROPIC_API_KEY=你的API密钥

常见问题汇总

1.配置完成之后,问问题不回复也不报错

请你将CURSOR API平台的令牌分组设置为Claude Code专属分组

2.Claude code在每次回答完问题时,显示offline

未登录账号就是offline,此项目的方法不需要登录账号

About

Use cheaper Claude model(claude-opus-4-20250514) to drive your Claude Code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PowerShell 50.9%
  • Shell 49.1%