MCPcopy Create free account
hub / github.com/magnitudedev/magnitude

github.com/magnitudedev/magnitude @0.0.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.11 ↗ · + Follow
11,717 symbols 37,322 edges 1,873 files ⚖ custom 261 documented · 2% updated 3d ago@magnitudedev/cli@0.0.11 · 2026-09-02★ 2,66914 open issues

Browse by type

Functions 8,501 Types & classes 3,215 Endpoints 1
What it actually does AI analysis from the code graph
loading…
README
<img alt="Magnitude icon" src="https://github.com/magnitudedev/magnitude/raw/0.0.11/assets/brand/icon-light.svg" width="120">

Magnitude

Easy local inference for agents

Documentation Discord Follow Magnitude on Twitter GitHub Repo stars npm version

An open source inference server that profiles your hardware, recommends the best local models for it, then downloads, tunes, and runs them. Use the built-in harness or connect OpenCode, Pi, Hermes, or whatever you already use.

⭐ Help us reach more developers and grow the Magnitude community. Star this repo!

Magnitude works with Pi, OpenCode, Hermes, OpenClaw, Codex, Claude Code, Oh My Pi, and Cline, and leading local models

Get started

npm i -g @magnitudedev/cli && magnitude setup

Magnitude profiles your machine and shows you the best local models for it. Choose one and Magnitude downloads it, then connects it to your harness of choice.

Magnitude supports macOS and Linux. Windows is supported through WSL.

Why Magnitude?

  • Set up in one command: pick a recommended model and it launches your harness
  • Knows your hardware: profiles your chip, memory, and bandwidth
  • Recommends what fits: the best models for your machine, with estimated tok/s
  • Tuned end to end: speculative decoding, concurrency, all set for your machine
  • Models on demand: loaded on request, unloaded when idle or memory fills
  • Fully private and offline: models, prompts, and files stay on your machine
  • Free to run: no token costs, API keys, or rate limits
  • Open source: Apache 2.0, yours to modify

FAQ

What is Magnitude?

An open source inference server your agent sets up and operates through the Magnitude CLI. It profiles your hardware, recommends the best models for it, and runs them tuned to your machine.

What hardware do I need?

There's no fixed minimum. Magnitude profiles your hardware and recommends the best models for your machine. More memory lets you run larger models.

Why not just have my agent set up Ollama?

Your agent can install Ollama and pull a model, but it's guessing. It doesn't know your hardware, which quant fits, or how fast it'll run. Magnitude gives it a curated catalog with recommendations computed for your machine. Setup is agent-first, through a headless CLI that connects the model to your harness. Inference is built for agents. Models load just in time, unload when idle or memory gets tight, and concurrency is handled for you.

Which harnesses work with it?

Pi, OpenCode, Hermes, OpenClaw, Codex, Claude Code, Oh My Pi, and Cline. During setup, your agent connects your harness to the model you pick. Or use Magnitude's built-in harness.

Do I need to manage Magnitude after setup?

No. It runs in the background, loads models when your agent needs them, and unloads them when idle or memory gets tight. Your agent can install or switch models through the Magnitude CLI anytime.

Does my data go to the cloud?

No. Prompts, files, and models stay on your machine.

Can it run completely offline?

Yes. Once Magnitude and a model are downloaded, no internet connection needed.

Can I use models outside the catalog?

Yes. You can download compatible GGUF models from Hugging Face and use them in Magnitude.

Learn more

License

Magnitude is licensed under the Apache License 2.0.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 7,382
Class 1,568
Interface 1,371
Method 1,119
Enum 276
Route 1

Languages

TypeScript70%
Rust28%
Python1%
C++1%

Modules by API surface

inference/crates/icn-server/src/main.rs290 symbols
inference/crates/icn-api/src/lib.rs233 symbols
inference/crates/icn-engine/src/parity_probe.rs158 symbols
inference/crates/icn-hardware/src/lib.rs149 symbols
inference/crates/icn-engine/src/lib.rs137 symbols
inference/crates/icn-contracts/src/inventory.rs135 symbols
inference/crates/icn-contracts/src/models.rs125 symbols
inference/crates/icn-models/src/inventory.rs94 symbols
inference/crates/icn-parity/src/runner.rs93 symbols
inference/crates/icn-api/src/protocols/chat.rs87 symbols
inference/crates/icn-models/src/download.rs86 symbols
inference/crates/icn-models/src/preview.rs85 symbols

Dependencies from manifests, versioned

@base-ui/react1.7.0 · 1×
@changesets/changelog-github0.6.0 · 1×
@changesets/cli2.30.0 · 1×
@commander-js/extra-typings14.0.0 · 1×
@effect-atom/atom0.5.3 · 1×
@effect-atom/atom-react0.5.0 · 1×
@effect/cli0.75.2 · 1×
@effect/experimental0.60.0 · 1×
@effect/language-service0.84.1 · 1×
@effect/platform0.96.0 · 1×
@effect/platform-bun0.90.0 · 1×

Datastores touched

dbDatabase · 1 repos

For agents

$ claude mcp add magnitude \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page