Spotify Ads Agentic Tools
A Codex, Claude Code, and Antigravity CLI plugin package that lets you manage Spotify advertising campaigns through natural language. Create campaigns, target audiences, launch ads, and pull performance reports — all by describing what you want in plain English.
Check out our post on the Spotify Engineering Blog.
Prerequisites
- Codex, Claude Code CLI, or Antigravity CLI
- A Spotify Developer account with an ads-enabled app
- A Spotify Ads ad account ID
- Python 3.8+ or
uv. Required for the secure configuration helpers and automatic token refresh. Python is also used to check each request against the OpenAPI spec before it is sent; without it, that check is skipped. On Windows, ensure a real python or py is in your PATH (see Troubleshooting).
- Network access to
developer.spotify.com, so each workflow can download the current Ads API OpenAPI document (see How requests are made)
- Git for Windows (Windows only; provides Git Bash, which the token refresh hook requires)
- jq (recommended on Windows for richer hook output; the token refresh hook works without it but produces minimal JSON)
Install
Claude Code
claude plugin i spotify-ads-api
The plugin is installed from the Official Anthropic marketplace, which has auto-update enabled by default. Claude Code checks for plugin updates in the background after each session starts and applies them automatically. New versions take effect on your next launch (or run /reload-plugins to pick them up in the current session).
To use this repository as a custom marketplace in the Claude UI, choose Add marketplace, enter spotify/ads-agentic-tools or https://github.com/spotify/ads-agentic-tools, and select Sync. Then install Spotify Ads API from that marketplace. The Claude marketplace intentionally uses the repository-relative plugin source "./"; Git-based marketplace installs clone the whole repository and resolve that path from the repository root.
If you have auto-update disabled for the Official Anthropic marketplace, you will need to update the plugin manually. See the Anthropic instructions on Discover and install plugins for instructions on managing marketplace updates.
Codex
Add the Spotify Ads API plugin marketplace:
codex plugin marketplace add spotify/ads-agentic-tools
In the Codex app, you can instead choose Add marketplace and enter https://github.com/spotify/ads-agentic-tools. Restart Codex after adding the marketplace. Then open the plugin directory in the Codex app, or run codex and enter /plugins in the CLI. Select the added marketplace and install/enable Spotify Ads API.
Use codex plugin marketplace upgrade later to refresh installed marketplace sources.
Antigravity CLI
agy plugin install https://github.com/spotify/ads-agentic-tools
Restart Antigravity CLI, then verify with /plugins. On Antigravity, skills activate automatically from natural language (or browse them with /skills list); run /configure for first-time setup instead of /spotify-ads-api:configure.
Install from source
Use a source checkout for local development or testing unreleased changes.
-
Clone the repository (on Windows, disable autocrlf so the bash hooks stay LF-only):
git clone -c core.autocrlf=false https://github.com/spotify/ads-agentic-tools.git
cd ads-agentic-tools
-
For Codex, register the checkout as a local marketplace:
codex plugin marketplace add "$(pwd)"
Restart Codex after adding the marketplace. Then open the plugin directory in the Codex app, or run codex and enter /plugins in the CLI. Select the local marketplace and install/enable Spotify Ads API.
-
For Claude Code, launch with the plugin directory:
claude --plugin-dir "$(pwd)"
The Claude --plugin-dir flag loads the plugin for that session only. You can also add it to a shell alias if you use it frequently:
alias claude-ads='claude --plugin-dir /path/to/ads-agentic-tools'
-
For Antigravity CLI, link the checkout as a local plugin:
agy plugin link "$(pwd)"
The link is a symlink, so source changes are picked up on the next Antigravity CLI restart.