Define, deploy, and manage AI agents as versioned code. The Terraform for AI agents.
AI agents today are configured through UIs, scattered scripts, and undocumented tribal knowledge. When something breaks at 2am, nobody knows what changed. Forge fixes this by treating agent configuration as infrastructure: declared in code, validated before deploy, diffed against live state, and rolled back when needed.
npm (requires Node.js 20+):
npm install -g @openforge-ai/clinpx (no install, one-off execution):
npx @openforge-ai/cli validate -c forge.yamlHomebrew (macOS/Linux):
brew tap seanfraserio/tap
brew install forgeai# forge.yaml
version: "1"
agent:
name: support-triage
description: "Routes support tickets"
model:
provider: anthropic
name: claude-sonnet-4-5-20251001
temperature: 0.3
max_tokens: 2048
system_prompt:
inline: "You classify support tickets by urgency and route them."
memory:
type: noneforgeai validate # Check config syntax
forgeai diff # Preview changes
forgeai deploy --env dev # Deploy the agent- Agent as Code — Every agent property lives in a
forge.yamlfile under version control. - Idempotent deploys — Running
forgeai deploytwice with the same config is a no-op. - Plan/Apply cycle — Preview changes with
forgeai diff, then apply withforgeai deploy. - Environment overrides — Define dev, staging, and production variants in one file.
- MCP server management — Declare MCP tool servers alongside your agent config.
| Feature | OSS (MIT) | Enterprise (BUSL-1.1) |
|---|---|---|
| Config parsing + validation | ✓ | ✓ |
| Deploy / diff / rollback | ✓ | ✓ |
| Multi-environment overrides | ✓ | ✓ |
| MCP server management | ✓ | ✓ |
| Audit trail | — | ✓ |
| RBAC on deployments | — | ✓ |
| Gated environment promotion | — | ✓ |
| Secrets manager integration | — | ✓ |
| SSO / SAML | — | ✓ |
Forge is a CLI tool — no server required. See docs/getting-started.md for setup instructions.
- Fork the repository
- Create a feature branch
- Run
pnpm build && pnpm test && pnpm typecheckbefore submitting a PR - Open a pull request against
main
See ARCHITECTURE.md for architecture and conventions.
MIT — see LICENSE. Enterprise features are licensed under BUSL-1.1.