Quickstart
Get from zero to an authenticated LokAI CLI session in a few minutes.
-
Open Studio
Sign in to Studio. Your account page is where you can manage personal access tokens for the CLI.
-
Choose your authentication method
You have three good options:
- Run
lokai auth loginfor an interactive terminal login with email and password. - Run
lokai auth login --browserto authenticate through Studio in the browser and link that session back to the CLI. - Create a personal access token in Account → Access Tokens if you want to use the CLI in CI, automation, or any headless environment.
- Run
-
Authenticate from your terminal
Interactive login:
Terminal window lokai auth loginBrowser login:
Terminal window lokai auth login --browserToken-based login:
Terminal window lokai auth login --token <lok_pat_...> -
Verify the active session
Confirm that the CLI can resolve your account and workspace information:
Terminal window lokai auth whoamilokai auth status -
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.
What’s next
Section titled “What’s next”The authentication commands are available now. Project commands such as init, push, and pull
are being documented alongside their implementation.
Next steps
Section titled “Next steps”- CLI Reference — full reference for the commands available today
- Installation — endpoint selection and local credential storage