Skip to content

auth

Authentication and credentials. auth logs the CLI into a Sibyl server, manages stored tokens, and creates API keys for MCP clients and scripts.

Top-level aliases are available for the common path: sibyl login, sibyl logout, and sibyl whoami.

Commands

CommandDescription
sibyl auth loginLog in to a server and save credentials
sibyl auth statusShow auth status for the current context
sibyl auth local-signupCreate a local user and save its token
sibyl auth set-tokenSet an auth token for a server
sibyl auth clear-tokenClear auth tokens for a server
sibyl auth api-keyAPI key management

auth login

Login to a Sibyl server and save credentials. With no URL, logs in to the active context or the default server. Login opens a browser for the auth flow unless --no-browser is set, or you can pass --email and --password for local login.

The default self-hosted install uses local auth. Explicit --email and --password credentials go to the local login path; browser login is for device/OAuth/OIDC flows configured on the server.

Synopsis

bash
sibyl auth login [url] [options]
# Alias:
sibyl login [url] [options]

Arguments

ArgumentRequiredDescription
urlNoServer URL. If omitted, uses the active context or default

Options

OptionShortDefaultDescription
--server-s(none)Server base URL (alias for the positional URL)
--context-c(none)Create or update a named context for this server
--no-browserfalsePrint the URL instead of opening a browser
--timeout180Seconds to wait for approval/auth
--email-e(none)Email for local login
--password-p(none)Password for local login
--break-glass-reason(none)Incident reason for emergency local login
--insecure-kfalseDisable SSL certificate verification

Examples

bash
# Log in to the active context or default server
sibyl login

# Log in to a specific server
sibyl login https://sibyl.example.com

# Log in and create a named context in one step
sibyl auth login https://prod.example.com -c prod

# Headless login (no browser)
sibyl auth login --no-browser

# Local email/password login
sibyl auth login -e stef@example.com -p "$SIBYL_PASSWORD"

# Emergency local login during an approved break-glass window
sibyl auth login \
  -e owner@example.com \
  -p "$SIBYL_BREAK_GLASS_PASSWORD" \
  --break-glass-reason "INC-123 IdP outage"

auth status

Show auth status for the current context.

bash
sibyl auth status

auth local-signup

Create a local user and save the returned access token. On a fresh default install, this is allowed for setup bootstrap and creates the first owner/admin user. After setup completes, local signup is blocked unless the request uses an invitation token or public signups are explicitly enabled on the server.

Synopsis

bash
sibyl auth local-signup --email <email> --password <password> --name <name>

Options

OptionShortRequiredDescription
--email-eYesEmail address
--password-pYesPassword (min 8 chars)
--name-nYesDisplay name

Example

bash
sibyl auth local-signup \
  -e dev@localhost -p "devpassword" -n "Dev User"

auth set-token

Set an auth token for a server directly. Defaults to the active context server.

Synopsis

bash
sibyl auth set-token <token> [options]

Arguments

ArgumentRequiredDescription
tokenYesAuth token

Options

OptionShortDescription
--server-sServer URL to set the token for (defaults to active context)

auth clear-token

Clear auth tokens for a server. Defaults to the active context server, or use --all to clear every stored token.

Synopsis

bash
sibyl auth clear-token [options]

Options

OptionShortDescription
--server-sServer URL to clear tokens for (defaults to active context)
--all-aClear tokens for ALL servers

Example

bash
sibyl auth clear-token --all

auth api-key

API key management. API keys authenticate MCP clients and scripts without a browser session. Keys carry scopes and can be limited to specific projects and memory spaces.

SubcommandDescription
sibyl auth api-key listList API keys
sibyl auth api-key createCreate an API key
sibyl auth api-key revokeRevoke an API key

auth api-key list

bash
sibyl auth api-key list

auth api-key create

bash
sibyl auth api-key create --name <name> [options]
OptionShortDefaultDescription
--name-n(req.)Display name for the key (required)
--live / --testliveUse an sk_live_ (default) or sk_test_ key prefix
--scopesmcpComma-separated scopes
--projects(none)Comma-separated graph project IDs the key may access
--memory-spaces(none)Comma-separated memory-space IDs the key may access
--expires-days(none)Optional expiry in days (1-365)

Available scopes include mcp, api:read, api:write, plus memory scopes. The full key value is shown only once at creation.

Examples

bash
# MCP key for a single project
sibyl auth api-key create --name "claude-mcp" --projects proj_abc123

# Read-only API key that expires in 90 days
sibyl auth api-key create --name "ci-readonly" \
  --scopes "api:read" --expires-days 90

# Test key scoped to a memory space
sibyl auth api-key create --name "agent-sandbox" --test \
  --memory-spaces space_main

auth api-key revoke

bash
sibyl auth api-key revoke <api_key_id>
ArgumentRequiredDescription
api_key_idYesAPI key ID to revoke

Released under the Apache-2.0 License.