Connect Claude Code to Vast Ai
Set up in minutes
Choose where it runs
On your computer through your own Claude Code, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Vast Ai
A preset of real Vast Ai operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Vast Ai
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your Claude Code first calls in. Claude Code connects when a session starts — run claude, or restart a running one.
Run this in your terminal
<your-link> is your personal server URL — setup mints it for you.
Tools Claude Code gets
Vast Ai
22 toolsRead the authenticated account's profile and balance.
Read one page of your instances; pass data.next_token as after_token.
Read one instance by contract ID.
Accept an offer and create a paid instance.
Start, stop or relabel an instance; state changes are asynchronous.
Destroy an instance and its local data permanently.
Request an instance reboot.
Request recycling of an instance container.
Change an interruptible instance's hourly bid price.
Request a log download URL without downloading the external file.
Search a bounded set of GPU offers with documented comparison filters.
List your rented persistent volumes.
Search one bounded set of volume offers.
Rent a paid persistent volume from a volume offer.
Delete a rented volume and its stored data.
Read one page of billing transactions within a date range.
Read one page of per-contract charges within a date range.
List the public SSH keys belonging to your account.
Add an account SSH key; Vast.ai also adds it to current instances.
Delete a public SSH key from your account.
Attach a public SSH key to one instance.
Detach a public SSH key from one instance by key ID.
About Claude Code
Frequently asked questions
More ways to connect
More tools for Claude Code
Use Vast Ai with other agents
Open your Claude Code agent in one click.
NoClick runs Claude Code for you with Vast Ai wired in as tools. Connect your account and run.