| title | Lesson 1: Authentication |
|---|---|
| description | Set up the Lua CLI and authenticate your account |
- Run the Lua CLI
- Authenticate your account interactively
- Verify your setup works
Use the terminal below to follow along. lua-cli is pre-installed and ready to use.
The Lua CLI is pre-installed in the terminal above. Verify it's working:
lua --versionYou should see the version number printed.
Run the authentication command — the CLI will guide you through the process interactively:
lua auth configureThe CLI will ask you to choose between:
- API Key — paste your key when prompted
- Email OTP — enter your email, check your inbox for the code, then enter it
Once authenticated, check that everything is connected:
lua agentsYou should see your organizations and agents listed. If you're brand new, the list may be empty — that's fine! We'll create an agent in the next lesson.
`lua auth configure` — this launches the interactive authentication wizard where you choose between API key or email OTP. 1. **API Key** — if you already have one, paste it when prompted 2. **Email OTP** — the CLI sends a 6-digit code to your email Run `lua agents` to list your organizations and agents. If it returns results (or an empty list without errors), you're authenticated. Create and configure your first AI agent Full authentication command reference