| name | clade-multi-env-setup |
| description | Configure Claude across dev, staging, and production with different
Use when working with multi-env-setup patterns.
models, keys, and rate limits per environment.
Trigger with "anthropic environments", "claude staging",
"anthropic dev vs prod", "claude multi-environment".
|
| allowed-tools | Read, Write, Edit |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","anthropic","claude","environments","config"] |
| compatibility | Designed for Claude Code |
Anthropic Multi-Environment Setup
Overview
Use different API keys, models, and limits across dev/staging/prod.
Environment Configuration
interface AnthropicConfig {
apiKey: string;
model: string;
maxTokens: number;
maxRetries: number;
}
const configs: Record<string, AnthropicConfig> = {
development: {
apiKey: process.env.ANTHROPIC_API_KEY!,
model: 'claude-haiku-4-5-20251001',
maxTokens: 256,
maxRetries: 1,
},
staging: {
apiKey: process.env.ANTHROPIC_API_KEY!,
model: 'claude-sonnet-4-20250514',
maxTokens: 1024,
maxRetries: 2,
},
production: {
apiKey: process.env.ANTHROPIC_API_KEY!,
model: 'claude-sonnet-4-20250514',
maxTokens: 4096,
maxRetries: 3,
},
};
export const config = configs[process.. || ];