Viral Instagram Reels with Claude Code

Follow these steps to set up your AI-powered Instagram Reels workflow. Click each step to expand the full instructions.

1
Install Visual Studio Code
  1. Go to code.visualstudio.com
  2. Click the download button — it will detect your operating system (Windows, Mac, or Linux) automatically.
  3. Run the installer and follow the on-screen instructions.
  4. Once installed, open VS Code to make sure it launches correctly.
2
Install Claude Code
  1. Open the terminal inside VS Code by pressing Ctrl + ` (or Cmd + ` on Mac).
  2. If you don't have Node.js installed yet, download it first from nodejs.org (choose the LTS version).
  3. Run the following command to install Claude Code:
    npm install -g @anthropic-ai/claude-code
  4. Once installed, type claude in the terminal and press Enter. Follow the prompts to log in with your Anthropic account.
3
Download the Project from GitHub
  1. Go to the project repository: github.com/melnikoff-oleg/social-media
  2. Click the green "Code" button, then select "Download ZIP".
  3. Unzip the downloaded file to a folder on your computer (e.g., your Desktop or Documents).
  4. Open the folder in VS Code: go to File → Open Folder and select the social-media folder.
  5. Alternative (if you have Git installed): open the terminal and run:
    git clone https://github.com/melnikoff-oleg/social-media.git
    Then open the cloned folder in VS Code.
4
Get Your API Keys

You'll need three API keys for this project. Here's how to get each one:

Apify API Key

  1. Go to apify.com and create a free account.
  2. Click on your profile icon in the top-right corner.
  3. Navigate to Settings → Integrations.
  4. Copy your Personal API Token.

Google Gemini API Key

  1. Go to aistudio.google.com/apikey
  2. Sign in with your Google account.
  3. Click "Create API Key" and copy it.

Anthropic API Key

  1. Go to console.anthropic.com
  2. Sign in or create an account.
  3. Navigate to Settings → API Keys.
  4. Click "Create Key" and copy it.

Save all three keys somewhere safe — you'll add them in the next step.

5
Configure the .env File
  1. In VS Code, look for a file called .env.example or .env in the project root.
  2. If you only see .env.example, duplicate it and rename the copy to .env
  3. Open the .env file and fill in your API keys:
    APIFY_API_KEY=your_apify_key_here
    GEMINI_API_KEY=your_gemini_key_here
    ANTHROPIC_API_KEY=your_anthropic_key_here
  4. Replace each your_..._here placeholder with the actual API key you copied in the previous step.
  5. Save the file.

Note: The exact variable names may differ slightly — check the project's README for the correct names.

6
Run the Project with Claude Code
  1. Open the terminal in VS Code (Ctrl + ` or Cmd + `).
  2. Make sure you're in the project folder, then type:
    claude
  3. Claude Code will read the project files and understand how it works.
  4. Ask Claude to help you create your first viral Instagram Reel — for example:
    "Help me create a viral Instagram Reel about [your topic]"
  5. Claude will guide you through the workflow — from scraping trending content to generating your Reel.

Watch the Full Walkthrough

For B2B business owners

Want inbound leads from organic LinkedIn content?

See How It Works