Sessions
Log in to your AI Agent, check the session, and log out. Device login is the default. For its steps, see Log in. This page covers the login without a browser, and the status command.
Commands
Examples
Log in with an email and a password that adacli reads from stdin:
Log in with ADACLI_EMAIL and ADACLI_PASSWORD set in the environment:
Check the session as JSON:
Log out:
Details
- adacli takes the email from
--email, then fromADACLI_EMAIL. It takes the password from--password-stdinor--password, then fromADACLI_PASSWORD. - If adacli finds an email and a password, it logs in without a browser. If it finds neither, it starts device login. If it finds only one, it exits with code
2. --passwordshows the password in the process list. Use--password-stdinorADACLI_PASSWORD.- An SSO account and an account with MFA must use device login.
login --device-code <code>gets a session from a device code that someone already approved. It opens no browser.statusexits with code0when the session is valid. It exits with code3when you are not logged in or the session expired. When the check itself fails, for example because adacli cannot connect to the Ada service,statusexits with the code of that failure, such as8. An AI assistant uses the exit code to check the login before it runs other commands.- With
--json,statuswrites its result to stdout, also when there is no working session:not_logged_inorsession_invalid. It writes no error to stderr. logoutdoes not log you out of the dashboard.
For every option of a command, run it with --help, for example adacli acme login --help.
Related commands
skills: install the skills that device login offers.session-tracking: log the intent of an AI assistant.upgrade: check for a newer adacli release.