Skip to content
reliant-labsPublic

About

Forge is an open-source framework and CLI that puts guardrails on any app and deploys it with no account: npx -y @reliantlabs/forge@latest env deploy prod --claimable

Topics

Resources

Contributing

Security policy

Stars

11 stars

Watchers

0 watching

Forks

Latest commit

 

History

3,199 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forge

Reliant Forge: deploy what your coding agent built, and let it prove the release works.

One command deploys a Vite site, a statically exported Next.js site, or any app with a Dockerfile, with a managed Postgres when the app uses one. Sign in free, and your agent reads the release's traces, errors and pass/fail verdict through the same CLI, or the verdict, errors and logs through Forge's MCP server.

npx -y @reliantlabs/forge@latest env deploy prod --claimable

Run it in your app's directory. No account is needed: it prints a live URL and a claim link. The deploy goes offline after 72 hours unless someone opens the link, which signs them up free and makes the deploy theirs, so treat the link like a password. Until it is claimed, a service (not a static site) has no outbound internet. Watching the release afterwards, its traces, errors and forge obs check verdict, needs that free sign-in: there is no anonymous monitoring. The limits: Deploying with no account.

  1. One command deploys your app. A Vite or static Next.js site, or a Dockerfile app in any language, is adopted where it stands, leaving its own files alone, and each release is built once and promoted by digest. Adopt it piece by piece · Build once, promote
  2. Every release is judged by its own telemetry. forge obs check compares the window after a promotion with the one before it, says PASS, FAIL or INCONCLUSIVE, and ties new errors to the release that caused them. How releases are judged
  3. Built for agents. forge obs check --json prints the verdict as one document, and its exit code tells pass (0) from regressed (1) and not proven good (2). forge mcp serves deploy, lint and monitoring tools over MCP, and the skills an agent loads ship inside the binary. Built for your agent · MCP server

Website · Live demo · Docs · Reliant · Slack

Latest release License: Apache-2.0 npm

What Forge is

Forge is an open-source (Apache-2.0) framework, CLI and MCP server that supercharges any agent harness: Claude Code, Codex, Cursor, a harness you wrote, or CI. It scaffolds Go services, React frontends and SQL migrations into the right places, lints for your architecture and for unsafe migrations, tests against a real Postgres, and builds each release once and promotes it by digest. Use it piece by piece in any repo, in any language, with no rewrite.

Most teams build the production system (dev environments, tests, secrets, multiple environments, releases, observability and hosting) in year two, under deadline, on top of a codebase that wasn't shaped for it. With Forge the first commit already has it, wired into files you own and can change.

Try it in the browser first: the live demo.

Deploy with your agent

# No account: a live URL plus a 72-hour claim link
npx -y @reliantlabs/forge@latest env deploy prod --claimable

# Give your agent the MCP server; its deploy_claimable tool does the same
claude mcp add forge -- npx -y @reliantlabs/forge mcp   # Claude Code
codex mcp add forge -- npx -y @reliantlabs/forge mcp    # Codex
# Cursor, VS Code and Gemini CLI: see Use as an MCP server below
# Or the reliant-forge plugin, the MCP server plus a deploy skill: see The reliant-forge plugin below

# Let it search the docs too: a public, read-only MCP server, no account
claude mcp add --transport http reliant-docs https://docs.reliantlabs.io/mcp

# Not sure where to start? forge start prints the one next command for this directory
forge start

Then ask your agent:

