Page cover

Install & Authenticate The CLI

The Cosine CLI brings our AI coding agent to your terminal. It writes/refactors/tests code, runs and executes shell commands on your behalf to build and iterate on your tasks.

Install the CLI

The CLI's primary distribution is via Homebrew. We recommend you install via Homebrew, even on Linux.

brew installation

brew install CosineAI/tap/cos
cos --version

Linux

We recommend installation via Homebrew.

If you prefer not using Homebrew on Linux, you can install via:

curl -fsSL https://cosine.sh/install | bash

Dependencies

For the CLI to function correctly, we require the following tools:

  • fzf

  • ripgrep

sudo apt update
sudo apt install ripgrep fzf

Windows

Support for Windows is currently untested. If you would like to be part of our Windows beta, please reach out to [email protected]

Authenticate the CLI

You need to have a Cosine account and a GitHub project imported to your team to fully utilise the CLI.

Sign in to Cosine: https://cosine.sh/login

Then, within your terminal:

cos login

Last updated

Was this helpful?