Skip to navigation

Getting started

Do not build an integration or a script on adacli. adacli is for a person or an AI assistant that works in a terminal. A release that removes or changes a command name, an option name, or an exit code increases the major version. Most output comes from the Ada service, so it can change without a new adacli release. Only the latest release of adacli is supported. For details, see Versioning and Supported releases. To build an integration, use the Ada API. The Ada API is the only stable interface.

Supported platforms

Check that adacli runs on your platform before you install it.

adacli runs on the following platforms:

  • macOS on Apple Silicon and Intel
  • Linux with glibc on x64 and arm64
  • Windows on x64

Windows on Arm runs the x64 release through the built-in emulation. Alpine and other Linux distributions that use musl are not supported.

Install

The recommended install method depends on your platform. adacli is one file and needs no other software.

PlatformRecommended methodOther method
macOSHomebrewInstall script
LinuxInstall scriptHomebrew
WindowsScoopInstall script

Check the install

Confirm that adacli is on your PATH:

adacli --version

adacli shows its release number.

Log in

adacli connects to one Agent at a time. Give the Agent before the command, in one of these forms:

  • A handle, for example acme. adacli connects to acme.ada.support. Use the handle only for an Agent in the default region.
  • A full domain, for example acme.eu.ada.support. Use the full domain for an Agent in another region, such as eu or ca.
  • The URL of your Ada dashboard, for example https://acme.eu.ada.support/. adacli uses only the domain, so you can paste any page of the dashboard from your browser.

If you do not know the region of your Agent, open the Ada dashboard and copy the address from the browser. Then paste it in the command:

adacli https://acme.eu.ada.support/ login

After you log in, give the full domain or the URL in each command. The handle acme does not connect to acme.eu.ada.support.

adacli uses device login. You approve a code in the Ada dashboard, on any device. The dashboard handles your password, SSO, and two-factor authentication.

To log in with device login:

  1. Run the login command:

    adacli acme login

    adacli shows a code and a URL, and tries to open the URL in your browser.

  2. Open the URL on any device, and sign in to the Ada dashboard.

  3. On the Authorize adacli on this machine? page, check that the code on the page is the code in your terminal. Then select the confirmation check box.

    The page also shows where the login started. If the login started on a different network than yours, the page shows a warning. Approve only a login that you started.

    An Agent can use a typed code instead. Then the page has no code, and you type the code from your terminal. To use a typed code for your Agent, contact Ada Support.

  4. Click Approve.

    adacli shows the email address you logged in with.

The code expires 10 minutes after you run the login command.

Sessions

adacli stores your session in ~/.adacli/sessions.json. The session ends after the inactivity timeout of your Agent, which is 24 hours by default. Each command extends the session, up to the absolute timeout, which is 10 days by default.

  • To check your session, run adacli acme status.
  • To log out, run adacli acme logout. Logging out of adacli does not log you out of the dashboard.

Upgrade

adacli tells you when a newer release is available. Upgrade to the latest release to keep getting fixes.

To upgrade adacli:

  1. Run the upgrade command:

    adacli upgrade

    adacli shows the upgrade command for the way you installed it.

  2. Run the command that adacli shows.

For the upgrade command for each install method, see the page for your platform.

To stop the notice about new releases, set ADACLI_NO_UPDATE_CHECK=1.