/cohere-pack:cohere-install-authfrom cohere-pack
Installs the Cohere SDK (v2) and configures API key authentication for Node.js/TypeScript and Python projects. Covers trial and production keys, environment setup, and connection verification.
Ships in cohere-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up the Cohere SDK (v2) and configure authentication for Chat, Embed, Rerank, and Classify endpoints.
# Node.js / TypeScript
npm install cohere-ai
# Python
pip install cohere
# Set environment variable
export CO_API_KEY="your-api-key-here"
# Or create .env file (add .env to .gitignore!)
echo 'CO_API_KEY=your-api-key-here' >> .env
Key types:
import { CohereClientV2 } from 'cohere-ai';
const cohere = new CohereClientV2({
token: process.env.CO_API_KEY,
});
async function verify() {
const response = await cohere.chat({
model: 'command-a-03-2025',
messages: [
{ role: 'user', content: 'Say "connection verified" and nothing else.' },
],
});
console.log('Status:', response.message?.content?.[0]?.text);
}
verify().catch(console.error);
import cohere
import os
co = cohere.ClientV2(api_key=os.environ.get("CO_API_KEY"))
response = co.chat(
model="command-a-03-2025",
messages=[
{"role": "user", "content": "Say 'connection verified' and nothing else."}
],
)
print("Status:", response.message.content[0].text)
| Model | ID | Context | Best For |
|---|---|---|---|
| Command A | command-a-03-2025 | 256K | Latest, most capable |
| Command R+ | command-r-plus-08-2024 | 128K | Complex RAG, agents |
| Command R | command-r-08-2024 | 128K | RAG, cost-effective |
| Command R7B | command-r7b-12-2024 | 128K | Fast, lightweight |
| Embed English v4 | embed-v4.0 | 128K | Embeddings (EN) |
| Embed Multilingual v3 | embed-multilingual-v3.0 | 512 | Embeddings (100+ langs) |
| Rerank v3.5 | rerank-v3.5 | 4K | Search reranking |
cohere-ai (TS) or cohere (Python) packageCO_API_KEY configured| Error | Cause | Solution |
|---|---|---|
CohereApiError: invalid api token | Wrong or expired key | Regenerate at dashboard.cohere.com |
CohereConnectionError | Network blocked | Ensure HTTPS to api.cohere.com allowed |
429 Too Many Requests | Trial rate limit hit | Wait 60s or upgrade to production key |
MODULE_NOT_FOUND cohere-ai | Package not installed | Run npm install cohere-ai |
The SDK reads CO_API_KEY automatically if set. You can skip the token param:
// Auto-reads CO_API_KEY from environment
const cohere = new CohereClientV2();
After successful auth, proceed to cohere-hello-world for your first real API call.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flight505/skill-forge --plugin cohere-pack24 skills in this plugin
/cohere-ci-integrationConfigure CI/CD for Cohere integrations with GitHub Actions and automated testing.
Use when setting up automated testing for Chat/Embed/Rerank,
configuring CI pipelines, or testing Cohere-powered applications.
Trigger with phrases like "cohere CI", "cohere GitHub Actions",
"cohere automated tests", "CI cohere", "cohere pipeline".
/cohere-common-errorsDiagnose and fix Cohere API v2 errors and exceptions.
Use when encountering Cohere errors, debugging failed requests,
or troubleshooting CohereError, CohereTimeoutError, rate limits.
Trigger with phrases like "cohere error", "fix cohere",
"cohere not working", "debug cohere", "cohere 429", "cohere 400".
/cohere-Other plugins' skills for the same job