cohere-deploy-integration

Featured

Deploy Cohere-powered applications to Vercel, Fly.io, and Cloud Run. Use when deploying Cohere API v2 apps to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy cohere", "cohere Vercel", "cohere production deploy", "cohere Cloud Run", "cohere Fly.io".

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 Deploy Integration ## Overview Deploy Cohere API v2 applications to Vercel, Fly.io, and Google Cloud Run with proper secrets management and health checks. ## Prerequisites - Cohere production API key (not trial) - Platform CLI installed (`vercel`, `fly`, or `gcloud`) - Application tested locally with real API calls ## Instructions ### Vercel Deployment ```bash # Add Cohere API key as Vercel environment variable vercel env add CO_API_KEY production # Paste your production key when prompted # Deploy vercel --prod ``` **vercel.json:** ```json { "env": { "CO_API_KEY": "@co_api_key" }, "functions": { "api/**/*.ts": { "maxDuration": 30 } } } ``` **Vercel API Route (streaming chat):** ```typescript // api/chat/route.ts import { CohereClientV2 } from 'cohere-ai'; const cohere = new CohereClientV2(); export async function POST(req: Request) { const { message } = await req.json(); const stream = await cohere.chatStream({ model: 'command-a-03-2025', messages: [{ role: 'user', content: message }], }); const encoder = new TextEncoder(); const readable = new ReadableStream({ async start(controller) { for await (const event of stream) { if (event.type === 'content-delta') { const text = event.delta?.message?.content?.text ?? ''; controller.enqueue(encoder.encode(`data: ${JSON.stringify({ text })}\n\n`)); } } controller.enqueue(encoder.encode('data: [DONE]\n\n')); ...

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