Manage your nSelf cloud account, sessions, team members, licenses, and authorized devices.
# Log in to your nSelf account
nself account login
# Check current session status
nself account status
# View active licenses on this account
nself account licensesnself account <SUBCOMMAND> [FLAGS]nself account is your primary interface for managing the nSelf cloud-side identity that backs your CLI sessions and plugin license entitlements. It covers authentication (login / logout), viewing account metadata, managing team access, listing and transferring licenses, and revoking device sessions.
Licenses activated via nself license set are tied to the account. When you log in on a new machine, the CLI restores the account context automatically and re-validates the license againstping.nself.org/license/validate. Device authorization lets you control which machines are allowed to use the license key without rotating it.
Team commands are available to any account that owns an ɳSelf+ subscription or an organizational plan. Owner-level accounts can invite members, remove members, and set per-member roles.
Open the browser OAuth flow and save the session token locally.
nself account login
# Opens https://nself.org/auth/cli in your browser
# Token is saved to ~/.nself/auth.jsonRevoke the current session token and remove it from disk.
nself account logoutPrint the logged-in user, email, plan tier, and session expiry.
nself account status
# Account: aric@example.com
# Plan: ɳSelf+ (renews 2026-06-01)
# Session: valid (expires in 29 days)Manage team members on organizational accounts.
| Sub-action | Description |
|---|---|
team invite <email> | Send an invitation to a new member |
team remove <email> | Remove a member from the team |
team role <email> <role> | Set role: owner, admin, member |
nself account team invite dev@example.com
nself account team role dev@example.com admin
nself account team remove dev@example.comList all license keys associated with the account, including tier and expiry.
nself account licenses
# KEY TIER EXPIRES
# nself_pro_abc123... ɳClaw 2026-06-01
# nself_pro_def456... ɳSelf+ 2026-09-15List and revoke authorized devices that hold sessions for this account.
nself account devices
# ID HOSTNAME LAST SEEN
# a1b2c3 macbook-pro 2026-05-07 14:22 UTC
# d4e5f6 ubuntu-vps 2026-05-01 09:10 UTC
nself account devices revoke d4e5f6Transfer account ownership to another user. Requires confirmation from the recipient.
nself account transfer --to newowner@example.com| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | false | Output as JSON (status, licenses, devices) |
--no-browser | bool | false | Print auth URL instead of opening the browser (login) |
--timeout | int | 120 | Seconds to wait for the browser OAuth callback (login) |
nself account login --no-browser
# Prints: https://nself.org/auth/cli?token=...
# Open that URL in any browser, then the CLI continuesnself account team invite alice@example.com
nself account team role alice@example.com adminnself account status --json
nself account licenses --json | jq '.[] | select(.tier == "nself+")'nself account devices --json | jq '.[] | select(.hostname == "lost-laptop") | .id'
nself account devices revoke <id>NSELF_AUTH_TOKEN — override the session token loaded from disk (useful in CI)NSELF_API_BASE — override the account API base URL (default: https://nself.org)0 — success1 — generic error (network failure, API error)2 — invalid arguments or missing subcommand3 — authentication required (not logged in)nself account loginnself account logout