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.

GitHub
Forge logo

Self-host Forge

0.1.0

Visual platform for building and shipping AI agents

AlphaOpen SourceMIT
Updated2 weeks ago
LanguagePython
Setup difficultyAdvanced
Stars
175
Ports
8000 (API server), 3000 (Web console)
Install with Docker Compose
Forge demo video showing the Forge Assistant building and running a workflowAnalytics screenTools dashboard with tool sets grid viewVisual agent builder with deep agent subagentsVisual workflow builder canvasForge Tools screen showing tool grid grouped into reusable tool setsForge visual workflow builder with React Flow canvasForge knowledge screen showing document sources, folders, chunking status, and Q&AForge knowledge search debugger with PCA chunk mapForge component builder with HTML/CSS editor and live sandboxed preview

What is Forge?

Forge lets you create AI agents and workflows visually on a canvas without writing framework code. You connect agents, tools, knowledge bases, and logic nodes, then deploy the result to an API, MCP server, email, or embeddable chat widget. The platform includes a visual agent builder with support for deep agents that can spawn sub-agents, a workflow builder with typed edges and a live playground, knowledge management with RAG and a search debugger, and generative UI components that render in sandboxed iframes. Observability is built in with span waterfalls showing latency, tokens, and cost per run. For local development it runs on SQLite and embedded Chroma with no external services; production swaps to Postgres with pgvector and Redis via config. Authentication supports built-in accounts, OAuth2, API keys, and MCP OAuth 2.1. The project is MIT-licensed with no proprietary dependencies.

Should you self-host Forge?

Forge scores 43/100 on selfhost.directory (how scoring works) and ranks #153 of 209 in AI Agents. It has 175 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is advanced: plan for several services and some ongoing maintenance. It is MIT-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is Orca (91/100, 108 739 stars). It scores higher overall, so compare the two before you pick. See Forge vs Orca side by side.

Features

  • Auth Providers
  • Email channel
  • Embeddable web widget
  • Evaluations
  • Generative UI Components
  • Guardrails & Egress
  • Human in the Loop
  • Import / Export
  • Knowledge & RAG
  • MCP Server
  • Observability & Traces
  • Run API
  • Triggers
  • Visual Agent Builder
  • Visual Workflow Builder

Forge README

How to install Forge

Install Forge with Docker Compose

Docker and Docker Compose
Environment variables
FORGE_JWT_SECRET, FORGE_BOOTSTRAP_ADMIN_PASSWORD, FORGE_DATABASE_URL, FORGE_REDIS_URL, OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.

docker compose up --build

Production-shaped stack with Postgres, Redis, API, worker, and web console. Requires setting real secrets in .env first.

How to configure Forge

  • ANTHROPIC_API_KEYAnthropic API key

    Anthropic API key

    values: sk-ant-...

  • FORGE_BOOTSTRAP_ADMIN_EMAILyou@forge.localBootstrap admin email

    Bootstrap admin email

    values: email address

  • FORGE_BOOTSTRAP_ADMIN_PASSWORDforge-adminBootstrap admin password

    Bootstrap admin password

    values: password

  • FORGE_CHECKPOINT_BACKENDCheckpoint backend for run durability

    Checkpoint backend for run durability

    values: sqlite, postgres

  • FORGE_CONNECTOR_OAUTH_APPSVendor OAuth app credentials for connectors

    Vendor OAuth app credentials for connectors

    values: JSON object

  • FORGE_DATABASE_URLDatabase connection URL

    Database connection URL

    values: postgresql+asyncpg://... or sqlite

  • FORGE_DEFAULT_MODELfake:echoDefault model for agent runs

    Default model for agent runs

    values: model identifier

  • FORGE_DEFAULT_TOKEN_CTX_KEYDeployment-wide fallback for per-user auth provider token context key

    Deployment-wide fallback for per-user auth provider token context key

    values: string

  • FORGE_ENVIRONMENTdevelopmentEnvironment mode (development or production)

    Environment mode (development or production)

    values: development, production

  • FORGE_JWT_SECRETdev-insecure-change-meJWT secret for authentication

    JWT secret for authentication

    values: strong random value

  • FORGE_MCP_OAUTH_ENABLEDtrueEnable MCP OAuth 2.1

    Enable MCP OAuth 2.1

    values: true, false

  • FORGE_PUBLIC_BASE_URLhttp://localhost:8000Public base URL for OAuth redirects and webhooks

    Public base URL for OAuth redirects and webhooks

    values: URL

  • FORGE_PUBLIC_CONSOLE_URLhttp://localhost:3000Public console URL

    Public console URL

    values: URL

  • FORGE_REDIS_URLRedis connection URL

    Redis connection URL

    values: redis://...

  • FORGE_SERVICE_API_TOKENStatic bearer token for server-to-server calls

    Static bearer token for server-to-server calls

    values: token

  • FORGE_VECTOR_BACKENDVector store backend

    Vector store backend

    values: chroma, pgvector

  • NEXT_PUBLIC_FORGE_API_URLhttp://localhost:8000Frontend API URL

    Frontend API URL

    values: URL

  • OPENAI_API_KEYOpenAI API key

    OpenAI API key

    values: sk-...

  • POSTGRES_PASSWORDforge-dev-pwPostgreSQL password

    PostgreSQL password

    values: password

  • RES_OPTIONSno-aaaaDNS resolver options (IPv6 suppression)

    DNS resolver options (IPv6 suppression)

    values: no-aaaa, empty

More in Workflow Automation

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…