vastai-install-auth

Solid

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

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 Install & Auth ## Overview Set up the Vast.ai CLI and REST API access for renting GPU compute instances. Vast.ai is a marketplace where individual hosts and data centers list GPU machines at prices significantly below hyperscaler providers. ## Prerequisites - Python 3.8+ - Vast.ai account at https://cloud.vast.ai - Credit card or credits loaded for GPU rental ## Instructions ### Step 1: Install the CLI ```bash set -euo pipefail pip install vastai vastai --version ``` ### Step 2: Get Your API Key 1. Log in at https://cloud.vast.ai 2. Navigate to **Account** > **API Keys** (or visit https://cloud.vast.ai/cli/) 3. Copy your API key (a long hexadecimal string) ### Step 3: Configure Authentication ```bash # Save API key to ~/.vast_api_key vastai set api-key YOUR_API_KEY_HERE # Verify authentication vastai show user ``` For programmatic use, set the environment variable: ```bash export VASTAI_API_KEY="your-api-key-here" echo 'VASTAI_API_KEY=your-api-key' >> .env ``` ### Step 4: Verify with REST API ```bash # Direct REST API call — base URL is cloud.vast.ai/api/v0 curl -s -H "Authorization: Bearer $VASTAI_API_KEY" \ "https://cloud.vast.ai/api/v0/users/current" | jq '{id, username, balance}' ``` ### Step 5: Python Client Setup ```python # vastai_client.py import os import requests from typing import Optional, Dict, Any, List class VastClient: BASE_URL = "https://cloud.vast.ai/api/v0" def __init__(self, api_key: Optional[str] = None): self.api_k...

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