For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DASHBOARDPLAYGROUNDDOCSCOMMUNITYLOG IN
Guides and conceptsAPI ReferenceRelease NotesLLMUCookbooks
Guides and conceptsAPI ReferenceRelease NotesLLMUCookbooks
  • Get Started
    • Introduction
    • Installation
    • Creating a client
    • Playground
    • FAQs
  • Models
    • An Overview of Cohere's Models
    • Aya
    • Embed
    • Rerank
  • Text Generation
    • Introduction to Text Generation at Cohere
    • Using the Chat API
    • Reasoning
    • Image Inputs
    • Streaming Responses
    • Predictable Outputs
    • Advanced Generation Parameters
    • Tool Use
    • Tokens and Tokenizers
    • Summarizing Text
    • Safety Modes
  • Embeddings (Vectors, Search, Retrieval)
    • Introduction to Embeddings at Cohere
    • Semantic Search with Embeddings
    • Multimodal Embeddings
    • Batch Embedding Jobs
  • Going to Production
    • API Keys and Rate Limits
    • Going Live
    • Deprecations
    • How Does Cohere's Pricing Work?
  • Integrations
    • Integrating Embedding Models with Other Tools
    • Cohere and LangChain
      • Chat on LangChain
      • Embed on LangChain
      • Rerank on LangChain
      • Tools on LangChain
    • LlamaIndex and Cohere
  • Deployment Options
    • Overview
    • SDK Compatibility
  • Tutorials
    • Cookbooks
    • LLM University
    • Build Things with Cohere!
    • Agentic RAG
    • Cohere on Azure
  • Responsible Use
    • Security
    • Usage Policy
    • Command A Technical Report
    • Command R and Command R+ Model Card
  • Cohere Labs
    • Cohere Labs Acceptable Use Policy
  • More Resources
    • Cohere Toolkit
    • Datasets
    • Improve Cohere Docs
LogoLogodocs
DASHBOARDPLAYGROUNDDOCSCOMMUNITYLOG IN
On this page
  • Supported Models
  • Not Yet Supported
  • Prerequisite
  • Integrating LangChain with Cohere Models
Integrations

Cohere and LangChain (Integration Guide)

Was this page helpful?
Edit this page
Previous

Cohere Chat on LangChain (Integration Guide)

Next
Built with

Cohere has support for LangChain, a framework which enables you to quickly create LLM powered applications. This guide outlines how to use features from supported Cohere models with LangChain.

Supported Models

The LangChain-Cohere integration currently supports:

  • Command (e.g., command-r-08-2024)
  • Embed (e.g., embed-english-v3.0, embed-multilingual-v3.0)
  • Rerank (e.g., rerank-english-v3.0, rerank-multilingual-v3.0)

Not Yet Supported

Newer models like Command A+ (command-a-plus-05-2026), Command A Reasoning (command-a-reasoning-08-2025), and Command A Vision (command-a-vision-07-2025) are not supported in LangChain.

Prerequisite

To use LangChain and Cohere you will need:

  • LangChain package. To install it, run pip install langchain.

  • LangChain Package. To install it, run:

    • pip install langchain
    • pip install langchain-cohere (to use the Cohere integrations in LangChain)
    • Optional: pip install langchain-community (to access third-party integrations such as web search APIs)
  • Cohere’s SDK. To install it, run pip install cohere. If you run into any issues or want more details on Cohere’s SDK, see this wiki.

  • A Cohere API Key. For more details on pricing see this page. When you create an account with Cohere, we automatically create a trial API key for you. This key will be available on the dashboard where you can copy it, and it’s in the dashboard section called “API Keys” as well.

Integrating LangChain with Cohere Models

The following guides contain technical details on the many ways in which Cohere and LangChain can be used in tandem:

  • Chat on LangChain
  • Embed on LangChain
  • Rerank on LangChain
  • Tools on LangChain