Skip to main content
Get your AI ad manager running in 10 minutes.
1

Install social-cli

social-cli is the open-source engine that talks to the Meta Marketing API.
Verify it’s installed:
social-cli is built by @vishalgojha and handles Meta API authentication and data fetching for you.
2

Authenticate with Meta

Run the login command to connect your Facebook ad account:
This opens your browser to authorize with Meta. You need:
  • A Facebook account with access to your ad account
  • Permission to read ad insights (most ad account admins have this)
The authentication flow stores your access token locally. No API keys are required in your .env file.

Advanced: Using a Meta App

If you have a Meta developer app with custom permissions:
You only need ads_read and read_insights for monitoring. Add ads_management only if you want the agent to pause/resume ads or adjust budgets.
3

Set your ad account

List your available ad accounts:
You’ll see output like:
Set the default account you want to monitor:
Alternatively, set it via environment variable:
The account ID always starts with act_. You can switch accounts anytime by running the set-default-account command again.
4

Configure benchmarks

Clone the repository and set up your configuration:
Edit ad-config.json with your performance targets:
ad-config.json
Don’t know your benchmarks yet? Leave the defaults. The agent will learn from your actual performance data over time.

What the benchmarks mean

5

Test the installation

Make the run script executable and test it:
You should see the 5 Daily Questions with your actual ad data:
If you see “No insights data”, make sure you have active campaigns that have been running for at least 24 hours.

Permissions needed

The Meta API scopes required depend on what you want to do:
ads_read + read_insights are enough for monitoring only. Add ads_management if you want the agent to take action on your behalf.

Troubleshooting

Check everything

Run the built-in diagnostics:
This checks your authentication, account access, and API connectivity.

Optional: Run with OpenClaw

For a conversational AI interface, install OpenClaw:
Now you can message the agent naturally:
  • “How are my ads doing?”
  • “Any bleeders?”
  • “Daily check”
See the quickstart guide for examples.