Skip to content

Quickstart

Get from zero to an authenticated LokAI CLI session in a few minutes.

  1. Open Studio

    Sign in to Studio. Your account page is where you can manage personal access tokens for the CLI.

  2. Choose your authentication method

    You have three good options:

    • Run lokai auth login for an interactive terminal login with email and password.
    • Run lokai auth login --browser to authenticate through Studio in the browser and link that session back to the CLI.
    • Create a personal access token in AccountAccess Tokens if you want to use the CLI in CI, automation, or any headless environment.
  3. Authenticate from your terminal

    Interactive login:

    Terminal window
    lokai auth login

    Browser login:

    Terminal window
    lokai auth login --browser

    Token-based login:

    Terminal window
    lokai auth login --token <lok_pat_...>
  4. Verify the active session

    Confirm that the CLI can resolve your account and workspace information:

    Terminal window
    lokai auth whoami
    lokai auth status
  5. Use the same auth in automation

    For scripts or CI jobs, export your token as an environment variable instead of writing it into command history:

    Terminal window
    export LOKAI_API_TOKEN=<lok_pat_...>
    lokai auth whoami

That’s it. Your machine is now connected to LokAI and ready for the next CLI workflows as they land.

The authentication commands are available now. Project commands such as init, push, and pull are being documented alongside their implementation.

  • CLI Reference — full reference for the commands available today
  • Installation — endpoint selection and local credential storage