vastai-security-basics

Solid

Apply Vast.ai security best practices for API keys and instance access. Use when securing API keys, hardening SSH access to GPU instances, or auditing Vast.ai security configuration. Trigger with phrases like "vastai security", "vastai secrets", "secure vastai", "vastai API key security", "vastai ssh security".

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

# Vast.ai Security Basics ## Overview Security best practices for Vast.ai API keys, SSH access to GPU instances, data protection on rented hardware, and credential management. Vast.ai instances run as root on shared hardware, requiring careful attention to data lifecycle. ## Prerequisites - Vast.ai account with API key - Understanding of SSH key management - Secrets manager available (optional but recommended) ## Instructions ### Step 1: API Key Management ```bash # Never commit API keys to git echo '.vast_api_key' >> .gitignore echo '.env' >> .gitignore # Use environment variables, not files in repos export VASTAI_API_KEY="$(vault kv get -field=api_key secret/vastai)" # Rotate keys periodically at cloud.vast.ai > Account > API Keys ``` ```python # Fail fast on missing credentials import os def get_api_key(): key = os.environ.get("VASTAI_API_KEY") if not key: key_file = os.path.expanduser("~/.vast_api_key") if os.path.exists(key_file): key = open(key_file).read().strip() if not key: raise ValueError("VASTAI_API_KEY not set and ~/.vast_api_key not found") return key ``` ### Step 2: SSH Key Security ```bash # Generate a dedicated key pair for Vast.ai instances ssh-keygen -t ed25519 -f ~/.ssh/vastai_key -C "vastai-instances" -N "" # Upload public key at cloud.vast.ai > Account > SSH Keys # Use the dedicated key for connections ssh -i ~/.ssh/vastai_key -p PORT root@HOST ``` ### Step 3: Data Protection on Shared Har...

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 Solid

vastai-data-handling

Manage training data and model artifacts securely on Vast.ai GPU instances. Use when transferring data to instances, managing checkpoints, or implementing secure data lifecycle on rented hardware. Trigger with phrases like "vastai data", "vastai upload data", "vastai checkpoints", "vastai data security", "vastai artifacts".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-install-auth

Install and configure Vast.ai CLI and REST API authentication. Use when setting up a new Vast.ai integration, configuring API keys, or initializing Vast.ai GPU cloud access in your project. Trigger with phrases like "install vastai", "setup vastai", "vastai auth", "configure vastai API key", "vastai gpu setup".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai

Vast.ai CLI to manage GPU instances, volumes, serverless endpoints, and billing.

194 Updated yesterday
vast-ai
AI & Automation Solid

vastai-prod-checklist

Execute Vast.ai production deployment checklist for GPU workloads. Use when deploying training pipelines to production, preparing for large-scale GPU jobs, or auditing production readiness. Trigger with phrases like "vastai production", "deploy vastai", "vastai go-live", "vastai launch checklist".

2,266 Updated today
jeremylongshore
AI & Automation Solid

vastai-enterprise-rbac

Implement team access control and spending governance for Vast.ai GPU cloud. Use when managing multi-team GPU access, implementing spending controls, or setting up API key separation for different teams. Trigger with phrases like "vastai team access", "vastai RBAC", "vastai enterprise", "vastai spending controls", "vastai permissions".

2,266 Updated today
jeremylongshore