Token导航 LogoToken导航TokenDH.com
Claude-profiles logo
开发工具未说明官方级别未说明来源级核验

Claude-profiles

MCP Server

用于快速切换Claude Code不同配置文件的命令行工具,支持多工作场景隔离配置。

工具数

0

提示词数

0

GitHub Stars

6

资源数

0
配置管理工作流优化TypeScriptClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

julianleopold

提供方

julianleopold

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

claude-profiles

Swap Claude Code configurations in one command

Quick Start • Commands • Auto-Switching • npm • Discussions

______________________________________________________________________

克劳德简介 允许您维护多个Claude Code配置并立即在它们之间切换。不同的插件、钩子、MCP服务器和不同工作流的设置——没有冲突。

npm install -g claude-profiles

一个命令。你的 ~/.claude 自动成为默认配置文件。不需要安装向导。

为什么?

无配置文件有配置文件
一个 ~/.claude 配置一切多个配置,立即切换
到处都是相同的插件,即使你不需要它们根据配置文件切换插件
切换工作流时手动备份/还原claude-profiles use work
不同客户端的不同MCP服务器?手动编辑一个切换命令
无法为每个项目自动切换.claude-profile 每个仓库的文件(如 .nvmrc)

快速开始

# Install (that's it — shell hook + slash commands auto-configured)
npm install -g claude-profiles

# Create a work profile
claude-profiles create work

# Switch to it
claude-profiles use work
# >>> RESTART CLAUDE CODE /`.切换直接在内部交换配置文件 `~/.claude` --没有环境变量,没有符号链接。

~/.claude/ # Create profile (clones ~/.claude) claude-profiles use # Switch profile claude-profiles list # List all profiles (* = active) claude-profiles current # Show active profile claude-profiles delete # Delete a profile claude-profiles toggle plugin on|off # Toggle plugin per profile claude-profiles init # Guided setup (optional) claude-profiles uninstall # Clean removal


### 克劳德代码内部

这些斜线命令直接在Claude Code会话中工作:

/profiles # List profiles + show available commands /profiles-list # List all profiles (* = active) /profiles-use # Switch profile /profiles-create - # Create a new profile /profiles-current # Show active profile /profiles-delete # Delete a profile /profiles-configure # Toggle plugins in the active profile


无需离开Claude代码——内置的钩子会立即执行命令并显示结果。

## 示例:工作vs个人

Create separate profiles

claude-profiles create work -d "Work — Vercel + Jira MCP servers" claude-profiles create personal -d "Personal — minimal plugins"

Configure each profile

claude-profiles use work

>>> RESTART CLAUDE CODE >> RESTART CLAUDE CODE .claude-profile


当你 `cd` 在该目录中,shell钩子会自动切换。Leave--恢复默认值。

喜欢 `.nvmrc` 适用于Node.js版本,但适用于Claude Code配置。

### 分辨率链

1. `CLAUDE_PROFILES_ACTIVE` env-var(最高优先级)
1. `.claude-profile` 文件(沿目录树向上移动)
1. 活动配置文件来自 `state.json`
1. 退路: `default` (`~/.claude`)

## 安装/卸载

Install — one command, everything configured

npm install -g claude-profiles

Uninstall — asks which profile to keep, cleans everything

claude-profiles uninstall npm uninstall -g claude-profiles


自动安装:

- 增加 `/profiles-*` Claude代码的斜线命令
- 安装外壳挂钩 `.zshrc`/`.bashrc`/`config.fish` (自动打开 `cd`)
- 注册一个快速执行钩子(因此 `/profiles-list` 在1秒内响应)
- 为添加自动批准权限 `claude-profiles` 命令

卸载会删除上述所有内容。 `~/.claude` 永远不会被修改。

What profiles isolate

每个配置文件都有自己的:

- `settings.json` --插件、钩子、权限、模型首选项
- `mcp.json` --MCP服务器配置
- `CLAUDE.md` --自定义说明
- `commands/` --斜线命令
- `settings.local.json` --本地覆盖

在所有配置文件中共享:

- 插件缓存(下载的文件)
- 项目/会话数据
- 身份验证凭据
- 自动内存(中的每个项目 `~/.claude/projects/`,不按配置文件)

Shell integration details

shell钩子在安装时使用conda风格的哨兵注释自动添加:

>>> claude-profiles >>>

!! Contents within this block are managed by claude-profiles !!

_claude_profiles_hook() { ... }

#

Design influences

相关

贡献

贡献.md.PR欢迎。

许可证

麻省理工学院

目录标签

目录标签

配置管理工作流优化TypeScriptClaude本地部署开发者工具命令行工具环境切换

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP