
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
一个用于管理 Claude Code 配置文件的命令行工具,让您可以轻松地在不同配置之间切换。
npm install -g ccsm
# 使用默认模板创建配置
ccsm create dev
# 使用自定义模板创建配置
ccsm create production --template /path/to/template.json
# 切换到指定配置
ccsm switch dev
# 列出所有配置
ccsm list
# 查看当前配置
ccsm current
# 备份当前 Claude Code 配置
ccsm backup
# 删除配置(会有确认提示)
ccsm delete old-config
# 强制删除(跳过确认)
ccsm delete old-config --yes
ccsm create <name> [options]创建新的配置文件。
参数:
name - 配置名称(必需)选项:
-t, --template <path> - 指定模板文件路径示例:
ccsm create development
ccsm create prod --template ./templates/production.json
ccsm switch <name>切换到指定的配置文件。
参数:
name - 要切换的配置名称(必需)示例:
ccsm switch development
ccsm list [options]列出所有可用的配置文件。
别名: ls
选项:
--backups - 同时显示备份文件示例:
ccsm list
ccsm ls --backups
ccsm current显示当前正在使用的配置。
示例:
ccsm current
ccsm backup备份当前 Claude Code 配置。
示例:
ccsm backup
ccsm delete <name> [options]删除指定的配置文件。
参数:
name - 要删除的配置名称(必需)选项:
-y, --yes - 跳过确认提示,直接删除示例:
ccsm delete old-config
ccsm delete temp-config --yes
配置文件存储在以下位置:
%USERPROFILE%/.ccsm/~/.ccsm/~/.ccsm/配置文件使用 JSON 格式,遵循 Claude Code 的 settings.json 结构:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"ANTHROPIC_BASE_URL": "",
"ANTHROPIC_AUTH_TOKEN": ""
},
"includeCoAuthoredBy": false,
"permissions": {
"allow": [],
"deny": []
},
"hooks": {}
}
基于此,你可以添加自定义配置(比如 custom.json),比如加入允许的权限和MCP列表:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"ANTHROPIC_BASE_URL": "",
"ANTHROPIC_AUTH_TOKEN": ""
},
"includeCoAuthoredBy": false,
"permissions": {
"allow": [
"Bash",
"LS",
"Read",
"Agent",
"mcp__context7",
"mcp__playwright"
],
"deny": []
},
"hooks": {}
}
然后通过 ccsm create --template ~/custom.json moonshot_kimi_k2 根据自定义模板创建 Claude Code 配置文件。
如果遇到权限错误,请检查:
用户设置都统一存放在 ~/.claude/settings.json
如果路径不正确,请检查 Claude Code 是否正确安装。
配置名称不能包含:
< > : " / \\ | ? *CON, PRN, AUX, NUL, COM1-9, LPT1-9settings_backup_ 开头欢迎贡献代码!请提交 Pull Request 或创建 Issue。
MIT License
提示: 使用 ccsm --help 或 ccsm <command> --help 查看详细的帮助信息。
FAQs
CLI tool for managing Claude Code settings.json configurations
The npm package ccsm receives a total of 1 weekly downloads. As such, ccsm popularity was classified as not popular.
We found that ccsm 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.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.