skillett login
skillett login [--key <api-key>]Description
Section titled “Description”Authenticates you with the Skillett platform. Without flags, starts the device authorization flow (RFC 8628) which opens your browser for authentication. With --key, validates and saves the key directly.
After login, the CLI:
- Saves
SKILLETT_API_KEYandSKILLETT_PLATFORMto a local.envfile - Detects your agent platform (Claude Code, Cursor, Windsurf, or Generic)
- Installs the core Skillett skill pointer in the platform-appropriate directory
Options
Section titled “Options”| Flag | Description | Default |
|---|---|---|
--key <key> | Skip device flow, authenticate with an existing API key | — |
Device authorization flow
Section titled “Device authorization flow”When run without --key:
- CLI requests a device code from
POST /auth/device/code - Opens your browser to the verification URL
- Displays a human-readable code (e.g.,
ABCD-1234) in terminal - Polls
POST /auth/device/tokenevery 5 seconds - On success, redirects you to the API Keys page to create/copy a key
- Prompts you to paste the API key
API calls
Section titled “API calls”| Step | Endpoint |
|---|---|
| Request device code | POST /auth/device/code |
| Poll for authorization | POST /auth/device/token |
| Validate API key | GET /v1/me |
Examples
Section titled “Examples”# Device flow (interactive)$ skillett loginOpening browser for authentication...Enter this code: ABCD-1234Waiting for authorization...✓ Authorized as david@example.com? Paste your API key: sk_a1b2c3d4...✓ Logged in as david@example.com✓ Core skill installed to .claude/skills/skillett/# Direct key authentication$ skillett login --key sk_a1b2c3d4e5f6...✓ Logged in as david@example.com✓ Core skill installed to .claude/skills/skillett/Exit codes
Section titled “Exit codes”0— Successfully authenticated1— Invalid API key or authorization denied2— Network error or server unavailable