Documentation

Quickstart guides for building constraint solving applications with SolverForge.

Getting Started

Start Here

Prerequisites

  • Rust toolchain: Rust 1.95 or newer, installed via rustup.rs
  • Cargo: Included with the Rust toolchain
  • Familiarity with Rust basics (structs, traits, closures, derive macros)

Fastest Path to a Running App

With a coding agent:

cargo install solverforge-cli --locked
git clone https://github.com/SolverForge/solverforge-cli
cd solverforge-cli
./scripts/install-skill --agent claude     # or: --agent codex, --agent opencode

Restart the agent and describe your problem; the Agent Skill page has a prompt template.

By hand:

cargo install solverforge-cli --locked
solverforge new my-scheduler
cd my-scheduler
solverforge server

Open http://localhost:7860 to see the generated app shell.

Shaping the Model After Scaffolding

solverforge generate fact resource --field category:String --field load:i32
solverforge generate entity task --field label:String --field priority:i32
solverforge generate variable resource_idx --entity Task --kind scalar --range resources --allows-unassigned
solverforge generate data --size large

The CLI does not ask you to pick a modeling shape up front. Scalar variables, list variables, and models that contain both are introduced through generation after scaffolding. Constraints come next: the CLI quickstart generates two, replaces their placeholder rules, and solves the result.

Where to Read More