lorivo login

Verifies your API key and stores it for every other command.

Usage

lorivo login <api-key>
ArgumentDescription
api-keyAn admin key (full platform access) or your org's ad_… key

Instead of the positional argument, the key may also come from ADAPTERS_ADMIN_KEY (or its alias ADAPTERS_API_KEY). When both are absent the command exits with usage help.

What it does

  1. Calls GET /api/me to prove the key works and learn whether it is the admin key or an org key.
  2. Calls GET /api/health and refuses to save the config if the database is unhealthy.
  3. Writes { apiUrl, adminKey } to ~/.adapters/config.json (mode 0600), unless ADAPTERS_CONFIG points elsewhere.

The control-plane URL is built into the CLI; set ADAPTERS_API_URL to point at a different deployment (for example http://localhost:3000 in local development).

Example

output
✓ Logged in as org "acme-ai" for https://lorivo.dev
database ok vllm ok

If vLLM is unreachable the login still succeeds, with a warning that deploys will fail until the node is back up.