@easytocloud/claude-personae
v0.2.4
Published
CLI to switch Claude Code provider presets (AWS Bedrock / Anthropic / proxy) — companion to the Claude Code Personae VS Code extension. Operates on the same ~/.claude profile store.
Downloads
577
Maintainers
Readme
claude-personae (ccp)
A small CLI to switch Claude Code provider presets from the shell — the headless companion to the Claude Code Personae VS Code extension.
It operates on the same profile store the extension uses
(~/.claude/coder-profiles.json) and writes the same Claude Code config files, so a
preset you author in the GUI can be switched from a terminal — over SSH, inside a
devcontainer, or from a script.
Authoring stays in the GUI. Create and edit providers, presets, MCP groups and directory groups in the VS Code extension. This CLI is for the operate verbs: switch, apply, sync, list, current, export, import.
Install
npm install -g @easytocloud/claude-personaeProvides two commands: claude-personae and the short alias ccp.
Usage
ccp <command> [options]| Command | Description |
|---|---|
| ccp list [presets\|providers\|scopes] | List configured items (default: all). --json for machine output. |
| ccp current | Show the active global + workspace preset. |
| ccp switch <preset> [scope] | Set the active preset and write the config files. |
| ccp apply | Re-apply the global + current-workspace scopes (reprovision a machine / fresh checkout). |
| ccp sync | Re-apply every known workspace assignment — propagate a changed preset everywhere. --dry-run previews without writing. |
| ccp export | Print the store as JSON with credentials scrubbed (-o <file> to write). |
| ccp import <file\|-> | Import a store (--mode merge | replace). - reads stdin. |
Scope (for switch)
By default switch sets the global preset. To target a project instead:
| Flag | Effect |
|---|---|
| --global, -g | Set the global preset (default). |
| --workspace, -w | Set the preset for a workspace (uses the current directory). |
| --path <dir> | Workspace directory to target (implies --workspace). |
| --inherit | Workspace inherits the global preset (removes its overrides). |
| --manual | Workspace is managed manually (the CLI leaves its files alone). |
Examples
ccp list presets
ccp switch bedrock-prod # set the global preset
ccp switch dev --workspace # set a preset for the current project
ccp switch --workspace --inherit # project goes back to inheriting global
ccp apply # rewrite config files for this project
ccp sync # re-apply every workspace after editing a preset
ccp sync --dry-run # preview what sync would rewrite
ccp export -o presets.json # share presets (keys replaced with <REPLACE_ME>)
cat presets.json | ccp import - --mode replaceWhat it writes
- Global scope →
~/.claude/settings.json(env vars, allowed directories,awsAuthRefresh/apiKeyHelper) and~/.claude.json(MCP servers). - Workspace scope →
<dir>/.claude/settings.jsonand<dir>/.mcp.json(only the keys that differ from global).--inheritremoves these so global applies.
Presets are resolved by the exact same engine as the extension, so a Bedrock preset
sets CLAUDE_CODE_USE_BEDROCK=1, AWS_PROFILE, AWS_REGION, the model overrides, etc.
License
MIT
