How to run a giveaway with an AI agent

Updated · By the Vast team

Key takeaways

An AI agent such as Claude Code, Claude, Cursor or Codex can draft a Vast giveaway for you, add the entry actions, check it's ready, and report entries once it's live. It connects to Vast's MCP server with an API key you create, and it can only do what that key allows. The agent drafts. You decide when the giveaway goes public.

API keys work on every plan. On the free plan, you confirm your email first, and the agent works within the free plan's limits.

Vast is our product, so weigh that. Setup steps for other tools come from their own docs, checked on November 10, 2026. Vast details come from our help center, our public plugin repo and the code behind the agent API.

What MCP is

MCP, the Model Context Protocol, is an open standard for connecting AI apps to outside tools and data. The MCP docs compare it to "a USB-C port for AI applications." A service runs an MCP server that offers tools, such as "create a giveaway draft," and your agent app is the client that calls them when you ask. Vast's server lives at https://general.vast.gg/mcp and speaks Streamable HTTP. Every request carries your API key, so the server knows whose giveaways the agent can touch and what it's allowed to do.

Before you start

You need two things: a Vast account, with a confirmed email if you're on the free plan, and an API key. Our plans guide compares the plans, and the plans page has current prices.

To create a key, open Settings, then Developer. Give the key a name, choose what it can do under Access, and choose when it expires: 7, 30, 90 or 365 days. Copy the key when it appears, because Vast only shows it once.

Access optionWhat the agent can doWhen you need it
Read giveawaysSee your plan limits, your giveaways and the entry action typesTo check limits and drafts (on by default)
Create and edit draftsCreate drafts, add entry actions, change draftsTo build a giveaway (on by default)
Publish giveawaysPublish a draft when you askOnly if you want the agent to take it live
Entry statsRead views, entrants, entries and completions per actionTo report results
WinnersRead winners after the draw, as rank and masked usernameTo report winners, together with Entry stats

Keep the key in an environment variable called VAST_API_KEY, and never paste it into a chat.

Run this on its own, then paste your key and press Enter (nothing shows as you paste):

read -rs VAST_API_KEY && export VAST_API_KEY

Set up your agent

Pick the path that matches your tool. All of them end up talking to the same server.

claude plugin marketplace add https://vast.gg/plugins/claude/marketplace.json
claude plugin install agentic-giveaway@vast

The plugin adds Vast's MCP server and a skill that walks the agent from draft to launch. Then, inside Claude Code, run /plugin configure agentic-giveaway@vast and paste your API key when it asks. Claude Code keeps it in secure storage, not in your settings or an environment variable. Anthropic's plugin docs cover install scopes and how to update or remove a plugin.

Cursor, Codex and other agents: the skill

npx skills add https://vast.gg

This uses skills, an open-source command-line tool from Vercel. skills.sh lists Claude Code, Cursor, Codex, GitHub Copilot, Windsurf and Gemini among the agents it supports. The skill teaches your agent the steps and the rules. It doesn't connect to Vast by itself, so add the server too, as below.

The raw MCP config

For Claude Code without the plugin, one command adds the server:

claude mcp add --transport http vast https://general.vast.gg/mcp --header "Authorization: Bearer $VAST_API_KEY"

Your shell fills in the key when you run it, so Claude Code saves the key in its own settings. To keep the key out of every file, use a project .mcp.json instead. Claude Code's MCP docs say it expands environment variables such as ${VAST_API_KEY} in that file:

{
  "mcpServers": {
    "vast": {
      "type": "http",
      "url": "https://general.vast.gg/mcp",
      "headers": { "Authorization": "Bearer ${VAST_API_KEY}" }
    }
  }
}

Cursor. Put the server in .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project. Cursor's MCP docs use ${env:NAME} for environment variables:

{
  "mcpServers": {
    "vast": {
      "url": "https://general.vast.gg/mcp",
      "headers": { "Authorization": "Bearer ${env:VAST_API_KEY}" }
    }
  }
}

Codex. One command adds the server and reads the key from VAST_API_KEY:

codex mcp add vast --url https://general.vast.gg/mcp --bearer-token-env-var VAST_API_KEY

It writes this to ~/.codex/config.toml, which you can also edit by hand. The Codex MCP docs say bearer_token_env_var names the variable that holds the token, and that the Codex CLI and IDE extension share this file:

[mcp_servers.vast]
url = "https://general.vast.gg/mcp"
bearer_token_env_var = "VAST_API_KEY"

Claude (web and desktop). Add a custom connector with the server address, then, if your account shows Request headers, add an Authorization header with the value Bearer and your key. Anthropic's connector guide says that field takes "fixed credentials such as API keys," and its developer docs list request headers as a beta that Anthropic turns on per organization, so not every account shows them. Here Claude stores the key, not an environment variable. On Team and Enterprise, an owner adds the connector, and the header holds one key shared by everyone in the organization.

Any other MCP client that supports Streamable HTTP uses the same address and the same Authorization header.

To check that the key works before you involve an agent:

