agentskit.js
Providers

cohere

Cohere Command — enterprise-focused RAG-friendly models with citations.

import { cohere } from '@agentskit/adapters'

const adapter = cohere({
  apiKey: process.env.COHERE_API_KEY!,
  model: 'command-r-plus',
})

#Options

OptionTypeDefault
apiKeystringrequired
modelstringcommand-r-plus
baseUrlstringhttps://api.cohere.com/compatibility/v1
retryRetryOptionsinherited from @agentskit/adapters

#Capabilities

{ streaming: true, tools: true, usage: true } — surfaced via the OpenAI-compatibility endpoint, so the request shape (tools, stream: true, stream_options.include_usage) matches the OpenAI adapter.

#Model examples

command-r-plus · command-r · command.

#Env

VarPurpose
COHERE_API_KEYAPI key

#Notes

  • Native citations in responses when documents are passed — pairs with RAG.
  • Cohere also provides rerankers.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page