anth-multi-env-setup

Featured

Configure Claude API across dev, staging, and production environments with isolated keys, model routing, and spend controls per environment. Trigger with phrases like "anthropic environments", "claude multi-env", "anthropic staging setup", "claude dev vs prod config".

AI & Automation 2,266 stars 315 forks Updated today 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

# Anthropic Multi-Environment Setup ## Overview Configure isolated Claude API environments with per-env API keys, model selection, and spend controls using Anthropic Workspaces. ## Environment Configuration ```python # config.py import os from dataclasses import dataclass @dataclass class ClaudeConfig: api_key: str model: str max_tokens: int max_retries: int timeout: float monthly_budget_usd: float CONFIGS = { "development": ClaudeConfig( api_key=os.environ["ANTHROPIC_API_KEY_DEV"], model="claude-haiku-4-20250514", # Cheap for dev max_tokens=256, max_retries=1, timeout=15.0, monthly_budget_usd=10.0, ), "staging": ClaudeConfig( api_key=os.environ["ANTHROPIC_API_KEY_STAGING"], model="claude-sonnet-4-20250514", max_tokens=1024, max_retries=2, timeout=30.0, monthly_budget_usd=50.0, ), "production": ClaudeConfig( api_key=os.environ["ANTHROPIC_API_KEY_PROD"], model="claude-sonnet-4-20250514", max_tokens=4096, max_retries=5, timeout=120.0, monthly_budget_usd=5000.0, ), } def get_config() -> ClaudeConfig: env = os.getenv("APP_ENV", "development") return CONFIGS[env] ``` ## Anthropic Workspaces (Key Isolation) Create separate Workspaces in [console.anthropic.com](https://console.anthropic.com/settings/workspaces): | Workspace | Purpose | Rate Limit Tier | |-----------|----...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

clade-multi-env-setup

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clade-enterprise-rbac

Manage Anthropic workspaces, API keys, team access, and spending limits Use when working with enterprise-rbac patterns. for enterprise Claude deployments. Trigger with "anthropic workspace", "anthropic team management", "claude enterprise", "anthropic api key management".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-multi-env-setup

Configure Apollo.io multi-environment setup. Use when setting up development, staging, and production environments, or managing multiple Apollo configurations. Trigger with phrases like "apollo environments", "apollo staging", "apollo dev prod", "apollo multi-tenant", "apollo env config".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-local-dev-loop

Configure a local development workflow for Anthropic Claude API projects. Use when setting up dev environment, configuring hot reload, or establishing a fast iteration cycle with the Messages API. Trigger with phrases like "anthropic local dev", "claude dev setup", "anthropic development workflow", "test claude locally".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-security-basics

Apply Anthropic Claude API security best practices for key management, input validation, and prompt injection defense. Use when securing API keys, validating user inputs before sending to Claude, or implementing content safety guardrails. Trigger with phrases like "anthropic security", "claude api key security", "secure anthropic", "prompt injection defense".

2,266 Updated today
jeremylongshore