aihezu weekly downloads statistics
By aihezu · npm · Claude Code
AI 开发环境配置工具 - 支持 Claude Code, Codex, Google Gemini 的本地化配置、代理设置与缓存清理
aihezu has 1,219 recorded weekly downloads on npm, a decrease of 47.9% over the past 30 days.
It ranks #1357 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -54.3%.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
About aihezu
aihezu - Claude Code CLI 工具集
快速配置或清理 Claude Code / Codex,本地修改 hosts 并提供企业独立域名支持。
功能特性
• 🔑 一键配置 Claude(默认)或 Codex,支持企业独立域名(--api / --api-url) • 🧹 一键清理 Claude Code CLI 的所有本地数据 • 🌐 自动修改 hosts 文件,将 Anthropic 域名指向本地 • 📦 自动备份配置文件和 hosts 文件(带时间戳) • ✅ 安全可靠,不会丢失数据 • 🚀 支持 npx 直接运行,无需安装 • 🔄 自动刷新 DNS 缓存
命令列表
• ccinstall / install:交互式配置 Claude(默认)或 Codex • Claude:默认 https://cc.aihezu.dev/api,企业可用 --api / --api-url 指定独立域名 • Codex:默认 https://cc.aihezu.dev/openai,企业可用 --api / --api-url 指定独立域名;写入 ~/.codex/config.toml 和 auth.json,使用 OPENAI_API_KEY • ccclear:清理 Claude Code 缓存和配置 • usage:查看 Claude Code / Codex / Gemini 用量统计(支持 --key 指定 API Key)
清理内容
该工具会执行以下操作:
1. 修改 hosts 文件
• 将 statsig.anthropic.com 指向 127.0.0.1 • 将 api.anthropic.com 指向 127.0.0.1 • 如果已存在这些域名的解析,会先移除旧记录再添加新记录 • 自动备份 hosts 文件(带时间戳) • 自动刷新 DNS 缓存
2. 清理 Claude Code 配置
• ~/.claude/ - Claude Code 主数据目录(包括缓存、历史、项目等) • ~/.claude.json - Claude Code 全局配置文件
使用方法
⚠️ 重要提示:由于需要修改系统 hosts 文件,必须使用管理员权限运行!
macOS / Linux 用户
使用 sudo 命令运行:
Windows 用户
需要以管理员身份运行 PowerShell 或命令提示符:
1. 搜索 "PowerShell" 或 "命令提示符" 2. 右键点击,选择 "以管理员身份运行" 3. 在打开的窗口中运行命令(无需 sudo):
Windows 特别说明: • hosts 文件位置:C:\Windows\System32\drivers\etc\hosts • 某些防病毒软件可能会保护 hosts 文件,需要临时禁用 • 推荐使用 PowerShell 配置文件设置环境变量,而不是系统环境变量
配置 Claude Code(ccinstall / install)
• 默认域名: • 企业独立域名(支持传入域名或完整 URL,自动补全为 /api):
也可以全局安装后运行:
• 直接选择 Codex(可在交互中选择,也可用参数指定):
清理 Claude Code(ccclear)
• 使用 npx(推荐): • 全局安装后运行:
查看用量(usage)
无需管理员权限:
指定服务:
指定 API Key:
运行效果
恢复备份
恢复 Claude Code 配置
如需恢复之前的配置,只需将备份文件重命名:
恢复 hosts 文件
使用场景
• Claude Code CLI 出现异常需要重置 • 需要通过本地代理使用 Claude API • 清理大量累积的缓存和日志 • 切换不同的配置环境 • 重新初始化 Claude Code CLI
工作原理
1. hosts 文件修改:将 Anthropic 相关域名指向本地 127.0.0.1,配合本地代理使用 2. 配置清理:备份并清理 Claude Code 的配置和缓存 3. 安全备份:所有修改前都会创建带时间戳的备份文件
系统要求
• Node.js >= 14.0.0 • macOS / Linux / Windows (完整跨平台支持) • 需要管理员/root 权限(用于修改 hosts 文件)
平台支持: • ✅ macOS - 完整支持,包括权限修复和 DNS 刷新 • ✅ Linux - 完整支持,支持多种 DNS 服务(systemd-resolve, nscd) • ✅ Windows - 完整支持,提供平台特定的指导和错误提示
更多 Windows 安装和配置信息,请参阅 Windows 设置指南。
许可证
MIT
问题反馈
如有问题或建议,欢迎提 Issue。
Description from the npm listing.
- ai
- cli
- proxy
- claude
- claude-code
- codex
- gemini
- configuration
- hosts
- cross-platform
- windows
- macos
- linux
Where aihezu sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (543)Similar npm Claude Code plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/aihezu. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.