executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
vastai-install-authInstall and configure Vast.ai SDK/CLI authentication. Use when setting up a new Vast.ai integration, configuring API keys, or initializing Vast.ai in your project. Trigger with phrases like "install vastai", "setup vastai", "vastai auth", "configure vastai API key".
Independent GitHub snapshot · Automated classification · Original documentation governs
Set up Vast.ai SDK/CLI and configure authentication credentials.
# Node.js
npm install @vastai/sdk
# Python
pip install vastai
# Set environment variable
export VASTAI_API_KEY="your-api-key"
# Or create .env file
echo 'VASTAI_API_KEY=your-api-key' >> .env
// Test connection code here
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in Vast.ai dashboard |
| Rate Limited | Exceeded quota | Check quota at https://docs.vastai.com |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { Vast.aiClient } from '@vastai/sdk';
const client = new Vast.aiClient({
apiKey: process.env.VASTAI_API_KEY,
});
from vastai import Vast.aiClient
client = Vast.aiClient(
api_key=os.environ.get('VASTAI_API_KEY')
)
After successful auth, proceed to vastai-hello-world for your first API call.