Loading
Reading this page from the local database.
Loading
Reading this page from the local database.
Docs
The install takes one command. The setup takes three short steps. Every number in the sample account is made up and labeled as sample.
You need Node.js 22 or newer and npm 10 or newer. On Windows, use WSL. The script uses bash, which macOS, Linux and WSL all have.
git clone https://github.com/jbauman-26/ad-autopilot.git
cd ad-autopilot./install.shIt installs the packages, creates .env from .env.example, creates the SQLite database and runs the production build. You can also run npm run setup.npm startWith Docker installed, run docker compose up in the project folder and open http://localhost:3000. The database is kept in ./data. The container turns off Next.js telemetry. The Docker path is provided but was not exercised on the build machine, which has no Docker.
Neither path makes an outbound call during install. The install does not create an account, a license code or a key for you.
Your code comes with your purchase. Local codes look like AA-XXXX-XXXX-XXXX and are case-insensitive.
To generate codes for your own install, run this in the project folder:
npm run codes -- --count 20 --tier 1Tier 1 covers one brand. Tier 2 covers three brands. The codes print once. Only a hash is stored, so save the output.
An AppSumo purchase key also works on the redeem screen. The webhook at POST /api/licenses/appsumo verifies the AppSumo signature and timestamp, ignores test events, applies events in created_at order and is safe to retry. Set the shared secret in APPSUMO_PRIVATE_KEY before you connect the listing.
The sample account opens the full weekly check, including the rules, the Meta suggestion grades and the approval queue. It takes under a minute. Nothing is sent to Meta.
If you forgot the password, sign out and use the reset link on the sign-in screen. The link prints to the server log, works once and expires in 30 minutes. No email is sent. Sign-in and code entry slow down after 10 failed attempts in 15 minutes; wait 15 minutes, then try again.
The import is a CSV upload to this install. There is no Meta app review, no API key and no live call. Export the two files, add a brand on the import page, and upload them. The weekly check, the profit per ad dollar, the tracking check and the signal loop then run on your numbers.
meta-ads-week.csv. Do not rename the column headers. If a header is different, the mapping screen asks you to match it before anything is saved.A service business does not need Shopify. Make a CSV with three columns: Date, Value and Source. Put the ad name or ad id in Source when you know it. Jobs whose source matches an ad are counted on that ad; the rest are spread across the ads in proportion to their leads.
Example CSV files made up for testing live in fixtures/csv/. They are not real accounts. The screenshots in the docs use made-up data too.
AppSumo QA checks the redirect URL, the private key and the OAuth flow. The webhook is at POST /api/licenses/appsumo. The OAuth callback is GET /appsumo/callback.
https://your-install.example.com/appsumo/callback. AppSumo checks it with a GET that has no payload, and this install answers 200 with a clear page.APPSUMO_CLIENT_ID, APPSUMO_CLIENT_SECRET and APPSUMO_REDIRECT_URL in .env. The redirect value must match the Partner Portal exactly. While any of the three is blank the callback is a no-op with a clear message.POST https://appsumo.com/openid/token/, fetches the license at GET https://appsumo.com/openid/license_key/, and links it to the signed-in owner./start and an existing owner to /signin. It links the license after the owner account is available. The raw code and the access token are not stored.The tests mock both AppSumo endpoints. No real call is made in a test or in the smoke check.
See docs/DEMO.md in the repository for a three-minute walkthrough with screenshots.
Settings holds the keys you bring. All of them are optional. They are saved on the server and the browser sees only the last four characters.
sk_test_ keys are accepted. With no key, the local test checkout is used and no card is collected.This build is dry run. It does not connect a live Meta account, upload an ad, send a CAPI event or spend money. The sample accounts live in fixtures/accounts/. There is no live Meta connection in this build.
Choose Import my own data in the first run, or open the import page at any time, to run the check on the CSV exports you download yourself. Re-importing a file replaces the previous file of the same kind for that brand.
npm run setup # install, create .env and the database, build
npm start # serve on http://localhost:3000
npm run codes -- --count 20 --tier 1
npm test # unit tests
npm run typecheck # TypeScript
npm run build # production build
npm run smoke # end-to-end check after install (needs Chrome)
npm run db:init # create any missing tablesAfter install, npm run smoke starts the app, creates an owner, generates and redeems a code, finishes setup, restarts the server and signs in again. It needs Chrome or Chromium and a production build.
Everything is in the data/ folder. Copy data/ad-autopilot.db to back it up. To start over, stop the app and delete that file, then run npm run db:init. Deleting it removes the account, license, keys and history.
Not in this build. It is dry run and reads sample or recorded data. No ad is changed and nothing is sent to Meta.
No. Every AI feature has a local fallback. Keys add live generation and a Stripe test checkout.
In a SQLite file under data/ on the server that runs this install. No tracking and no selling.
Tier 1 covers one brand. Tier 2 covers three brands. Each local code is single use on one install.
Contact the seller you bought from. Include the steps you took and any error you saw. Never send a license code or an API key.
It is the first release. The sample account is labeled sample everywhere, the checkout is test mode and the Meta side is dry run. The weekly check is real application output from the sample data and the rules engine.