AI ads creator
study the ads your competitors are actually running, understand why they convert, and generate new ads for your brand: copy, images, and video scripts. all done by AI.
follow the steps below to set everything up. takes about 15 minutes.
setup guide
steps 1-8 are one-time setup. steps 9-12 are how you use the tool every time.
VS Code is a free app from Microsoft. it's where you'll open and run the tool. think of it like Word, but for code.
- go to code.visualstudio.com
- click the big Download button
- open the downloaded file and install it like any other app
- on Mac: drag it into your Applications folder. on Windows: just click "Next" through the installer
Node.js is a small program that runs in the background. you install it once and forget about it. the tool needs it to work.
- go to nodejs.org
- click the big green button that says Download Node.js (LTS)
- open the downloaded file and install it, clicking "Next" / "Continue" through everything, don't change any settings
that's it. you won't need to open Node.js ever again.
Claude Code is the AI assistant that helps you use this tool. it lives inside VS Code.
- open VS Code
- on the left sidebar, click the Extensions icon (it looks like four small squares)
- in the search bar at the top, type Claude Code
- find the one by Anthropic and click the blue Install button
- once installed, it will ask you to sign in. follow the prompts to create an account. it costs $19/month (you can cancel anytime)
the tool is free and lives on GitHub (a site where people share code).
- go to github.com/melnikoff-oleg/ads-ai
- click the green <> Code button
- click Download ZIP
- find the downloaded ZIP file (usually in your Downloads folder) and double-click it to unzip
- you should now have a folder called ads-ai-main. move it somewhere easy to find, like your Desktop
- open VS Code
- click File in the top menu, then Open Folder...
- find the ads-ai-main folder you just downloaded and select it
- if VS Code asks "Do you trust the authors?", click Yes, I trust the authors
you should now see all the project files in the left sidebar.
API keys are like passwords that let the tool use different AI services. you need to sign up for each service (most have free trials) and copy the key they give you.
you need 5 keys. here's where to get each one:
1. Anthropic (Claude AI) (writes your ad copy)
go to console.anthropic.com, create an account, go to API Keys, click Create Key, and copy it
2. Google Gemini (analyzes your brand images)
go to aistudio.google.com/apikey, sign in with your Google account, click Create API Key, and copy it
3. FireCrawl (reads your website)
go to firecrawl.dev, create an account, and copy your API key from the dashboard
4. Apify (finds competitor ads on Meta)
go to console.apify.com, create an account, go to Settings, then Integrations, and copy your API token
5. Kie.ai (generates ad images)
go to kie.ai, create an account, and copy your API key
save all 5 keys somewhere safe (like a notes app). you'll paste them in the next step.
- in VS Code, look at the left sidebar and find a file called .env.example
- right-click on it and choose Rename
- change the name from
.env.exampleto just.env(remove the word "example") and press Enter - click on the file to open it. you'll see something like this:
ANTHROPIC_API_KEY=
GEMINI_API_KEY=
FIRECRAWL_API_KEY=
APIFY_API_TOKEN=
KIE_AI_API_KEY=- paste each key right after the = sign, with no spaces. for example:
ANTHROPIC_API_KEY=sk-ant-abc123...
GEMINI_API_KEY=AIzaSy...
FIRECRAWL_API_KEY=fc-...
APIFY_API_TOKEN=apify_api...
KIE_AI_API_KEY=kie-...- press Cmd+S (Mac) or Ctrl+S (Windows) to save the file
now you'll use Claude Code to start the tool. this is the easiest part.
- in VS Code, click the Claude Code icon in the left sidebar (it looks like a sparkle ✦)
- a chat panel will open. type this message and press Enter:
install the app dependencies and start the dev server- Claude Code will run the commands for you. when it's done, it'll say the server is running.
- open your web browser (Chrome, Safari, etc.) and go to localhost:3000. you should see the tool
if anything goes wrong, just ask Claude Code in the chat. it can read the error and fix it for you.
now the tool is running in your browser. the first thing to do is tell it about your brand.
- you should see the Brand page. if not, click Brand in the left sidebar
- enter your website URL (like https://yourbrand.com)
- optionally add your Instagram handle (like @yourbrand)
- click "Scrape Brand" and wait about 30 seconds
the tool will crawl your website, pull out your products, download your images, and build a complete brand profile. you'll see everything it found on the page.
- click Competitors in the left sidebar
- you'll see suggested keywords based on your brand. you can edit them or add your own
- click Search, and the tool will search the Meta Ad Library and find companies running ads in your space
- it ranks them by how long their ads have been running (longer = they're making money from those ads)
- click What's Working in the left sidebar
- click the Analyze button, and the AI will study the top 25 competitor ads
- wait about a minute. when it's done, you'll see:
- the exact opening lines (hooks) that grab attention, and why they work
- patterns across all the ads: what copy style, emotional angle, and visual approach keeps showing up
- click Create in the left sidebar
- choose how many ad concepts you want (start with 3 to test it out)
- pick which of your products to feature
- click Generate and wait a couple of minutes
- each concept comes with:
- AI-written ad copy (headline, text, and call-to-action)
- an AI-generated image matching the competitor's visual style
- a side-by-side comparison so you can see the original ad next to yours
the tool automatically checks the quality of each concept. only the good ones are shown.