| name | cohere-deploy-integration |
| description | 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".
|
| allowed-tools | Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","ai","nlp","cohere"] |
| compatibility | Designed for Claude Code |
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
vercel env add CO_API_KEY production
vercel --prod
vercel.json:
{
"env": {
"CO_API_KEY": "@co_api_key"
},
"functions": {
"api/**/*.ts": {
"maxDuration": 30
}
}
}
Vercel API Route (streaming chat):
import { CohereClientV2 } from 'cohere-ai';
const cohere = new CohereClientV2();
export async function POST(: ) {
{ message } = req.();
stream = cohere.({
: ,
: [{ : , : message }],
});
encoder = ();
readable = ({
() {
( event stream) {
(event. === ) {
text = event.?.?.?. ?? ;
controller.(encoder.());
}
}
controller.(encoder.());
controller.();
},
});
(readable, {
: { : , : },
});
}