| name | clade-deploy-integration |
| description | Deploy Claude-powered applications to Vercel, Fly.io, and Cloud Run
Use when working with deploy-integration patterns.
with proper secrets management and streaming support.
Trigger with "deploy anthropic", "claude production deploy",
"anthropic vercel", "deploy claude app".
|
| allowed-tools | Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*) |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","anthropic","claude","deploy","production"] |
| compatibility | Designed for Claude Code |
Deploy Anthropic Integration
Overview
Claude integrations are stateless API wrappers — a serverless function receives a user request, streams from the Messages API, and returns the response. No database, no connection pool, no persistent state.
Vercel Edge Function (Recommended)
import Anthropic from '@claude-ai/sdk';
export const runtime = 'edge';
export async function POST(req: Request) {
const client = new Anthropic();
const { messages, system } = await req.json();
const stream = await client.messages.create({
model: 'claude-sonnet-4-20250514',
max_tokens: 4096,
system: system || 'You are a helpful assistant.',
messages,
stream: true,
});
const encoder = new TextEncoder();
const readable = new ReadableStream({
async start(controller) {
for await ( event stream) {
(event. === && event.. === ) {
controller.(encoder.());
}
}
controller.(encoder.());
controller.();
},
});
(readable, {
: {
: ,
: ,
},
});
}