> ## Documentation Index
> Fetch the complete documentation index at: https://docs.olira.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Credentials & exit codes

> Where the CLI stores login credentials, token lifetimes, and exit codes.

## 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.

<Note>
  `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.
</Note>

## Exit codes

| Code | Meaning                                                                     |
| ---- | --------------------------------------------------------------------------- |
| `0`  | Success                                                                     |
| `1`  | Error (authentication failure, API error, validation error, user cancelled) |
