Skip to content
Development
Command

/profile

Show or change which Claude account this directory uses

From plugin
31 skills1 commands1 hooks
shell
$ npx -y skills add dcotelo/cprof --agent claude-code

Ships with cprof. Installing the plugin gets this command.

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`.
Read it on GitHub ↗
Ships withcprof

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

Get the whole plugin, auto-invoked
Stats
3
Stars
0
Views
1
Forks
Active
Maintenance
Shell
Language
MIT
License
3d ago
Last commit
5d ago
Created

Repo: dcotelo/cprof