> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkestral.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# The Forge

> How the bundled local model executes code changes at $0 API cost.

**Forge** is Orkestral's bundled local code model. It runs entirely on your machine
(Qwen2.5-Coder via `node-llama-cpp`, GGUF) and executes the actual code changes,
so routine work costs **nothing** in API fees.

## The idea: premium plans, local executes

```mermaid theme={null}
flowchart TD
    P["Premium model"] -->|plans the change| F["Forge, runs locally"]
    F -->|applies the edit| D["Done, zero API cost"]
    F -.->|cannot apply| E["Escalate to premium, once"]
```

A premium model is great at *planning*. The Forge is great (and free) at *doing*.
Orkestral splits the job so you pay only for the thinking, not the typing.

## Fast Apply

The Forge pairs with Orkestral's own **Fast Apply**, a deterministic engine that
merges edits into your files:

<Steps>
  <Step title="Exact match">
    Applies the change where it matches exactly.
  </Step>

  <Step title="Whitespace-normalized">
    Retries ignoring indentation/whitespace differences.
  </Step>

  <Step title="Safe fuzzy">
    A single-match fuzzy pass, and it **rejects** anything ambiguous rather than
    writing the wrong content.
  </Step>
</Steps>

Fast Apply only touches the changed lines, it never rewrites the whole file, and it
needs no external service.

## \$0 by design

<Card title="Offline and free" icon="piggy-bank">
  Because the model is bundled and runs locally, executing changes uses no API
  credits and works with no internet connection. A cost view shows how many runs
  were resolved locally vs. escalated to a premium model.
</Card>

## When it escalates

If the Forge can't apply a change confidently, Orkestral escalates **once** to a
premium model as a fallback, so correctness is never sacrificed for cost.

<Note>
  The Forge model ships **inside the installer**, so it's ready on first launch with
  no extra download.
</Note>

## Greenfield projects

Setting up a new project's base (running `create-next-app`, installing dependencies) is not
file editing, it is running commands. Instead of the Forge writing a half-finished
`package.json`, setup for an empty project **escalates once to the premium**, which runs the
official scaffolder and confirms the base already builds. From there the Forge customizes on
top of it.

## See also

<CardGroup cols={2}>
  <Card title="The Capsule" icon="cube" href="/en/capsule">
    How the premium compiles the task into a unit the Forge executes with fidelity.
  </Card>

  <Card title="Proven delivery" icon="shield-check" href="/en/verified-delivery">
    The gates that confirm the Forge's change actually works.
  </Card>
</CardGroup>
