OpenSource-Hub
F

forge

SHA-256
2.2k stars·AI Productivity·SHA-256 checksum verified

A Python framework for self-hosted LLM tool-calling and multi-step agentic workflows, offering guardrails, proxy mode, and WorkflowRunner.

Smart Download

Download Download Version

v0.9.2 · 19.4 MB

A reliability layer for self-hosted LLM tool-calling that improves accuracy dramatically and works as a drop-in proxy.

Core Features

  • Three usage modes: proxy server, WorkflowRunner, and guardrails middleware
  • Automatic rescue parsing, retry nudges, and response validation with zero required steps
  • Drop-in proxy speaking both OpenAI chat-completions and Anthropic Messages APIs
  • Supports Ollama, llama-server, Llamafile, vLLM, and Anthropic backends

What It Can't Do

  • Not an agent orchestrator—does not handle multi-agent graphs or cross-agent coordination
  • Not a coding harness—use domain-specific agent frameworks, and let forge be the reliability proxy beneath
  • Anthropic benchmark numbers are from v0.6.0; not re-run for v0.7.0 due to cost
  • Local model quality depends on hardware and model choice; consult the model guide for best results

Use Cases

  • Enhance existing harnesses like opencode, Continue, aider, or Claude Code with local model guardrails
  • Build reliable multi-step tool-calling workflows with structured context management

Detailed Introduction

Forge is a Python framework that makes self-hosted LLM tool-calling and multi-step agentic workflows reliable. You give it a set of tools, and the model calls them in any order; structure is opt-in via required_steps, prerequisites, and terminal_tool. Its guardrails—rescue parsing, retry nudges, response validation—work even with zero required steps. Unlike agent orchestrators or coding harnesses, Forge sits inside one agentic loop, making tool calls rock-solid. It can be used as a drop-in proxy server (OpenAI and Anthropic compatible) for existing harnesses like opencode or Claude Code, as a WorkflowRunner for building directly, or as guardrails middleware inside your own loop. Supports OpenAI-compatible endpoints, Ollama, llama-server, Llamafile, vLLM, and Anthropic backends. Compared to generic agent frameworks, Forge focuses purely on reliability, delivering measurable accuracy gains on 8B local models and even improving frontier models like Claude Sonnet 4.6.

Tags

LLMtool-callingagentguardrailsproxyself-hosted

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Install via pip: pip install forge-guardrails

4

Start a local LLM backend (llama-server, Ollama, etc.)

5

Run the proxy: python -m forge.proxy --backend-url http://localhost:8080 --port 8081

Install Guide
  1. Install via pip: pip install forge-guardrails
  2. Start a local LLM backend (llama-server, Ollama, etc.)
  3. Run the proxy: python -m forge.proxy --backend-url http://localhost:8080 --port 8081
File Integrity

SHA-256 checksum verified

Checksum extracted from GitHub official Release page

SHA256 Checksum

c49654ccac62c51335e501f3a491d8f39007c8c25790b7a85ce0f251a5a1d252

This checksum is extracted from the GitHub Release page. Verify file integrity after download.

All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.

Open Source Transparency

View GitHub Source
Environment Guide

Uninstall Info

If installed via pip, run 'pip uninstall forge-guardrails'. For the standalone proxy, delete the binary and configuration directory (e.g., ~/.forge-proxy).

No Extra Dependencies

Ready to use after download. No additional runtime required.

Project Info
LicenseMIT
Last Updated2026-08-20T13:06:39Z
GitHub RepositoryOfficial Website

Similar Projects