cohere-install-auth

Featured

Install and configure Cohere SDK authentication with API v2. Use when setting up a new Cohere integration, configuring API keys, or initializing the CohereClientV2 in your project. Trigger with phrases like "install cohere", "setup cohere", "cohere auth", "configure cohere API key".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cohere Install & Auth ## Overview Set up the Cohere SDK (v2) and configure authentication for Chat, Embed, Rerank, and Classify endpoints. ## Prerequisites - Node.js 18+ or Python 3.10+ - Package manager (npm, pnpm, or pip) - Cohere account at [dashboard.cohere.com](https://dashboard.cohere.com) - API key from Cohere dashboard (trial keys are free, production keys require billing) ## Instructions ### Step 1: Install SDK ```bash # Node.js / TypeScript npm install cohere-ai # Python pip install cohere ``` ### Step 2: Configure API Key ```bash # 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:** - **Trial key** — free, rate-limited (5-20 calls/min per endpoint, 1000/month others) - **Production key** — metered billing, 1000 calls/min all endpoints, unlimited monthly ### Step 3: Verify Connection (TypeScript) ```typescript 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); ``` ### Step 4: Verify Connection (Python) ```python import cohere import os co = cohere.ClientV2(api_key=...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

cohere-ci-integration

Configure 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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-common-errors

Diagnose 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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-security-basics

Apply Cohere security best practices for API key management and access control. Use when securing API keys, implementing key rotation, or auditing Cohere security configuration. Trigger with phrases like "cohere security", "cohere secrets", "secure cohere", "cohere API key security", "cohere key rotation".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-sdk-patterns

Apply production-ready Cohere SDK patterns for TypeScript and Python. Use when implementing Cohere integrations, refactoring SDK usage, or establishing team coding standards for Cohere API v2. Trigger with phrases like "cohere SDK patterns", "cohere best practices", "cohere code patterns", "idiomatic cohere", "cohere wrapper".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-hello-world

Create a minimal working Cohere example with Chat, Embed, and Rerank. Use when starting a new Cohere integration, testing your setup, or learning basic Cohere API v2 patterns. Trigger with phrases like "cohere hello world", "cohere example", "cohere quick start", "simple cohere code".

2,266 Updated today
jeremylongshore