Skip to main content

Cohere Provider

Use Cohere’s Command models and embeddings.

Environment Variables

export COHERE_API_KEY=...

Supported Modalities

ModalitySupported
Text/Chat
Embeddings
Tools

Quick Start

1

Simple Usage

import { Agent } from 'praisonai';

const agent = new Agent({
  name: 'CohereAgent',
  instructions: 'You are a helpful assistant.',
  llm: 'cohere/command-r-plus'
});

const response = await agent.chat('Hello!');
2

With Configuration

Adjust provider credentials and model settings for production — see the sections above.

Cohere CLI Usage

Cohere CLI Usage