cohere
terminal chat interface for Cohere AI models
TLDR
Start interactive chat session
SYNOPSIS
cohere
DESCRIPTION
cohere is a command-line interface for chatting with Cohere's AI models directly from the terminal. It provides an interactive chat experience with multi-turn conversation support, maintaining context across exchanges.
The CLI supports Cohere's Command models including Command R+ and Command A (their most performant model with 111B parameters and 256K context length). Users can switch models mid-conversation using the :m command with aliases like r+, a, or full model names.
Key features include web search integration via the Cohere connector, returning results with proper citations. File upload support allows analysis of PDF and TXT documents up to 20MB, with local preprocessing for PDFs using pdftotext.
CONFIGURATION
~/.config/cohere-cli/config.env
API key and CLI settings.~/.config/cohere-cli/chat-memory.json
Conversation history persistence.
INTERACTIVE COMMANDS
:w query
Execute a single-turn web search with citations.:u file
Upload PDF or TXT files for analysis (max 20MB).:m model
Switch between AI models. Aliases: r+ (Command R+), a (Command A).:i
Display current model information.:h
Show all available commands.:c
Clear terminal without losing conversation history.:d
Toggle debug mode to view API requests and responses.:q
Exit the application.
CAVEATS
Requires curl, jq, and gum to be installed. PDF processing requires pdftotext from the poppler-utils package. Needs a valid Cohere API key configured during first run. The CLI is a community-built tool, not officially maintained by Cohere.
HISTORY
The cohere-cli tool was created as a community project to provide terminal access to Cohere's AI models. Cohere, founded in 2019 by former Google researchers, specializes in enterprise AI and natural language processing. Their Command model series has evolved from Command R and R+ to Command A, released in March 2025 with enhanced reasoning capabilities.
