DocsGetting StartedAuthentication

Authentication

Log in to the HelixMind web platform, manage API keys, and understand feature gating by subscription tier.

Authentication

HelixMind uses a browser-based login flow to connect your CLI to your web platform account. After a one-time login, credentials are cached locally and the CLI works offline.

Login

# Browser-based login (recommended)
helixmind login

# Direct API key login
helixmind login --api-key hm_your_key_here

# Custom platform URL
helixmind login --url https://your-instance.example.com

# Re-authenticate (even if already logged in)
helixmind login --force

How the Browser Flow Works

  1. The CLI starts a temporary local server on 127.0.0.1
  2. Your default browser opens the HelixMind authorization page
  3. You log in (or authorize immediately if already signed in)
  4. The webapp redirects back to the CLI with an API key
  5. The CLI stores the key locally at ~/.helixmind/config.json

The flow uses a cryptographic state parameter for CSRF protection. The local callback server accepts exactly one response and times out after 120 seconds.

If the browser cannot be opened automatically, the CLI prints the URL for you to open manually.

Logout

# Logout and revoke the API key on the server
helixmind logout

# Logout locally only (keep server key valid)
helixmind logout --no-revoke

Check Status

helixmind whoami

Shows your email, subscription plan, and masked API key. Works offline with cached data.

Slash Commands

During an interactive chat session, you can also use:

CommandDescription
/loginStart login flow
/logoutLog out and revoke key
/whoamiShow account info

Auth Guard. Login vs Open Source

When you first start HelixMind, you see a choice screen with two options:

  1. Login (recommended). free account, unlocks Jarvis, Validation Matrix, Security Monitor, and more
  2. Open Source: no account needed, full CLI agent with 22 tools and spiral memory

HelixMind never forces login. You can always continue in Open Source mode. If login fails, the CLI automatically falls back to Open Source mode.

Run helixmind login anytime to upgrade from Open Source to the full experience.

Feature Gating

When using Open Source mode (no login), the following commands are locked:

Locked CommandFeatureUnlock
/jarvisJarvishelixmind login (Free+)
/autoAutonomous Modehelixmind login (Free+)
/securitySecurity Audithelixmind login (Free+)
/monitorSecurity Monitorhelixmind login (Free+)
/validationValidation Matrixhelixmind login (Free+)

These commands show a lock indicator and a login hint when accessed without an account. They also don't appear in autocomplete suggestions.

Subscription Tiers

FeatureOpen SourceFree+ (Login)ProTeamEnterprise
AI Coding AgentYesYesYesYesYes
22 Agent ToolsYesYesYesYesYes
Spiral Memory1 local brain3 brains15 brainsUnlimitedUnlimited
All ProvidersYesYesYesYesYes
Web Knowledge EnricherYesYesYesYesYes
Bug Journal + BrowserYesYesYesYesYes
Brain VisualizationYesYesYesYesYes
Jarvis.1 instance3 instancesUnlimitedUnlimited
Validation Matrix.BasicFullFullFull
Security Monitor..YesYesYes
Autonomous Mode.YesYesYesYes
Brain Management.YesYesYesYes
Live Brain WebSocket.YesYesYesYes
Cloud Sync..YesYesYes
Team Features...YesYes
Self-Hosted / API....Yes

Open Source (no account) gives you the full CLI agent. 22 tools, spiral memory, all providers, browser control, bug tracking, and sessions.

Free+ (free login) adds Jarvis, Validation Matrix, Autonomous Mode, Brain Management, and Live Brain. No credit card, no trial, free forever.

API Keys

API keys are prefixed with hm_ and stored hashed (SHA-256) on the server. Each key has scopes (cli, relay) and a device name.

Key limits by plan:

PlanMax API Keys
Free3
Pro10
Team25
EnterpriseUnlimited

You can manage API keys from your web dashboard at Dashboard > API Keys.

Config Keys

Authentication stores the following keys in ~/.helixmind/config.json:

KeyDescription
relay.apiKeyYour HelixMind API key
relay.urlWeb platform URL
relay.userIdYour user ID
relay.userEmailYour email address
relay.planYour subscription plan
relay.loginAtTimestamp of last login
relay.autoConnectAuto-connect to relay on startup
HelixMind โ€” AI Coding CLI with Spiral Memory