Skip to main content

Overview

The Cohere API CLI Tool is an alternative to our web interface, which allows you to login to your Cohere account, manage API Keys, and run finetunes.

The CLI tool is POSIX compliant (you can expect arguments and flags to work the same way they do with other popular CLI tools). Don't forget to use co: --help or co: [COMMAND] --help if you don't want to check back to this page!

Install#

  1. Download the package for your OS. Use the following curl command to download the correct package, or use a download link below to get a tar.

    curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cohere-ai/co/main/install.sh | sh
    PlatformPackage
    MacOS (x86)co_macos_x86_64.tar.gz
    Linux (x86)co_linux_x86_64.tar.gz
    Linux (arm64)co_linux_arm64.tar.gz
    Linux (arm32)co_linux_arm32.tar.gz
  2. Move the binary into your $PATH (if you'd like to).

  3. Authenticate.

co: auth login --email=EMAIL
  1. Happy hacking!