Platform
API keys
The credential is the session from sign-in. The CLI stores a bearer token. The desk stores a cookie.
On this page
The session is the key
Oluso Swift and Oluso Sentinel run on your account. You do not configure a separate model key. oluso login issues an access token and a refresh token. The CLI sends the access token as Authorization: Bearer on later requests, and refreshes it after a 401.
| Surface | How you sign in | Where the secret lives |
|---|---|---|
| CLI | oluso login device code | ~/.oluso/credentials.json, or $OLUSO_HOME/credentials.json. Directory mode 0700, file mode 0600. |
| Desk | Email and password at /login | HttpOnly session cookie. Changes send x-oluso-request: 1. |
| VS Code | Oluso: Sign in, email and password | Editor secret storage, keys oluso.access and oluso.refresh. |
Device code
- Run
oluso login. The CLI callsPOST /v1/device/start. - It prints a user code and a verification URL on your desk (
/device). - Sign in on the desk and approve that code. The desk calls
POST /v1/device/approve. - The CLI polls
POST /v1/device/tokenuntil the status isapproved, then writes the tokens. - A successful sign-in prints
Signed in as <name>.
The code expires after 15 minutes. The poll interval comes from the start response, and the CLI waits two seconds when the server omits one.
Use the token
Commands that need an account (oluso, oluso chat, oluso whoami, oluso balance, oluso scan --upload) read the access token from disk. There is no second command that mints a key. To call the HTTP API yourself, use that bearer token, or sign in from the desk and use the cookie.
bash
oluso whoami
oluso balance
oluso logoutoluso logout clears the access token and the refresh token in the credential file. It prints Signed out. Deleting ~/.oluso removes the file. See API for the routes those commands call.