Skip to main content

Getting Started

Authentication

OAuth sign-in, API keys, device login, rate-limit tiers.

OAuth providers

Sign in with GitHub or Google at sealevel.tech/sign-in. Then go to the Dashboard and click Generate API Key to create your key.

Device login (CLI)

The CLI supports browser-based authentication via the OAuth device flow. Run slm login — a device code appears in your terminal, your browser opens, and once you authenticate, the CLI receives your API key automatically.

Bash
slm login
# Opens browser → sign in → CLI gets your key
# Key is stored securely in OS keyring

You can also authenticate inside an active session with /login.

API key format

Keys start with slm_ followed by a 32-char hex token. Pass in the Authorization header:

Bash
Authorization: Bearer slm_a1b2c3...

Key storage

The CLI stores your API key in the OS keyring (macOS Keychain, Windows Credential Locker, GNOME keyring/KWallet). Falls back to ~/.sealevel/config.toml (chmod 600) if keyring is unavailable.

Rate-limit tiers

  • Free (signed-in): 5 req/min, 100K tokens/day
  • Standard: 15 req/min, 500K tokens/day

Limits reset at UTC midnight. Hit a limit and you get a 429 with Retry-After.