InstaPilot

InstaPilot — Installation & Use

AI Instagram Growth Operating System (self-hosted). English documentation for CodeCanyon buyers.

Important: This product uses the official Meta Instagram Graph API for Professional accounts. Default publish mode is simulation. Live posting requires your own Meta app review. Do not market the product as guaranteed follower growth or unattended spam posting.

1. Requirements

2. Quick start (Docker infra + local apps)

Linux / macOS: bash scripts/setup-linux.sh

docker compose up -d postgres redis
cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.env
# Edit JWT_SECRET to a long random value before any public deploy
npm install
cd apps/api && npx prisma migrate deploy && cd ../..
# Local demo accounts (optional):
# In apps/api/.env set SEED_DEMO=1 then:
npm run db:seed
npm run dev

Web: http://localhost:3000 · API: http://localhost:4000/health

3. Environment variables

API (apps/api/.env)

Web (apps/web/.env)

4. Test accounts after install (SEED_DEMO=1 once)

After you point DATABASE_URL at your empty Postgres, set SEED_DEMO=1 and run npm run db:seed. These users exist only on your database — the CodeCanyon ZIP never contains the seller's live data.

admin@ is a real Super Admin on your install (Software settings, SMTP, Support inbox). Change passwords before going public, then set SEED_DEMO=0 and NEXT_PUBLIC_SHOW_DEMO_ACCOUNTS=0.

Seller Envato preview keeps SEED_DEMO=0 and may create a sandboxed Demo Super Admin from Software settings (sample data only).

4b. CodeCanyon packaging & data safety

5. Meta Instagram setup

  1. Create an app at developers.facebook.com
  2. Add Instagram product (Professional / Business Login)
  3. Set OAuth redirect to your META_REDIRECT_URI
  4. Put App ID/Secret in env or Super Admin → Software settings
  5. Connect from Workspace → Connect Instagram
  6. Keep PUBLISH_MODE=simulation until App Review allows live publish

6. OpenAI & Cloudflare R2

Configure in Super Admin → Software settings (preferred) or env vars listed in apps/api/.env.example. R2 public HTTPS URLs are required for Instagram media publishing.

7. Production checklist

7b. Envato live preview watermark

On your public demo host, copy apps/web/.env.demo.example values into apps/web/.env:

NEXT_PUBLIC_DEMO_WATERMARK=1
NEXT_PUBLIC_SHOW_DEMO_ACCOUNTS=0
NEXT_PUBLIC_DEMO_WATERMARK_TEXT=DEMO PREVIEW — Envato item

A fixed bottom watermark appears site-wide so visitors know it is a preview.

Cover and preview assets: see envato/previews/README.md. Start from envato/previews/cover-2340x1560.svg (3:2).

Buyer ZIP: run powershell -File scripts/package-codecanyon.ps1 (Windows) or bash scripts/package-codecanyon.sh (Linux/macOS).

7c. Public documentation URL

On a running install, open /documentation (also linked as Docs in the marketing header). Envato requires documentation that is publicly reachable (not behind a purchase gate). The same content ships in the download under documentation/.

8. Customization / white-label

9. Support scope

Item support covers installation of the shipped code, configuration of documented env vars, and bug fixes in the item. Meta App Review decisions, OpenAI billing, and Cloudflare account issues are outside item support.

10. Credits

See Credits for third-party libraries and fonts.