Credentials file
Login credentials are stored in ~/.olira/credentials.json (permissions 600).
| Field | Description |
|---|
access_token | Short-lived JWT used for API calls |
api_server | Base URL for the Olira API |
mcp_server | Base URL for the MCP Patient State server |
identity | Display name or email |
organization | Organization name |
expires_at | ISO 8601 expiry time of the access token |
Tokens expire after ~24 hours; re-run olira login to refresh. API keys never
expire and are not stored locally.
olira configure cursor writes your current token into .cursor/mcp.json.
When the token expires, re-run olira configure cursor or replace the token
with a long-lived API key.
Exit codes
| Code | Meaning |
|---|
0 | Success |
1 | Error (authentication failure, API error, validation error, user cancelled) |