On this page
On this page
CLI commands
Users
openclaw users
Manage durable Gateway profiles through the Gateway RPC API. These profiles
identify people; they are separate from the CLI's --profile option, which
selects an isolated OpenClaw configuration and state directory.
Common options
--url <url>: Gateway WebSocket URL; defaults togateway.remote.urlwhen configured.--token <token>: Gateway token, if required.--timeout <ms>: RPC timeout in milliseconds; defaults to10000.--json: Print the Gateway result as JSON.
Place these options after the subcommand.
List profiles
Requires operator.read. Human output lists each profile's ID, display name, and
email aliases. Use the durable IDs when linking or merging profiles.
Link an email alias
Requires operator.admin. Calls users.linkEmail to move one email alias to the
target profile. If the previous profile loses its last email, it merges into the
target. Otherwise, it remains a separate profile with its other aliases.
Merge duplicate profiles
Requires operator.admin. Calls users.merge with sourceProfileId and
targetProfileId. Use this when both profiles belong to the same person and the
whole source profile should retire, including when it has no email aliases.
The target must be an existing, unmerged profile distinct from the source. The shared Owner profile cannot be merged in either direction. Repeating an already completed merge into the same target succeeds. If the source points to another survivor, the command fails and names that current profile.
On a single-user Gateway, a personal sign-in, such as Tailscale Serve identity
with gateway.auth.allowTailscale, creates a durable personal profile next to
the shared Owner profile. Turning that sign-in off does not remove it, and
there is no command to delete it or merge it into Owner. Token and password
connections keep using Owner. The personal profile keeps its email aliases
and saved preferences, and a later sign-in with the same identity reuses it.
Human output names the survivor and retired ID. JSON returns profile, the
surviving profile, and movedAliasKinds, the alias categories actually moved:
email, provider, or channel. An unchanged repeat returns an empty list.
The survivor keeps its role, display name, primary identity, and conflicting
preferences and account choices. Logins, channel links, and personal accounts
follow the survivor under the existing merge rules. History keeps its original
attribution; previously captured authority for the retired profile does not
transfer. See Merging duplicate profiles
for transfer rules and personal USER.md handling.