Back to Eliza

Cohere Plugin

packages/docs/plugin-registry/llm/cohere.md

2.0.11.9 KB
Original Source
<Warning> This plugin is not yet available in the Eliza plugin registry. To use Cohere models today, configure them through the [OpenRouter plugin](/plugin-registry/llm/openrouter) using the appropriate model ID. </Warning>

The Cohere plugin connects Eliza agents to Cohere's language models, providing access to the Command family of models optimized for enterprise use cases including retrieval-augmented generation and tool use.

On-demand plugin. This plugin is resolved from the remote elizaOS plugin registry and auto-installs when its API key is detected. It is not included in Eliza's bundled plugins.json index.

Package: @elizaos/plugin-cohere

Installation

bash
eliza plugins install @elizaos/plugin-cohere

Auto-Enable

The plugin auto-enables when COHERE_API_KEY is present:

bash
export COHERE_API_KEY=your-cohere-api-key

Configuration

Environment VariableRequiredDescription
COHERE_API_KEYYesCohere API key from cohere.com

eliza.json Example

json
{
  "auth": {
    "profiles": {
      "default": {
        "provider": "cohere",
        "model": "command-r-plus"
      }
    }
  }
}

Supported Models

ModelContextBest For
command-r-plus128kComplex reasoning, multi-step tasks
command-r128kBalanced performance and cost
command-light4kFast, lightweight tasks
command4kGeneral-purpose

Features

  • Streaming responses
  • Tool use / function calling
  • Retrieval-augmented generation (RAG) with grounded answers
  • Embeddings for semantic search
  • Reranking for search result optimization
  • Multilingual support (100+ languages)
  • Structured JSON output