VA

vastai-multi-env-setup

Implements environment isolation and resource management for Vast.ai deployments across multiple tiers.

Install

mkdir -p .claude/skills/vastai-multi-env-setup && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9127" && unzip -o skill.zip -d .claude/skills/vastai-multi-env-setup && rm skill.zip

Installs to .claude/skills/vastai-multi-env-setup

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Configure Vast.ai GPU cloud across dev, staging, and production environments.
77 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Configure environment-specific API keys and spending limits
  • →Enforce GPU whitelists per deployment tier
  • →Implement auto-destroy timeouts for budget control
  • →Tag Docker images based on environment
  • →Manage concurrent instance limits

How it works

It uses a configuration-based approach to isolate environments by mapping specific API keys and constraints to development, staging, and production tiers. It wraps the Vast.ai client to enforce these constraints programmatically.

Inputs & outputs

You give it
Environment configuration parameters
You get back
Environment-aware client and deployment settings

When to use vastai-multi-env-setup

  • →Isolating GPU pools per team
  • →Managing API keys per environment
  • →Implementing budget controls for GPU usage

About this skill

Vast.ai Environment Isolation

Overview

Vast.ai does not turn naming conventions into isolation automatically. Build the boundary from team/account context, scoped keys, immutable template hashes, labels, data prefixes, budgets, and promotion evidence.

Prerequisites

  • Environment owners, sensitivity, workloads, regions, budgets, and approved accounts or teams
  • Separate keys, SSH identities, storage prefixes, templates, registries, and alert routes
  • Promotion, break-glass, rollback, and access-review procedures

Instructions

Step 1: Define environment identity

Assign each environment an explicit team/account context, key IDs, labels, data prefix, budget, and owner. Reject implicit current context.

Step 2: Separate credentials

Create environment-specific scoped keys and dedicated SSH access. Production credentials must never be available to development jobs or forked CI.

Step 3: Version templates and images

Use immutable image digests and template hashes. Promote the same bytes by recorded identity rather than rebuilding for each environment.

Step 4: Constrain data and resources

Use distinct checkpoint/storage prefixes, resource labels, Serverless IDs, and notifications. Validate that a dev key cannot read or mutate production.

Step 5: Promote through evidence

Require dev tests, staging canary, recovery, cost, and security receipts before a production role references the candidate identity.

Step 6: Audit drift

Regularly compare members, roles, keys, templates, active resources, labels, budgets, and stale environment variables across contexts.

Authentication

Environment isolation depends on distinct scoped credentials and explicit team/account context. Never infer environment only from a filename, branch, or mutable image tag.

Tool Discipline

Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.

Output

  • Environment authority and resource map
  • Cross-environment positive/negative access tests
  • Promotion, drift, exception, and rollback receipt

Return environment contexts, role/key IDs, immutable release identity, data prefixes, access tests, budget owners, and promotion state.

Examples

Staging and production use different team contexts and keys but promote the identical template hash; a staging key's attempted production instance read is retained as an expected denial.

Error Handling

FailureResponse
Current context is unknownStop before search or mutation and resolve the account/team explicitly.
One key spans unrelated environmentsReplace it with scoped environment-specific identities.
Promotion rebuilds mutable bytesReject the release and promote an immutable digest/hash.
Cross-environment denial failsContain access, review audit logs, and repair roles before proceeding.

Resources

When not to use it

  • →Managing complex multi-tenant infrastructure with shared resources
  • →Handling highly sensitive production secrets without an external vault

Prerequisites

Vast.ai accounts or API keys per environmentSecrets manager for key storage

Limitations

  • →Vast.ai does not have built-in environment isolation
  • →Requires external secrets management for API keys

How it compares

It implements logical environment isolation through code and configuration, whereas Vast.ai lacks native multi-environment management features.

Compared to similar skills

vastai-multi-env-setup side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vastai-multi-env-setup (this skill)02moReviewIntermediate
unity-editor-toolkit108moReviewAdvanced
workflow43moReviewIntermediate
setup-build-tools28moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore →

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

unity-editor-toolkit

Dev-GOM

Automate and control Unity Editor with 500+ commands, real-time WebSocket communication, and SQLite integration for efficient game development.

10126

workflow

vercel

Creates durable, resumable workflows using Vercel's Workflow DevKit. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow devkit", or step-based orchestration.

431

setup-build-tools

aaddrick

Install build and extraction tools needed for building Claude Desktop Debian packages

212

macos-spm-app-packaging

Dimillian

Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode.

17

railway-templates

davila7

Search and deploy services from Railway's template marketplace. Use when user wants to add a service from a template, find templates for a specific use case, or deploy tools like Ghost, Strapi, n8n, Minio, Uptime Kuma, etc. For databases (Postgres, Redis, MySQL, MongoDB), prefer the railway-database skill.

15

pinme

glitternetwork

This skill should be used when the user asks to "deploy", "upload", "publish", or "pin" any files, folders, frontend projects, or static websites to IPFS. Also activates when user mentions "pinme", "IPFS", or wants to share files via decentralized storage.

14

Search skills

Search the agent skills registry