Page cover

keyInstall & 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 Linuxarrow-up-right.

brew installation

brew install CosineAI/tap/cos
cos --version

Linux

circle-info

We recommend installation via Homebrewarrow-up-right.

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

circle-info

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:

Last updated

Was this helpful?