
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
clove-proxy
Advanced tools
Clove 是一个让你能够通过标准 Claude API 访问 Claude.ai 的反向代理工具。简单来说,它让各种 AI 应用都能连接上 Claude!
最大亮点:Clove 是首个支持通过 OAuth 认证访问 Claude 官方 API 的反向代理(就是 Claude Code 用的那个)!这意味着你能享受到完整的 Claude API 功能,包括原生系统消息和预填充等高级特性。
只需要三步,就能开始使用:
确保你的电脑上有 Python 3.13 或更高版本
pip install "clove-proxy[rnet]"
clove
启动后会在控制台显示一个随机生成的临时管理密钥。登录管理页面后别忘了添加自己的密钥哦!
打开浏览器访问:http://localhost:5201
使用刚才的管理密钥登录,然后就可以添加你的 Claude 账户了~
与其他反代工具(如 Clewd)相比,Clove 的兼容性非常出色:
Clove 处理了 Claude.ai 网页版与 API 的各种差异:
即使是通过网页反代,Clove 也能让你使用原本不支持的功能:
Clove 尽可能让 Claude.ai 网页反代更接近 API,以期在所有应用程序中获得无缝体验。
Clove 依赖 curl_cffi 来请求 claude.ai,但这个依赖无法在 Termux 上运行。
解决方案:
pip install clove-proxy
如果你使用网页反代模式,避免接入会大量并行执行工具调用的应用。
当 Clove 使用网页反代时,Claude.ai 会在提示中添加额外的系统提示词和文件上传结构。当使用对结构要求高的提示词(如 RP 预设)时:
虽然大部分配置都能在管理界面完成,但你也可以通过环境变量进行设置:
# 端口配置
PORT=5201
# 管理密钥(不设置则自动生成)
ADMIN_API_KEYS==your-secret-key
# Claude.ai Cookie
COOKIES=sessionKey=your-session-key
更多配置请见 .env.example 文件。
配置完成后,你可以像使用标准 Claude API 一样使用 Clove:
import anthropic
client = anthropic.Anthropic(
base_url="http://localhost:5201",
api_key="your-api-key" # 在管理界面创建
)
response = client.messages.create(
model="claude-opus-4-20250514",
messages=[{"role": "user", "content": "Hello, Claude!"}],
max_tokens=1024,
)
欢迎贡献代码!如果你有好的想法或发现了问题:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情。
本项目仅供学习和研究使用。使用本项目时,请遵守相关服务的使用条款。作者不对任何滥用或违反服务条款的行为负责。
如有问题或建议,欢迎通过以下方式联系:
丁香,桃金娘科蒲桃属植物,是一种常见的香料,也可用作中药。丁香(Clove)与丁香花(Syringa)是两种不同的植物哦~在本项目中,Clove 更接近 Claude 和 love 的合成词呢!
FAQs
A Claude.ai reverse proxy
We found that clove-proxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.