Skip to content
Development
Command

/profile

Show or change which Claude account this directory uses

From plugin
cprof
51 skill1 command1 hook
Install
> /plugin marketplace add dcotelo/cprof
> /plugin install cprof@dcotelo

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/profile

Context preview

What this command does when you run it.

Show or change which Claude account this directory uses

Command definition

profile.md
description: Show or change which Claude account this directory uses
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/scripts/cprof:*)

Arguments: `$ARGUMENTS`

Run the matching command and report its output verbatim. Do not offer to switch the current session's account — credentials are fixed at process start, so a switch requires relaunching `claude`.

  • No arguments: run `${CLAUDE_PLUGIN_ROOT}/scripts/cprof status`, then

`${CLAUDE_PLUGIN_ROOT}/scripts/cprof which`, then `${CLAUDE_PLUGIN_ROOT}/scripts/cprof list`. If `status` and `which` name different profiles, say so: this session is signed in as the former while the directory expects the latter, and only a relaunch closes the gap.

  • `pin <name>`: run `${CLAUDE_PLUGIN_ROOT}/scripts/cprof pin <name>`, then

state that a relaunch is required for it to take effect.

  • `rule <path> <name>`: run

`${CLAUDE_PLUGIN_ROOT}/scripts/cprof rule add <path> <name>`.

  • `rules`: run `${CLAUDE_PLUGIN_ROOT}/scripts/cprof rules`. Rules are

listed longest-path-first, which is the order resolution consults them; a rule marked `(unknown profile)` never matches anything.

  • `doctor`: run `${CLAUDE_PLUGIN_ROOT}/scripts/cprof doctor`.
  • Anything else: run `${CLAUDE_PLUGIN_ROOT}/scripts/cprof help`.
Ships withcprof

Per-repository Claude account switching: keep personal and work subscriptions separate.

Get the whole plugin
Stats
5
Stars
1
Forks
Active
Maintenance
Shell
Language
MIT
License
1d ago
Last commit
1mo ago
Created

Repo: dcotelo/cprof