# Add to your Claude Code skills
git clone https://github.com/vast-ai/vast-clivast-cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by vast-ai. Vast.ai python and cli api client. It has 233 GitHub stars.
vast-cli's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/vast-ai/vast-cli" and add it to your Claude Code skills directory (see the Installation section above).
vast-cli is primarily written in Python. It is open-source under vast-ai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh vast-cli against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Provides both the CLI and SDK for managing Vast.ai GPU cloud resources, plus a serverless client for endpoint inference.
Linux, macOS, or WSL — install the CLI with no Python required:
curl -fsSL https://vast.ai/install.sh | bash
Update anytime with vastai update.
Windows, or using the Python SDK — install from PyPI instead:
pip install vastai
Get your API key from https://cloud.vast.ai/manage-keys/
Set your API key:
vastai set api-key YOUR_API_KEY
vastai search offers --limit 3
You should see a short list of available GPU offers.
The vastai command provides full access to the Vast.ai platform from your terminal:
vastai search offers 'gpu_name=RTX_4090 num_gpus>=4'
vastai create instance 12345 --image pytorch/pytorch --disk 32 --ssh --direct
vastai show instances
vastai stop instance 12345
vastai destroy instance 12345
Run vastai --help for a full list of commands. You can also use --help on any subcommand:
vastai search offers --help
vastai create instance --help
from vastai import VastAI
vast = VastAI() # uses VAST_API_KEY env var, or pass api_key="..."
vast.search_offers(query='gpu_name=RTX_4090 num_gpus>=4')
vast.show_instances()
vast.start_instance(id=12345)
vast.stop_instance(id=12345)
Use help(vast.search_offers) to view documentation for any method.
from vastai import Serverless
serverless = Serverless() # or, Serverless("YOUR_API_KEY")
endpoint = await serverless.get_endpoint("my-endpoint")
request_body = {
"model": "Qwen/Qwen3-8B",
"prompt" : "Who are you?",
"max_tokens" : 100,
"temperature" : 0.7
}
response = await serverless.request("/v1/completions", request_body)
text = response["response"]["choices"][0]["text"]
print(text)
Find more examples in the examples/ directory.
Vast.ai has a skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, etc.):
npx skills add vast-ai/vast-cli
This installs the Vast.ai skill so your agent can search offers, create instances, and manage GPU workflows directly. See CLI SKILL.md or SDK SKILL.md for the full reference.
This repository is open source. If you find a bug, please open an issue. PRs are welcome.