AUTOSOCIALS FOR DEVELOPERS
Self-hosting checklist
Prepare an isolated AutoSocials installation and check required services before enabling features.
Status and prerequisites
Download the AGPL-3.0 source at https://github.com/AutoThink-Group-Ltd/autosocials. Continuous integration verified a clean Supabase migration, container startup and a test sign-in. The Compose recipe runs the application. Set up Supabase, Edge Functions, storage and scheduled jobs separately.
You need a supported Node and container toolchain, an independently operated Supabase project or compatible stack, and a canonical HTTPS origin for external use. See https://supabase.com/docs/guides/self-hosting and https://supabase.com/docs/guides/self-hosting/self-hosted-functions. The API key setup guide is at https://autosocials.com/developers/api-key-setup.
Installation checklist
- Review the source release, licence and migrations. Start with an empty Supabase project for your installation. Use synthetic data for setup checks.
- Configure Supabase database, Auth, Storage, RLS, buckets, auth redirect URLs and required Edge Functions. Point the application server and functions at the same project. Review function authentication and follow the source release’s migration preparation step. It combines the older Drizzle history with the Supabase migrations and adds installation-safe replacements.
- Copy release/env.example to release/self-host.env and keep it private and untracked. Fill in the Supabase settings from the matrix below. Leave optional agent and provider controls off while you verify the basics.
- From the root of the reviewed source release, run docker compose --env-file release/self-host.env -f release/compose.yml up --build. The recipe binds localhost. Set up a TLS reverse proxy before exposing your installation.
- Sign in with a test user and save a written draft in one workspace. Use a second test user outside the workspace to check that its private data stays private. Then enable provider features one at a time.
App configuration matrix
Build-time browser values: VITE_SUPABASE_URL, VITE_SUPABASE_PUBLISHABLE_KEY and VITE_SUPABASE_PROJECT_ID identify the intended project. They are public values; a build-time change requires a rebuild. Never place a privileged credential in a VITE_ variable.
App-server runtime: SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY or SUPABASE_ANON_KEY as applicable, and SUPABASE_SERVICE_ROLE_KEY for server-only administrative operations. Treat the service-role key as privileged: it bypasses RLS and must remain private. See https://supabase.com/docs/guides/getting-started/api-keys.
Edge Functions runtime: SUPABASE_URL, SUPABASE_ANON_KEY and SUPABASE_SERVICE_ROLE_KEY as required by each function, plus that function’s provider secrets. Configure them through the Supabase deployment’s supported secret mechanism; browser build variables are not a substitute. See https://supabase.com/docs/guides/functions/secrets.
Agent controls in the app-server process: AUTOSOCIALS_AGENT_API_ENABLED and separately AUTOSOCIALS_AGENT_DRAFTS_ENABLED, AUTOSOCIALS_AGENT_PUBLISHING_ENABLED, AUTOSOCIALS_AGENT_TILE_PLANNING_ENABLED and AUTOSOCIALS_AGENT_RESEARCH_PROVIDER_ENABLED. Set AUTOSOCIALS_AGENT_ORIGIN to your canonical HTTPS origin and optionally AUTOSOCIALS_AGENT_ALLOWED_ORIGINS to trusted browser origins. Gates default off; enabling the API alone does not enable its writes.
Verification and recovery
- Confirm the running app points to your project without displaying credentials. Check sign-in, private storage and the deployed Edge Functions.
- For agent access, keep writes gated and inspect your installation's /openapi.json and /mcp-tools.json. Verify an authorised channel read using a test account, then check that a missing or revoked credential is rejected. A workspace with zero connected channels should return an empty list.
- Record tested versions, results and pending integrations. Back up database and storage, test restores and review migration and provider callback changes before upgrades. Database rollback and container rollback are separate steps.