Skip to main content

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.

important

Sekuire uses API keys (not username/password). Create one from your dashboard at /dashboard/settings.

Quick Start

  1. Go to your dashboard: https://sekuire.ai/dashboard/settings?tab=api-keys
  2. Click Create API Key
  3. Copy the key (shown only once!)
  4. Run sekuire login and paste your key
Terminal
$ 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 your API key for CLI access. This binds your key to your device fingerprint for security.

sekuire login [OPTIONS]

Options

OptionDescription
--web-url <URL>Web app URL (default: https://sekuire.ai)
--backend <URL>Backend API URL (default: https://api.sekuire.ai)

Example

Terminal
$ 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...
note

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

Terminal
$ 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

Authenticated
$ sekuire status
Authentication Status:
Authenticated with API Key
Key: sk_live_abc...xyz
Device Fingerprint: a1b2c3d4...
Device: MacBook-Pro
OS: macos
Workspace: ws_abc123
Not authenticated
$ 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

OptionDescription
--backend-url <URL>Backend URL (default: https://api.sekuire.ai)

Example

Terminal
$ 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.json
{
"api_key": "sk_live_...",
"device_fingerprint": "a1b2c3d4...",
"org_id": "org_...",
"workspace_id": "ws_..."
}
warning

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 key
  • sk_test_ - Test/sandbox API key