Org
Org membership, invites, and keys.
rensei org manages the membership, invite, and API-key surfaces of your Rensei organization from the CLI. Use it to inspect and switch orgs, manage members and their roles, handle pending invites, and create or revoke org-scoped API keys.
Commands
org list
List all orgs your authenticated identity has access to.
rensei org list [--json]rensei org list
rensei org list --jsonExample output:
SLUG DISPLAY NAME ROLE ACTIVE
acme-engineering Acme Engineering admin *
acme-sandbox Acme Sandbox memberThe * marks the currently active org. CLI commands that require an org context use the active org unless overridden with --org <slug>.
org activate
Switch the active org context stored in ~/.config/rensei/config.json.
rensei org activate <slug>
rensei org activate --name "<display-name>"rensei org activate acme-engineering
rensei org activate --name "Acme Engineering"org show
Print details of the currently active org.
rensei org showIncludes org slug, display name, your role, member count, and the API base URL that CLI commands resolve against.
Members
org members list
rensei org members list [--json]rensei org members listExample output:
EMAIL ROLE JOINED
mark@acme.com admin 2024-11-01
sara@acme.com member 2025-01-14
bot-ci@acme.com viewer 2025-03-02org members update
Change a member's role.
rensei org members update <email> --role <role>Valid roles: admin, member, viewer.
rensei org members update sara@acme.com --role adminorg members remove
Remove a member from the org. Use --yes to skip the confirmation prompt.
rensei org members remove <email> [--yes]rensei org members remove former-contractor@acme.com --yesInvites
org invites list
List pending (not yet accepted) invitations.
rensei org invites list [--json]org invites create
Send an email invitation to join the org.
rensei org invites create <email> --role <role>Valid roles: admin, member, viewer.
rensei org invites create new-hire@acme.com --role memberThe invitation link is sent to the provided email address. Invites are valid for 7 days.
org invites revoke
Cancel a pending invite before it is accepted.
rensei org invites revoke <invite-id> [--yes]Invite IDs are shown by org invites list. Use --yes to skip confirmation.
API keys
Org-scoped API keys (rsk_live_*) are used for automation, CI pipelines, and service-to-service calls. They are not tied to any individual user identity and do not expire unless explicitly revoked.
org api-keys list
rensei org api-keys list [--json]Example output:
ID NAME SCOPES CREATED
key-abc123 CI pipeline sessions:read,write 2025-06-01
key-def456 Monitoring bot sessions:read 2025-09-14org api-keys create
Create a new org-scoped API key.
rensei org api-keys create --name <name> [--scopes <scope,...>]| Flag | Description |
|---|---|
--name | Human-readable label for the key |
--scopes | Comma-separated list of scopes to grant. Defaults to the minimum required set. |
rensei org api-keys create --name "CI pipeline" --scopes "sessions:read,sessions:write"The full token value is shown exactly once at creation time. Copy it immediately - it cannot be retrieved again. Store it in your secret manager; never commit it to source control.
Common scopes:
| Scope | Access granted |
|---|---|
sessions:read | Read session status and activities |
sessions:write | Prompt, stop, and manage sessions |
workflows:read | Read workflow definitions and run history |
workflows:write | Create, update, and trigger workflows |
projects:read | Read project metadata and membership |
For the full scope list and usage with the REST API, see API keys.
org api-keys revoke
Permanently revoke a key. All requests using the revoked key will immediately begin returning 401 Unauthorized.
rensei org api-keys revoke <key-id> [--yes]rensei org api-keys revoke key-abc123 --yesGlobal flags
All rensei org commands accept the standard global flags:
| Flag | Description |
|---|---|
--org <slug> | Target a specific org instead of the active one |
--json | Emit machine-readable JSON output |
--no-interactive | Disable prompts (required for CI/non-TTY environments) |
See Global flags for the full set.
Related pages
- Auth contexts - user, org_token, and project_token auth kinds
- Members and RBAC - role definitions and platform access model
- API keys -
rsk_live_*key scopes and the REST API auth surface - Project - project-level membership, repos, trackers, and tokens