Skip to main content

Credentials file

Login credentials are stored in ~/.olira/credentials.json (permissions 600).
FieldDescription
access_tokenShort-lived JWT used for API calls
api_serverBase URL for the Olira API
mcp_serverBase URL for the MCP Patient State server
identityDisplay name or email
organizationOrganization name
expires_atISO 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

CodeMeaning
0Success
1Error (authentication failure, API error, validation error, user cancelled)