# InsForge

> An all-in-one backend — Postgres, auth, storage, edge functions and a model gateway — that a coding agent operates over MCP

- Category: AI Coding / AI SDLC Automation
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/InsForge/InsForge
- Website: https://insforge.dev
- Canonical page: https://ai-tldr.dev/tools/insforge/
- Updated: 2026-05-06

## In short

InsForge is an open-source backend platform built for coding agents rather than for humans clicking through a dashboard. It sits in the AI SDLC Automation category of the AI Coding tools and is open-source, written in TypeScript and licensed Apache-2.0. To get started: generate the stack files and secrets.

## Overview

InsForge is an open-source backend platform built for coding agents rather than for humans clicking through a dashboard. It bundles the pieces an app normally needs — a Postgres database, user authentication and sessions, S3-compatible file storage, serverless edge functions, container compute and site deployment — behind one self-hosted Docker Compose stack, plus a Model Gateway that exposes an OpenAI-compatible API across several LLM providers.

Agents reach the platform through one of two interfaces. The MCP server, available self-hosted and in the cloud, exposes InsForge's operations as tools any MCP-compatible agent can call. The cloud service also ships a CLI paired with Skills that agents invoke from the terminal. Either way the agent can read backend context — documentation, schemas, deployed-function metadata, bucket contents, auth configuration and runtime logs — and then configure the primitives directly: run database migrations, deploy edge functions, create buckets, wire up auth providers.

That read-then-configure loop is the point. Because the agent can inspect what it built and read the logs when something breaks, it can debug its own backend instead of handing the developer a stack trace. The project is Apache-2.0 and runs entirely on your own machine if you want it to; a hosted tier at insforge.dev covers the CLI, Skills and the private-preview Compute service.

## What it does

- Postgres database with agent-run migrations, plus S3-compatible storage and an optional S3 gateway at /storage/v1/s3
- Built-in authentication: user management, sessions and pluggable auth providers
- Edge Functions for serverless code, Compute (private preview) for long-running container services, and site build + deployment
- Model Gateway — one OpenAI-compatible API across multiple LLM providers
- MCP server (self-hosted and cloud) exposing every backend operation as an agent tool, plus a cloud CLI with Skills
- Agent-readable context: docs, schemas, resource metadata and runtime logs, so the agent can verify and debug what it deployed
- Multi-project self-hosting — one directory and one COMPOSE_PROJECT_NAME per instance, each with its own containers, volumes and secrets

## Getting started

The fastest path is the hosted service at insforge.dev. To self-host you need Docker with Compose v2; the commands below are the README's quickstart.

1. Generate the stack files and secrets

   The setup script fetches what the stack reads and writes JWT_SECRET, ENCRYPTION_KEY, POSTGRES_PASSWORD, ROOT_ADMIN_PASSWORD and the two access keys into a mode-600 .env. It starts nothing.

```bash
curl -fsSL https://raw.githubusercontent.com/InsForge/InsForge/main/deploy/setup.sh | sh -s ~/insforge
```

2. Set the browser-facing URLs and bring it up

   Edit API_BASE_URL and VITE_API_BASE_URL — these are the URLs browsers will use. The generated .env sets COMPOSE_FILE, so plain docker compose commands work from that directory.

```bash
cd ~/insforge
$EDITOR .env
docker compose up -d
```

3. Connect your agent to the InsForge MCP server

   Open the dashboard at http://localhost:7130 and follow the steps it shows to register the MCP server with your coding agent.

```bash
open http://localhost:7130
```

4. Verify the connection from the agent

   Send this prompt to the agent; a working MCP connection returns the InsForge instructions.

```text
I'm using InsForge as my backend platform, call InsForge MCP's fetch-docs tool to learn about InsForge instructions.
```

5. Run a second project without a port clash

   Give each project its own directory, COMPOSE_PROJECT_NAME and ports — two directories sharing a project name share containers.

```bash
curl -fsSL https://raw.githubusercontent.com/InsForge/InsForge/main/deploy/setup.sh | sh -s ~/project2
# in ~/project2/.env:
#   COMPOSE_PROJECT_NAME=project2
#   POSTGRES_PORT=5442
#   APP_PORT=7230
cd ~/project2 && docker compose up -d
```

## When to use it

- Give a coding agent a real backend to ship against instead of mocking auth, storage and a database
- Self-host the whole stack — database, auth, storage, functions and the model gateway — on one machine you control
- Let the agent read runtime logs and schemas so it can debug the backend it just deployed
- Run several isolated app backends side by side, one Compose project per app

## Version history

- 2026-05-06 v2.1.0: Added Compute services for long-running containers, realtime presence and a Stripe integration to the open-source backend platform.
