Authentication
Set up authentication for the Mac app, CLI, and API.
Mac app & web
Sign in with your email and password at supacortex.ai. The Mac app uses the same account.
CLI
The CLI uses a device code flow:
scx loginThis opens your browser where you approve the device. Once approved, the CLI stores your credentials locally.
To check your current session:
scx whoamiTo log out:
scx logoutAPI keys
For programmatic access (scripts, integrations, CI/CD), use API keys instead of session auth.
Create an API key
In the Mac app, click your avatar → API key → type a name → Create.
Use an API key
Pass the key as a Bearer token:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.supacortex.ai/v1/bookmarksYou can also set it directly in the CLI instead of using the browser login:
scx token <your-api-key>