API Key Authentication
The Sekuire CLI uses API key authentication. You'll need to create an API key from your dashboard and configure it with the CLI.
âSekuire uses API keys (not username/password). Create one from your dashboard at
/dashboard/settings.Quick Start
- Go to your dashboard:
https://sekuire.ai/dashboard/settings?tab=api-keys - Click Create API Key
- Copy the key (shown only once!)
- Run
sekuire loginand paste your key
Terminalbash
$ sekuire login
đ Sekuire Login
đ To authenticate:
1. Go to: https://sekuire.ai/dashboard/settings?tab=api-keys
2. Create a new API Key for CLI access
3. Copy the key (you'll only see it once!)
4. Paste it below
Enter your API Key: sk_live_...
â
Login successful! API Key verified and bound to this device.Commands
- sekuire login â Configure API key
- sekuire logout â Remove credentials
- sekuire status â Check auth status
- sekuire auth whoami â Show current user info
login
Configure your API key for CLI access. This binds your key to your device fingerprint for security.
bash
sekuire login [OPTIONS]Options
| Option | Description |
|---|---|
--web-url <URL> | Web app URL (default: http://localhost:5555) |
Example
Terminalbash
$ sekuire login
đ Sekuire Login
đ To authenticate:
1. Go to: http://localhost:5555/dashboard/settings?tab=api-keys
2. Create a new API Key for CLI access
3. Copy the key (you'll only see it once!)
4. Paste it below
Enter your API Key: sk_live_abc123...
â
Login successful! API Key verified and bound to this device.
Device: MacBook-Pro
OS: macos
Fingerprint: a1b2c3d4e5f6...âšī¸Your API key is bound to your device fingerprint. Using the same key on a different device requires re-verification.
logout
Remove stored API key and credentials from this device.
bash
sekuire logoutExample
Terminalbash
$ sekuire logout
đĒ Logging out...
â
Logged out successfully!
Credentials removed from: /Users/dev/.sekuire/auth.jsonstatus
Check your current API key authentication status.
bash
sekuire statusOutput
Authenticatedbash
$ sekuire status
đ Authentication Status:
â
Authenticated with API Key
đ Key: sk_live_abc...xyz
đģ Device Fingerprint: a1b2c3d4...
đ Device: MacBook-Pro
đĨī¸ OS: macos
đ§ Workspace: ws_abc123Not authenticatedbash
$ sekuire status
â Not logged in
đĄ Run 'sekuire login' to authenticatewhoami
Fetch detailed user information from the backend using your API key.
bash
sekuire auth whoami [OPTIONS]Options
| Option | Description |
|---|---|
--backend-url <URL> | Backend URL (default: http://localhost:5556) |
Example
Terminalbash
$ sekuire auth whoami
đ¤ Current User Information:
â
Authenticated as:
đ§ Email: dev@example.com
đ User ID: user_abc123
đĸ Organization: Acme Corp
đģ Device Info:
đ Device: MacBook-Pro
đĨī¸ OS: macos
đ Fingerprint: a1b2c3d4...Credentials Storage
Your API key is stored locally in ~/.sekuire/auth.json:
~/.sekuire/auth.jsonjson
{
"api_key": "sk_live_...",
"device_fingerprint": "a1b2c3d4...",
"org_id": "org_...",
"workspace_id": "ws_..."
}â ī¸The auth file contains your API key. It has
600 permissions (owner read/write only). Never share this file.API Key Formats
Sekuire API keys have the following prefixes:
sk_live_â Production API keysk_test_â Test/sandbox API key