Use Vast with AI agents
Let Claude Code and other AI tools draft your giveaways with an API key.
An API key lets an AI agent, like Claude Code, draft and manage your giveaways for you. It's on every plan. On the free plan, confirm your email on the Developer tab first. Your agent then works within the free plan's limits, and each new giveaway takes its first 500 people.
Create a key
- Open Settings, then Developer, and choose to create a key.
- Pick what the key can do and when it expires.
- Copy the key. We only show it once.
Claude Code plugin (recommended)
claude plugin marketplace add https://vast.gg/plugins/claude/marketplace.json
claude plugin install agentic-giveaway@vastThe plugin adds Vast's MCP server and a skill that walks your agent through a giveaway from draft to launch. Then, in Claude Code, run /plugin configure agentic-giveaway@vast and paste your key when it asks. Claude Code keeps it in secure storage. For Cursor, Codex and other agents, add the skill with: npx skills add https://vast.gg. The skill teaches your agent the steps but doesn't connect to Vast by itself, so add the MCP server too.
Claude Code, without the plugin
claude mcp add --transport http vast https://general.vast.gg/mcp --header "Authorization: Bearer <your key>"Claude Code can also read the key from an environment variable called VAST_API_KEY. Add the server to a project .mcp.json:
.mcp.json
{
"mcpServers": {
"vast": {
"type": "http",
"url": "https://general.vast.gg/mcp",
"headers": { "Authorization": "Bearer ${VAST_API_KEY}" }
}
}
}Codex
codex mcp add vast --url https://general.vast.gg/mcp --bearer-token-env-var VAST_API_KEYCodex reads the key from VAST_API_KEY. Other MCP clients use the same address and Authorization header, each in its own config format.
Test your key
curl -H "Authorization: Bearer $VAST_API_KEY" https://general.vast.gg/agent/v1/meWhat agents can do
- Create and edit giveaway drafts, and add entry actions.
- Preview a giveaway and read its stats.
- Publish a giveaway, but only with the publish scope and when you ask.
- Set up your team with the Manage team access: invite people by email or username, change what they can do and remove them, when you ask. Only API keys can have it.
- They can't see entrants' emails.
Cover images from your agent
- With your key, an agent can upload cover images for your giveaways, and no other files.
- It must be a PNG, JPEG, WebP or GIF. We check the file itself, not its name.
- Each image can be up to 5 MB.
On the free plan, each upload must send a Content-Length header, or it won't go through, and your keys can upload 30 images a day together.
Limits by plan
- Free plan: up to 2 active keys, 3 new or rotated keys an hour, and 60 requests a minute across your keys.
- Paid plans: up to 10 active keys, 10 new or rotated keys an hour, 120 requests a minute per key, and 300 across your keys.
- On every plan, an agent can publish up to 10 giveaways an hour.
Drafts count toward your monthly giveaways.
Keep your keys secret. If one leaks, revoke it in Developer settings. If a paid plan ends, your keys keep working within the free plan's limits once your email is confirmed.