Skip to Content
Self-hostArchitecture

Architecture

A self-hosted Genfeed instance is single-tenant: one organization per deployment, running entirely on infrastructure you control. The published stack is two containers. Boundary spec version: v1.4.0.

What runs

ContainerWhat it runs
genfeedThe web app, REST API, workers, files service, notifications service, and MCP server, plus an embedded Redis
postgresPostgreSQL (the pgvector/pgvector image)

On start, the genfeed container:

  1. starts Redis with persistence under /data/redis;
  2. applies Prisma database migrations (retrying while PostgreSQL initializes);
  3. reconciles reference data;
  4. starts the API, workers, files, notifications, and MCP services; and
  5. starts the web app.
ServicePort in the containerPublished to the host
Web app3000Yes (SELFHOSTED_APP_PORT)
REST API3010Yes (SELFHOSTED_API_PORT)
WebSocket / notifications3011Yes, localhost only (SELFHOSTED_WS_PORT)
MCP server3014Yes (SELFHOSTED_MCP_PORT)
Files3012No
Workers3013No
PostgreSQL5432No
Redis6379No

PostgreSQL and Redis are never published on a host port by this stack.

The workers run your scheduled workflows and hired agents on their schedules, the same as Genfeed Cloud.

Where data lives

  • PostgreSQL stores workflows, brands, prompts, provider settings, content records, and generated-asset metadata.
  • Redis backs queues and cache, and is persisted under /data.
  • Generated files are stored under /data/files inside the container.
  • Generated secrets (the credential encryption key and, if you enable the login wall, the Better Auth secret) live in /data.

Back up PostgreSQL and the /data volume together. See Upgrading.

Who you are signed in as

ConfigurationBehavior
Default (BETTER_AUTH_ENABLED=true)Users sign up and sign in against your own instance. Local database records stay authoritative.
No login wall (BETTER_AUTH_ENABLED=false)The first boot seeds one local user, organization, and brand. The web UI opens without a login wall, and requests without a token resolve to that local identity.

MCP is authenticated either way. See MCP server.

How model providers are chosen

Generation resolves credentials in this order:

  1. The organization’s own provider key, set in the app under Integrations.
  2. The deployment-wide key in your .env.

Provider calls are made by your own API from your own network, using your keys. Prompts and media sent to a provider leave your deployment and are handled under that provider’s terms. Application records stay on your infrastructure. See Provider API keys.

What is not included

  • GPU, image, video, and voice service workspaces, and local-model runtimes. The Community image does not start them. Generation runs through the hosted model providers you configure.
  • Multi-tenant organizations. One deployment is one organization.
  • Genfeed credits. You pay model providers directly.

Licensing

The repository is licensed AGPL-3.0-or-later, except where a package carries its own license notice. Self-hosting for your own use is covered by the license.

Last updated on