Loading...
Loading...
Create a minimal working Vast.ai example. Use when starting a new Vast.ai integration, testing your setup, or learning basic Vast.ai API patterns. Trigger with phrases like "vastai hello world", "vastai example", "vastai quick start", "simple vastai code".
npx skill4agent add jeremylongshore/claude-code-plugins-plus-skills vastai-hello-worldvastai-install-authimport { Vast.aiClient } from '@vastai/sdk';
const client = new Vast.aiClient({
apiKey: process.env.VASTAI_API_KEY,
});async function main() {
// Your first API call here
}
main().catch(console.error);Success! Your Vast.ai connection is working.| Error | Cause | Solution |
|---|---|---|
| Import Error | SDK not installed | Verify with |
| Auth Error | Invalid credentials | Check environment variable is set |
| Timeout | Network issues | Increase timeout or check connectivity |
| Rate Limit | Too many requests | Wait and retry with exponential backoff |
import { Vast.aiClient } from '@vastai/sdk';
const client = new Vast.aiClient({
apiKey: process.env.VASTAI_API_KEY,
});
async function main() {
// Your first API call here
}
main().catch(console.error);from vastai import Vast.aiClient
client = Vast.aiClient()
# Your first API call herevastai-local-dev-loop