selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

InstaAuto logo

Self-host InstaAuto

v2.0.0

Open-source Instagram DM automation platform

ReleaseOpen SourceMIT
Updatedlast month
LanguageTypescript
Setup difficultyModerate
Stars
164
Port
3000 (Local development server)
Install with Vercel

What is InstaAuto?

This open-source platform lets you run your own Instagram automation system on Vercel and Supabase. It handles direct-message keyword replies, comment-triggered private messages, story interactions, and AI-generated fallback responses. The stack uses Next.js 16 with React 19, Supabase Postgres for data, and the official Instagram Graph API via OAuth. A video walkthrough shows the 18-minute setup. No monthly fees; the free tiers of Vercel and Supabase cover typical creator workloads. The codebase is MIT-licensed and designed for developers who want full control over their automation logic.

Should you self-host InstaAuto?

InstaAuto scores 48/100 on selfhost.directory (how scoring works) and ranks #9 of 18 in Social Media Management. It has 164 GitHub stars.

It shipped 4 stable releases in the past year. The latest, v2.0.0, came out on 6 July 2026. New versions land roughly every 4 weeks.

Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is ChatbotX (52/100, 1 042 stars). It scores higher overall, so compare the two before you pick. See InstaAuto vs ChatbotX side by side.

Features

  • AI Instagram Auto-Replies
  • Built-in Inbox
  • Dashboard Analytics
  • Instagram Comment Automation
  • Instagram DM Automation
  • Instagram Ice Breakers
  • Instagram Story Automation
  • Row-level Security
  • Webhook Handling

InstaAuto README

How to install InstaAuto

Install InstaAuto with Vercel

Supabase project, Meta/Instagram Developer app, Vercel account
Environment variables
NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY, NEXT_PUBLIC_INSTAGRAM_APP_ID, INSTAGRAM_APP_ID, INSTAGRAM_APP_SECRET, NEXT_PUBLIC_INSTAGRAM_REDIRECT_URI, INSTAGRAM_WEBHOOK_VERIFY_TOKEN, GATEWAY_SECRET, API_SECRET_KEY, GROQ_API_KEY, OPENAI_API_KEY, AI_BASE_URL, AI_MODEL, META_APP_SECRET
  1. Fork this repository
  2. Import it into Vercel
  3. Add all environment variables
  4. Set the production redirect URI in Meta Developer Console
  5. Set your webhook callback URL: https://your-domain.com/api/instagram/webhook
  6. Deploy
  7. Connect your Instagram Business/Creator account
  8. Create your first automation

Recommended deployment platform with free tier

How to configure InstaAuto

  • AI_BASE_URLOpenAI-compatible API base URL

    OpenAI-compatible API base URL

  • AI_MODELAI model name for auto-reply

    AI model name for auto-reply

  • API_SECRET_KEYInternal API secret for publishing hooks

    Internal API secret for publishing hooks

  • GATEWAY_SECRETSecret used for AI gateway/proxy calls

    Secret used for AI gateway/proxy calls

  • GROQ_API_KEYGroq API key for AI auto-reply

    Groq API key for AI auto-reply

  • INSTAGRAM_APP_IDServer-side Instagram app ID

    Server-side Instagram app ID

  • INSTAGRAM_APP_SECRETInstagram app secret for token exchange

    Instagram app secret for token exchange

  • INSTAGRAM_WEBHOOK_VERIFY_TOKENWebhook verification token

    Webhook verification token

  • META_APP_SECRETParent Meta app secret (optional, for webhook signature validation)

    Parent Meta app secret (optional, for webhook signature validation)

  • NEXT_PUBLIC_INSTAGRAM_APP_IDPublic Instagram app/client ID

    Public Instagram app/client ID

  • NEXT_PUBLIC_INSTAGRAM_REDIRECT_URIOAuth redirect URI

    OAuth redirect URI

  • NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anon/public key

    Supabase anon/public key

  • NEXT_PUBLIC_SUPABASE_URLSupabase project URL

    Supabase project URL

  • OPENAI_API_KEYOpenAI API key for AI auto-reply (alternative to Groq)

    OpenAI API key for AI auto-reply (alternative to Groq)

  • SUPABASE_SERVICE_ROLE_KEYSupabase service role key for API routes

    Supabase service role key for API routes

InstaAuto releases & version history

FAQ

ManyChat vs Chatfuel vs InstaAuto?

ManyChat and Chatfuel are excellent hosted products with polished UIs and paid plans. InstaAuto trades the polish for ownership: full source code, your own database, unlimited customization, and $0/month.

Do I need a server?

No dedicated server — it runs on Vercel serverless functions with a Supabase Postgres database. Both have free tiers that comfortably handle a creator account.

Is this allowed by Instagram?

Yes, InstaAuto uses the official Instagram API with Instagram Login and its approved permissions. Every reply is triggered by a user-initiated message or comment, within Instagram's messaging window rules. It does not scrape, mass-DM, or bypass rate limits.

How does comment-to-DM automation work?

When someone comments a trigger word (like "link") on your post, Instagram sends a webhook to your deployment. InstaAuto posts a public reply ("Check your DMs!") and sends the commenter a private DM with your link or lead magnet.

How do I automate Instagram DMs for free?

Deploy InstaAuto (about 18 minutes with the video guide), connect your Instagram professional account, and create a keyword rule — for example, auto-reply to every DM containing "price". Replies can be text, images, quick-reply chips, or button cards.

Is there a free alternative to ManyChat for Instagram?

Yes, InstaAuto is a free, open-source ManyChat alternative. You self-host it on Vercel and Supabase free tiers, connect your Instagram Business or Creator account through the official Instagram API, and get DM keyword automation, comment-to-DM funnels, story-reply automation, and a live inbox without any monthly fee.

More in Chatbot

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…