Authentication
Submitting jobs and accessing your data on aqora.io requires an authenticated session. One login covers both the CLI and the aqora Python library.
Log in
Section titled “Log in”aqora loginThis opens your browser to authorize the CLI with your aqora account. If no browser can be opened, the CLI prints the authorization URL along with a QR code you can scan from another device.
Without a browser
Section titled “Without a browser”On a machine where completing a browser flow isn’t possible at all — over SSH, for example — log in with your username and password directly in the terminal:
aqora login --interactiveWhere credentials are stored
Section titled “Where credentials are stored”Credentials are saved in your platform’s data directory and refreshed automatically when they expire:
| OS | Path |
|---|---|
| Linux | ~/.local/share/aqora/credentials.json |
| macOS | ~/Library/Application Support/aqora/credentials.json |
| Windows | %APPDATA%\aqora\credentials.json |
The location can be overridden with --config-home or the AQORA_CONFIG_HOME environment
variable.
The aqora Python library reads the same file, so after aqora login you can use
from aqora import QPU without any further setup.
Access tokens for scripts
Section titled “Access tokens for scripts”To use your session outside the CLI — with curl or another API client — print a valid access
token (refreshing it first if needed):
aqora auth token