1,398
Stars
71
Forks
14
Issues

A Reliability Layer for Self-Hosted LLM Tool-Calling

Forge lifts an 8B local model to the top of its class on multi-step agentic workflows through guardrails and context management

Python 3.12+ MIT License ⭐ 1,398 Stars

Why Self-Hosted LLMs Need Guardrails

Unreliable Tool-Calling

Small local models often fail to correctly invoke tools or follow multi-step workflows, leading to inconsistent results and failed tasks.

Context Management Issues

Without proper context compaction and VRAM-aware budgets, conversations quickly become unstable and performance degrades.

Integration Complexity

Adding reliability to existing systems requires significant engineering effort and deep knowledge of LLM internals.

Three Ways to Use Forge

WorkflowRunner

Define tools, pick a backend, run structured agent loops. Forge manages the full lifecycle: system prompts, tool execution, context compaction, and guardrails. SlotWorker adds priority-queued access to a shared inference slot.

Guardrails Middleware

Use forge's reliability stack as composable middleware inside your own orchestration loop. You control the loop; forge validates responses, rescues malformed tool calls, and enforces required steps.

Proxy Server

Drop-in OpenAI-compatible proxy that sits between any client and a local model server. Applies guardrails transparently — the client thinks it's talking to a smarter model.

How Forge Works

1

Define Tools

Specify your tools with Pydantic models and implementations

2

Choose Backend

Select Ollama, llama-server, Llamafile, or Anthropic

3

Run Workflow

Forge handles the agentic loop with guardrails

4

Get Results

Reliable tool execution with automatic recovery

Performance Metrics

86.5%
Success Rate on 26-Scenario Eval Suite
76%
Success Rate on Hardest Tier
26
Test Scenarios
4
Supported Backends

Start Building with Today

Join 1,398+ developers using Forge to create reliable self-hosted LLM applications