Updated Edit
On this page
Create, inspect, delete, rename, and repair Claude Code profiles, and validate their stored OAuth tokens against the Anthropic API.
#c profile
create, inspect, rename, delete, and manage Claude Code profiles and their stored tokens
#profile create
create a new profile interactively through a guided wizard, then set up its authentication
#profile delete
delete a registered profile and clean up its directory, tokens, and options entries
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--force-delete | bool | force deletion even if sessions appear active; skips the safety check | |||
--force-delete-data | bool | delete even when shared-dir names hold REAL data instead of symlinks; this DESTROYS that data (e.g. conversation history) |
#Arguments
| Name | Required | Description |
|---|---|---|
name | yes | name of the profile to delete (e.g. work, personal, lisa) |
#profile show
inspect a profile's configuration, authentication status, and session data in a detailed report
#Arguments
| Name | Required | Description |
|---|---|---|
name | yes | name of the profile to inspect (e.g. work, personal, default) |
#profile rename
rename a profile, moving its directory, tokens, and session data to the new name
#Arguments
| Name | Required | Description |
|---|---|---|
old | yes | current name of the profile to rename (must be an existing, non-running profile) |
new | yes | new name for the profile (lowercase letters, digits, and hyphens; must be unused) |
#profile fix-auth
remove session credentials that shadow a long-lived token
#Arguments
| Name | Required | Description |
|---|---|---|
name | yes | name of the profile whose shadowing session credentials should be removed |
#profile check-tokens
validate every discovered profile's stored OAuth token against the Anthropic API