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
$ 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
- login - Configure API key
- logout - Remove credentials
- status - Check auth status
- auth whoami - Show current user info
login
Configure your API key for CLI access. This binds your key to your device fingerprint for security.
sekuire login [OPTIONS]
Options
| Option | Description |
|---|---|
--web-url <URL> | Web app URL (default: https://sekuire.ai) |
--backend <URL> | Backend API URL (default: https://api.sekuire.ai) |
Example
$ 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_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.
sekuire logout
Example
$ sekuire logout
Logging out...
Logged out successfully!
Credentials removed from: /Users/dev/.sekuire/auth.json
status
Check your current API key authentication status.
sekuire status
Output
$ sekuire status
Authentication Status:
Authenticated with API Key
Key: sk_live_abc...xyz
Device Fingerprint: a1b2c3d4...
Device: MacBook-Pro
OS: macos
Workspace: ws_abc123
$ sekuire status
Not logged in
Run 'sekuire login' to authenticate
whoami
Fetch detailed user information from the backend using your API key.
sekuire auth whoami [OPTIONS]
Options
| Option | Description |
|---|---|
--backend-url <URL> | Backend URL (default: https://api.sekuire.ai) |
Example
$ 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:
{
"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