CLI quickstart
Install the AI Glot command-line interface, authenticate with OAuth or an API key, and verify workspace access from a terminal.
The AI Glot CLI wraps the REST API for humans, CI jobs and coding agents. It requires Node.js 20 or newer.
Install
npx @ai-glot/cli accountnpm install --global @ai-glot/cli
aiglot --helpAuthenticate
aiglot auth loginThe CLI opens AI Glot, asks you to approve the workspace and scopes, then stores the OAuth credential securely. This is the recommended route for a person.
aiglot auth login --deviceUse device login over SSH or where the machine cannot open a browser.
aiglot auth login --key "$AIGLOT_API_KEY"Use a workspace key for CI or a server. Passing it on the command line can enter it in shell history; an environment variable is safer.
If OAuth has not yet been enabled on the deployed authorization server, the CLI explains that and directs you to API-key login instead.
Verify the connection
aiglot auth status
aiglot account
aiglot doctoraccount shows the workspace, plan, capabilities and scopes. doctor checks connectivity, authentication, CLI version and clock skew.
Continue with the command guide or automation behaviour.