| name | deepgram-multi-env-setup |
| description | Configure Deepgram multi-environment setup for dev, staging, and production.
Use when setting up environment-specific configurations, managing multiple
Deepgram projects, or implementing environment isolation.
Trigger: "deepgram environments", "deepgram staging", "deepgram dev prod",
"multi-environment deepgram", "deepgram config management".
|
| allowed-tools | Read, Write, Edit, Bash(kubectl:*), Bash(curl:*) |
| version | 1.13.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","deepgram","environments","configuration"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Deepgram Multi-Environment Setup
Overview
Configure isolated Deepgram environments for development, staging, and production. Each environment uses a separate Deepgram project, scoped API keys, environment-specific model selection, and validated configuration. Includes typed config, client factory, Docker Compose profiles, and Kubernetes overlays.
Environment Strategy
| Setting | Development | Staging | Production |
|---|
| Model | base (fast, cheap) | nova-3 | nova-3 |
| Concurrency | 5 | 20 | 100 |
| Diarization | Off | On | On |
| PII Redaction | Off | On | On |
| Callback URL | localhost:3000 | staging.example.com | api.example.com |
| Key Rotation | Manual | Monthly | 90-day auto |
Instructions
Step 1: Typed Environment Configuration
interface DeepgramEnvConfig {
apiKey: string;
projectId: string;
model: 'base' | 'nova-2' | 'nova-3';
maxConcurrency: number;
features: {
diarize: boolean;
smart_format: boolean;
redact: string[] | false;
summarize: boolean;
};
callbackBaseUrl?: string;
timeout: number;
}
(): {
: <, > = {
: {
: process..!,
: process..!,
: ,
: ,
: {
: ,
: ,
: ,
: ,
},
: ,
: ,
},
: {
: process..!,
: process..!,
: ,
: ,
: {
: ,
: ,
: [, ],
: ,
},
: ,
: ,
},
: {
: process..!,
: process..!,
: ,
: ,
: {
: ,
: ,
: [, ],
: ,
},
: ,
: ,
},
};
config = configs[env];
(!config) ();
(!config.) ();
config;
}
env = process.. ?? ;
config = (env);