cohere-multi-env-setup

Featured

Configure Cohere across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment API keys, model selection, and rate limit strategies. Trigger with phrases like "cohere environments", "cohere staging", "cohere dev prod", "cohere environment setup", "cohere config by env".

AI & Automation 2,926 stars 433 forks Updated yesterday 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 Multi-Environment Setup ## Overview Configure Cohere API v2 across dev/staging/prod with environment-specific API keys, model selection, and budget controls. ## Prerequisites - Separate Cohere API keys per environment (trial for dev, production for staging/prod) - Secret management solution (Vault, AWS Secrets Manager, GCP Secret Manager) - Environment detection in application ## Environment Strategy | Environment | API Key Type | Model | maxTokens | Caching | |-------------|-------------|-------|-----------|---------| | Development | Trial (free) | `command-r7b-12-2024` | 200 | Disabled | | Staging | Production | `command-r-08-2024` | 1000 | Enabled | | Production | Production | `command-a-03-2025` | 4096 | Enabled | ## Instructions ### Step 1: Configuration Structure ```typescript // src/config/cohere.ts type Environment = 'development' | 'staging' | 'production'; interface CohereEnvConfig { chatModel: string; embedModel: string; rerankModel: string; maxTokens: number; cacheEnabled: boolean; cacheTtlMs: number; retries: number; timeoutSeconds: number; } const configs: Record<Environment, CohereEnvConfig> = { development: { chatModel: 'command-r7b-12-2024', // Fastest, cheapest embedModel: 'embed-v4.0', rerankModel: 'rerank-v3.5', maxTokens: 200, // Limit for dev cacheEnabled: false, // See real responses cacheTtlMs: 0, retries: 1, // Fail fas...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category