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

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


login

Configure your API key for CLI access. This binds your key to your device fingerprint for security.

bash
sekuire login [OPTIONS]

Options

OptionDescription
--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 logout

Example

Terminalbash
$ sekuire logout đŸšĒ Logging out... ✅ Logged out successfully! Credentials removed from: /Users/dev/.sekuire/auth.json

status

Check your current API key authentication status.

bash
sekuire status

Output

Authenticatedbash
$ 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 authenticatedbash
$ sekuire status ❌ Not logged in 💡 Run 'sekuire login' to authenticate

whoami

Fetch detailed user information from the backend using your API key.

bash
sekuire auth whoami [OPTIONS]

Options

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