lorivo login
Verifies your API key and stores it for every other command.
Usage
lorivo login <api-key>
| Argument | Description |
|---|---|
api-key | An 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
- Calls
GET /api/meto prove the key works and learn whether it is the admin key or an org key. - Calls
GET /api/healthand refuses to save the config if the database is unhealthy. - Writes
{ apiUrl, adminKey }to~/.adapters/config.json(mode 0600), unlessADAPTERS_CONFIGpoints 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.devdatabase ok vllm ok
If vLLM is unreachable the login still succeeds, with a warning that deploys will fail until the node is back up.