codai docs
Apps

codaid CLI

Install the codaid command-line client on Linux or Windows, sign in, keep it up to date and know where to go for environments.

codaid is the codai command line: chat with codai, list sessions and schedules, check usage and keys, and send issues to Resolve. The same binary is also the daemon that turns a machine into a bring-your-own environment. This page is the short version; the full reference is in environments → codaid CLI.

Install

curl -fsSL https://codai.ro/install-codaid.sh | sh

Builds exist for x86_64 and aarch64 (static, no extra libraries). The binary goes to /usr/local/bin/codaid; set INSTALL_DIR to choose another folder.

Both installers check the download against the release's SHA256SUMS and stop if anything does not match. To check a file by hand, see verify downloads.

Sign in

codaid login     # opens auth.codai.ro/device with a one-time code
codaid whoami    # shows the account the stored key belongs to
codaid logout    # forgets the key on this machine

On a server without a browser, open auth.codai.ro/device on any device and type the code shown in the terminal. In CI, skip the sign-in and set CODAI_API_KEY=codai_….

codaid logout only removes the key from this machine. To make the key useless everywhere, revoke the device in hub.codai.ro under Security → Devices.

Update

Run the install command again. It replaces the binary with the newest release. Check the version with:

codaid version

On Windows, stop a running codaid run first, because Windows cannot replace a file that is in use.

Remove

Delete the binary (/usr/local/bin/codaid or %LOCALAPPDATA%\codai\bin\codaid.exe) and revoke the device in the hub. If you run the daemon as a service, stop and disable that unit first; the unit names are in run as a service.

Next

On this page