vastai-multi-env-setup

Featured

Configure Vast.ai GPU cloud across dev, staging, and production environments. Use when isolating GPU pools per team, managing API key separation by env, or implementing spending controls per deployment tier. Trigger with phrases like "vastai environments", "vastai staging", "vastai dev prod", "vastai multi-env".

AI & Automation 2,944 stars 440 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

# Vast.ai Multi-Environment Setup ## Overview Configure separate Vast.ai environments for development, staging, and production by using different API keys, GPU profiles, and spending limits. Vast.ai does not have built-in environment isolation, so you implement it through configuration. ## Prerequisites - Vast.ai accounts or API keys per environment - Secrets manager for key storage - Understanding of GPU profile requirements per tier ## Instructions ### Step 1: Environment Configuration ```python # config.py — environment-specific Vast.ai settings import os from dataclasses import dataclass @dataclass class VastEnvConfig: name: str api_key: str max_dph: float # Maximum $/hr per instance max_instances: int # Concurrent instance limit max_daily_spend: float # Daily budget cap gpu_whitelist: list # Allowed GPU types reliability_min: float # Minimum reliability score auto_destroy_hours: int # Auto-destroy timeout ENVIRONMENTS = { "development": VastEnvConfig( name="development", api_key=os.environ.get("VASTAI_DEV_KEY", ""), max_dph=0.25, max_instances=2, max_daily_spend=5.00, gpu_whitelist=["RTX_3090", "RTX_4090"], reliability_min=0.90, auto_destroy_hours=2, ), "staging": VastEnvConfig( name="staging", api_key=os.environ.get("VASTAI_STAGING_KEY", ""), max_dph=2.00, max_instances=4, max_daily_spend=50....

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category