curl -H "Authorization: Bearer $VAST_API_KEY" https://general.vast.gg/agent/v1/me

An example prompt

"Draft a one-week giveaway for a $50 Steam gift card, two winners, starting Monday at 9:00 New York time. To enter, people follow @yourstudio on X, follow yourstudio on Twitch, and wishlist our game on Steam. Don't publish it yet."

Give the agent the prize and its value, the number of winners, the dates with a time zone, and the actions. If something is missing, the skill tells the agent to ask rather than make it up.

What the agent does, step by step

  1. Checks your plan with get_my_plan_limits: giveaways left this month, the prize and winner limits, how many people each giveaway takes (500 on the free plan), and the key's access and expiry.
  2. Looks for duplicates with list_my_giveaways, so it doesn't draft a giveaway you already have.
  3. Reads the action list with list_action_types. It returns the entry actions a key can add, their fields, and the kinds you have to set up in the web editor. In the example, the X and Twitch follows are allowed and the Steam wishlist isn't.
  4. Creates the draft with create_giveaway_draft. It sends an idempotency key, so a retry returns the same draft instead of a second one. Drafts count toward your giveaways for the month.
  5. Adds and fixes with add_entry_actions, up to 10 actions per call, and update_giveaway_draft. Vast rewrites the official rules to match each change.
  6. Previews with preview_giveaway, fixes the problems it lists, and shows you a summary: title, prize, dates, actions, and links to the draft and the editor.
  7. Stops and waits. It publishes only when you say so, and only if the key has the Publish giveaways access.
  8. Reports results later with `get_entry_stats`: page views (including repeat openings), unique entrants with valid actions, entries from those actions, and completions per action. Amp bonuses and qualified referrals are separate when available. Winners access also lists winners after the draw.

Improve a live giveaway without changing its rules

Use the same giveaway ID to take a baseline and follow-up snapshot with `get_entry_stats`. Compare equal-length intervals and note when you changed promotion. Page views show volume, not people or proof that one channel caused entries. Per-action completions are not a drop-off funnel, and qualified Amp referrals can already be counted among unique entrants.

Try one promotion change at a time: a sponsor placement, a clear prize-focused post with the entry link in its first reply, or a reminder to eligible entrants about the referral option already in the rules. Have the agent propose the change and draft the copy; approve it before publishing. Don’t change tasks, odds, or the prize on a live giveaway as an experiment.

The skill ends every session with a short action plan of what's done and what only you can do. For the example prompt, it would look something like this:

What stays with you

Safety

Limits

LimitToday
PlanAny plan; on the free plan, confirm your email first
Active keys2 on the free plan, 10 on paid plans
RequestsFree plan: 60 a minute across your keys. Paid plans: 120 a minute per key, 300 across your keys
Actions an agent can addLog in to Vast, Visit a page, Follow on X, Repost on X, Visit a YouTube channel, Visit an Instagram profile, Visit a Facebook page, Follow on TikTok, Twitch, Kick or Bluesky, and Bonus
Actions per callUp to 10
EditingDrafts only
PublishingUp to 10 publishes an hour per account
Requests120 a minute per key, 300 a minute per account, and 30 changes a minute per key
KeysUp to 10 active, each expiring after 7 to 365 days
Monthly giveawaysDrafts count, the same as in the web editor

Checks work the same as in the web editor. Vast checks Twitch follows against the player's connected Twitch account. It doesn't check X, Discord or Kick actions automatically today, so look over winners before you announce them.

FAQ

Do I need a paid plan? No. Free accounts with a confirmed email can create 2 keys, and the agent works within the free plan's limits. Paid plans raise them.

Can the agent publish without asking me? Publishing needs the Publish giveaways access and an explicit confirmation, and the skill tells the agent to publish only when you ask. To be certain, create the key without that access.

Can the agent add a Steam wishlist or Discord join action? It can add a Discord join action if you give it the invite link. A Steam wishlist action still needs the web editor, as does Telegram. The agent adds the actions a key supports and lists the rest for you to finish there.

Which agents work? Claude Code, Claude, Cursor and Codex, plus any MCP client that supports Streamable HTTP and lets you set an Authorization header.

Can the agent see who entered? It sees counts per action, not entrants' emails. With the Winners access, it sees winners as a rank and a masked username. You see winners' emails in Vast, so you can deliver prizes.

Create an API key and connect your agent in a few minutes. Read the setup steps

Sources

Write the launch post

After reviewing your giveaway, ask your agent to call `get_launch_post` with the giveaway ID. Choose `long` for the full entry checklist, closing time, eligibility and winner claim window, or `short` for copy that fits 280 X characters. The default is Long in the host's voice; `voice: "cohost"` uses a teamed-up introduction when the host's X handle is available. The tool needs `giveaways:read` and returns editable copy under `host_content.launch_post`. It does not post to X.

You can also open Post it on X on your host dashboard, edit either draft, and copy it. Post on X opens the Short draft and copies the Long draft when Long is selected. Long posts need X Premium.

More guides