Deploy this app with Reliant Forge. Run
`npx -y @reliantlabs/forge@latest env deploy prod --claimable` (or call the forge
MCP server's deploy_claimable tool), then give me the live URL and the claim link.

The claim link is good for 72 hours; treat it like a password. Opening it signs you up free and makes the deploy yours. It fits one static site, or one service with one database: Deploying with no account.

Install forge, and the other ways to run it: Install.

Why Forge, in full

Because Forge knows your services, RPCs, schema, environments and releases, its tools share one model of the app instead of being glued together:

  1. Forge knows your whole app, so its tools share one model of it
  2. Every RPC traced, measured and logged with no instrumentation code
  3. Each release judged by its own telemetry and tied to the errors it causes
  4. Build once and promote the same bytes from staging to prod
  5. Database migrations checked against the running release before they ship
  6. Lint that knows your architecture, not just your syntax
  7. Secure by default, with auth that fails closed and secrets out of git
  8. Built for AI agents, with a project that explains itself and gates that check the work
  9. Tests against a real Postgres that still run in the fast tier
  10. Production from the first commit, with the whole stack on your laptop
  11. Adopt it piece by piece in any repo, and keep the tools you already run
  12. Reliant hosting wires Postgres, secrets, telemetry and domains from your declarations (hosted)

Each reason, how it works and the checked benefits that back it: docs/why-forge.md. Every benefit: docs/benefits.md. From a terminal or an agent: forge why.

See what happened after deployment

Forge deploys and operates your app without requiring Reliant's coding harness. Keep your editor or agent; follow an issue into its trace and logs.

These are screenshots of the public demo: read-only sample data, not live production telemetry. The prod label is the sample app's environment, not a claim about customer traffic.

Demo issue attributes and stack: HTTP 504, two payment attempts and the chargeWithRetry frame

1. Inspect the issue. The demo's payment timeout shows the failed request's attributes and stack, including the retry path.

Demo trace waterfall with the failed payments.Charge span selected and its retry event visible

2. Follow its trace. Open the linked request to inspect the payment attempts alongside the database and worker spans.

Demo API logs filtered to that trace: request started, payment retry warning and timeout error

3. Read the matching logs. Filter to the same trace and API service to see the retry warning and timeout error in context.

Capture sources and cropping notes.

Quick start

# Install (macOS / Linux; Windows, Homebrew, npm and go install: see Install below)
curl -fsSL https://raw.githubusercontent.com/reliant-labs/forge/main/install.sh | sh

forge project new my-app && cd my-app
forge scaffold service billing
forge generate
forge env up dev

That last command brings up Postgres, runs your migrations, and starts your services and frontends, then prints a table of URLs and a log file for each process, including the HyperDX UI, already receiving the app's traces, metrics and logs. With a frontend (forge project new my-app --frontend web) it also starts a local identity provider, so the app's own sign-in page works on the first run. No signup, no external accounts, no cloud project, no cluster.

Add tables (a // forge:entity message and forge scaffold) and a fresh database is seeded with foreign-key-coherent rows that satisfy every constraint your schema declares, so the app boots alive instead of empty.

When you want it online, forge env deploy staging builds a release once and deploys it. A new project's staging and prod are bound to Reliant hosting; the same environments deploy to a Kubernetes cluster you run, or as host processes, by changing where each workload is bound. Before you call a change done: forge generate && forge lint && go build ./... && task test.

Everything included

What a new app would otherwise stitch together from separate tools:

What you get
Build One marker, a whole entity · Proto in, full stack out
Data SQL migrations are the schema · Migration safety checks
Test Real Postgres in every test · A generated mock per interface
Dev The whole stack, one command · A dev stack per worktree
Guardrails Bug-class linters, one verdict · The whole CI gate, locally
Security Auth that fails closed · Errors never leak internals · Secrets never in git · Dependency and image scanning · SBOM and scan per release · Signed images and provenance
Ship Build once, promote by digest · Deploy anywhere, declare once
Host Managed Postgres · Static hosting with a CDN · Custom domains with automatic HTTPS
Run Observability stack included · Production alerts out of the box · Prove each deploy is good
Agents Skills that match your forge · Built-in MCP server

Every benefit, with how to use it and the code that backs it: docs/benefits.md

Add Reliant and the list grows an agent harness, cloud dev machines, AI code and security review, and an on-call agent. Forge doesn't need any of them.

Built for your agent

When an agent writes most of the code, the bottleneck stops being how fast you can write it and becomes knowing whether it's right. Forge is one binary on your PATH with no plugin, editor extension or server, so anything that can run a shell command can drive it: Claude Code, Codex, Cursor, Copilot, Gemini CLI, Aider, a harness you wrote, or a CI job. A person at a terminal uses the same commands, so there is nothing an agent can do that you can't check by hand.

  • Skills live in the binary. forge skill search <topic> and forge skill load <name> print the playbook for an area, about 150 of them, matched to the installed version. Nothing to paste into a prompt, nothing to drift.
  • It explains itself. forge start prints the one command for the directory you are in (deploy the app already there, or create one), and forge start app the path from an empty directory to authored protos. forge project capabilities --json lists every verb, lint analyzer and marker, enumerated from the binary, so it can't go stale.
  • Scaffolding and lints are guardrails against AI slop. forge scaffold lands each service, rpc, worker or entity in the right place, already wired. forge lint rejects what review misses, names the file, line, rule and fix, and forge lint --quiet ends with the verdict, so the agent reads one line to know whether it is done.
  • It debugs from real telemetry. forge obs status, forge obs issues and forge obs trace read a running app's logs, traces, errors and alerts, so a fix starts from what happened rather than a guess.
  • Checks never fake a pass. A check that cannot obtain its facts reports UNDETERMINED, never green, never skipped.
  • The project tells the agent all of this. forge project new writes AGENTS.md and a pointer for the agent it detects (Claude Code, Cursor, Copilot). Any MCP-capable harness can run forge mcp instead: see Use as an MCP server.

To use Forge from any agent, put this in the prompt or its instructions file:

Use Forge (github.com/reliant-labs/forge) for this project.
Run `forge start` first and follow it. Load depth with
`forge skill search <topic>` and `forge skill load <name>`.
A change is done when `forge lint`, `go build ./...` and `task test` pass.

Use as an MCP server

Add forge to Cursor Install forge in VS Code

forge mcp serves forge over the Model Context Protocol on stdio. It is in the official MCP registry as io.github.reliant-labs/forge, and npx runs it with nothing to install, no API key and no config. For Claude Code:

claude mcp add forge -- npx -y @reliantlabs/forge mcp

Or commit a .mcp.json to the project (Cursor reads the same shape from .cursor/mcp.json):

{
  "mcpServers": {
    "forge": {
      "command": "npx",
      "args": ["-y", "@reliantlabs/forge", "mcp"]
    }
  }
}

For Codex (CLI, IDE extension and desktop app share the config):

codex mcp add forge -- npx -y @reliantlabs/forge mcp

or in ~/.codex/config.toml (or a trusted project's .codex/config.toml):

[mcp_servers.forge]
command = "npx"
args = ["-y", "@reliantlabs/forge", "mcp"]

For Gemini CLI, this repository is an extension (gemini-extension.json):

gemini extensions install https://github.com/reliant-labs/forge

deploy_claimable puts a Vite app or a Next.js static export live with no account and returns its URL plus a claim link that is good for 72 hours. The other tools introspect the project, read the skill catalog, and run lint and generate. Every tool, and the config for Codex: docs/mcp.md.

The reliant-forge plugin

plugins/reliant-forge bundles the MCP server with a deploy skill, so "deploy this" uses Forge: a claimable deploy with no account, or a deploy to your account followed by forge obs check. This repository is its marketplace. In Claude Code:

/plugin marketplace add reliant-labs/forge
/plugin install reliant-forge@reliant-labs

In Codex, run codex plugin marketplace add reliant-labs/forge, then install Reliant Forge from the plugin directory. Cursor reads the same plugin (.cursor-plugin/marketplace.json).

Opinionated, never a wall

The opinions come from a principal engineer with more than a decade of building reliable systems, and several exist because the unsafe version caused a real incident:

  • An error message once shipped a database password to an unauthenticated caller. Now svcerr.Wrap replaces unrecognized errors with internal server error and keeps the original server-side.
  • Images built on an arm64 laptop once got pushed to amd64 nodes. Now cloud targets require an explicit platform, and it fails at author time.
  • Replicas once half-migrated a schema. Now migrations apply from an initContainer under a Postgres advisory lock, and a failed one stalls the rollout with the old pods still serving.

Every default is overridable and every generated file has an owned seam beside it:

  • An ORM you can drop out of to raw SQL.
  • A middleware chain in a serve.go you own and can reorder.
  • pkg/ as a library you import, not a framework you live inside.
  • Each workload binds to a host process, Compose, a cluster you operate or Reliant hosting, in the same KCL. It deploys code it never compiled, in any language: our own control plane builds three services out of a separate repository that Forge never compiles.

More in docs/concepts.md.

Who this isn't for

  • You don't want generated code in your repo. Forge writes real files and regenerates them; if you'd rather hand-author everything, the ownership model is overhead.
  • You need a REST-first public API. Connect RPC is the native surface; REST URLs are available via Vanguard, but a hand-shaped OpenAPI contract works against the grain.
  • Postgres isn't your database. MySQL, SQLite and non-relational stores aren't supported.
  • Your backend isn't a container. A service deploys as an image (static sites are the exception: they ship as files).
  • You want a framework you'll outgrow and replace. Forge holds structure for the life of the project; for a one-time scaffold, use a template repo.

Install

All of them give you a single forge binary; none needs a C toolchain.

# macOS / Linux (amd64, arm64): no sudo, no prompts, checks the release's sha256
curl -fsSL https://raw.githubusercontent.com/reliant-labs/forge/main/install.sh | sh
# Windows (amd64, arm64)
irm https://raw.githubusercontent.com/reliant-labs/forge/main/install.ps1 | iex
# Homebrew (macOS and Linux)
brew install reliant-labs/reliant/forge

# npm / npx: downloads the same verified binary on first run
npx @reliantlabs/forge version

# Go toolchain
go install github.com/reliant-labs/forge/cmd/forge@latest

To install forge's agent skill with skills.sh: npx skills add reliant-labs/forge --skill forge

Pinning a version for CI, verifying a release's signature, and building from a clone: docs/install.md.

Learn more

License

Copyright 2025-2026 Reliant Labs, Inc. Licensed under the Apache License, Version 2.0; see also NOTICE. That covers all of forge: the CLI, the github.com/reliant-labs/forge/pkg/... libraries your services import, the KCL modules, and the @reliantlabs/forge-web-runtime npm package your frontends bundle.

Earlier versions. Forge versions published before this change were released under the Business Source License 1.1. Reliant Labs, Inc., as their copyright holder, also licenses every one of those versions — every commit of this repository, tagged or not, and every published version of @reliantlabs/forge-web-runtime — under the Apache License, Version 2.0. You may use any of them under either license.

What forge writes into your project is yours. Generated code, scaffolded files, and the components forge copies into your frontends become part of your project. Where any of that output reproduces or derives from forge's own templates or component library, Reliant Labs, Inc. grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable license to use, reproduce, modify, sublicense and distribute it under terms of your choice, without any obligation to carry forge's license text, NOTICE or other attribution. This grant covers that output only. Forge itself, including the libraries and packages your project depends on, stays under the Apache License 2.0.

About

Forge is an open-source framework and CLI that puts guardrails on any app and deploys it with no account: npx -y @reliantlabs/forge@latest env deploy prod --claimable

Topics

Resources

Contributing

Security policy

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages