Lookio Docs
Lookio websiteOpen Lookio
CLICLI authentication

CLI authentication

Sign the lookio CLI in with a browser, a device code or an API key, choose scopes, use several profiles and know where credentials are stored.

The CLI uses the same two credentials as the API: a personal connection (OAuth) and a workspace API key. See Authentication.

Sign in

Terminal
lookio auth login

The CLI opens Lookio, you approve the workspace and the permissions, and the CLI stores the token. This is the right route for a person: the connection carries your identity and can keep conversations.

Terminal
lookio auth login --device

Use the device flow over SSH or in a container with no browser. The CLI prints an address and a code. Open the address on any device and enter the code.

Terminal
LOOKIO_API_KEY="sk_live_..." lookio auth login

Use a workspace key for CI or a server. You can also pass --key, but a key typed on the command line is saved in your shell history, so prefer the environment variable and rotate the key if it leaked.

Before it stores anything, the CLI calls GET /v1/account with the credential. A credential that does not work is never saved.

Which permissions the CLI asks for

A browser or device login asks for the Editor set: account:read, usage:read, resources:read, resources:write, assistants:read, assistants:write and query. It leaves out resources:delete, assistants:delete and admin on purpose: this login deletes nothing.

To ask for more or less, pass --scope:

Terminal
lookio auth login --scope account:read,resources:read,resources:delete,assistants:delete,admin

You can only get what your role in the workspace allows. An admin is needed for admin, which lookio members and lookio tags rename use.

Check and sign out

Terminal
lookio auth status      # workspace, plan, credential kind, scopes and when the token expires
lookio auth logout      # forgets the credential and revokes it server-side when possible

If LOOKIO_API_KEY is still set in your environment, it keeps authenticating after you sign out. logout warns you.

Credential order

The CLI looks for a credential in this order and uses the first it finds:

  1. The LOOKIO_API_KEY environment variable. It always wins, so CI can override a stale login.
  2. The OS keychain.
  3. ~/.config/lookio/config.json, with mode 0600, when there is no keychain (a container, a headless Linux machine). Set LOOKIO_NO_KEYCHAIN to skip the keychain on purpose.

XDG_CONFIG_HOME moves the config directory.

An access token is renewed with its refresh token automatically. If the grant was revoked, the CLI forgets it and asks you to sign in again.

Profiles

A profile is a named stored credential, for example one per workspace.

Terminal
lookio --profile acme auth login
lookio --profile acme account
LOOKIO_PROFILE=acme lookio resources list

Environment variables

VariablePurpose
LOOKIO_API_KEYAn API key. Overrides any stored credential.
LOOKIO_PROFILEThe profile to use. Same as --profile.
LOOKIO_API_URLThe API base URL. Defaults to https://api.lookio.app/v1.
LOOKIO_MCP_URLThe MCP host, used by lookio mcp. Defaults to https://mcp.lookio.app.
LOOKIO_AUTH_URLThe authorization server, when it is not the API host.
LOOKIO_NO_TUIAny value forces JSON output.
LOOKIO_NO_KEYCHAINAny value skips the OS keychain.
NO_COLORDisables colour only. It does not change the format.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Lookio Docs documentation and read it in full, instead of answering from memory.

https://lookio.app/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://lookio.app/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.