Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>R1 Hardware EngineNew to Visual Studio Code? Get it now.
R1 Hardware Engine

R1 Hardware Engine

R1 Hardware

| (0) | Free
Free, open-source hardware-fit prediction for local LLMs — tells you before you load a model whether it'll run, and can actually gate execution for real via Ollama.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

R1 Hardware Engine

Free, open-source, local-first hardware orchestration for running LLMs safely on your own machine.

Version License: GPL-3.0 Open VSX VS Code Marketplace Website

R1 Hardware Engine predicts whether a local LLM will actually fit and run on your hardware before you load it. It reads your GPU VRAM and system memory, estimates fit across model sizes and quantization tiers, and returns a clear verdict — Optimal, Degraded, or Non-Viable — so you stop guessing and stop loading models that won't fit. Everything runs on-device.

It also does something most hardware-fit tools don't: for models runnable through Ollama, it can actually gate execution for real. If the prediction is DENY, the MCP tool that launches the model simply never calls the launcher — there's no separate path an agent (or you) can take to bypass the check. For anything outside that (a different backend, or a model with no known Ollama mapping), it still gives you the same accurate prediction; you just apply it yourself.


Why

Picking a local model is a guessing game: will the 32B fit at Q4? What context length before it OOMs? R1 Hardware Engine turns that guess into a computed answer, and exposes it to AI agents over MCP two ways: a read-only prediction, and — for Ollama — a tool that actually won't launch anything it predicts won't fit your machine.

Core capabilities

  • Hardware autodetection — GPU VRAM and system memory analysis (CUDA via nvidia-smi, Apple Silicon unified memory via system_profiler).
  • Compatibility matrix — fit analysis across model sizes and quantization tiers.
  • Performance tiering — predicts Optimal / Degraded / Non-Viable execution before load, with a KV-cache-aware VRAM formula.
  • VRAM heatmap — sidebar dashboard visualizing current usage and upgrade impact.
  • Agent integration (MCP) — exposes two tools to MCP-aware agents:
    • check_hardware_fit — read-only prediction (ALLOW / DOWNGRADED / DENY). Never executes anything.
    • run_local_model — checks fit and, if safe, actually launches the model via a locally running Ollama instance using the enforced config. On DENY, it refuses to launch anything — this is the one that's a real hard gate, not advisory.

Privacy

R1 Hardware Engine is built local-first:

  • No telemetry is collected or transmitted. There are no analytics endpoints, local or remote.
  • Code and weights never leave your machine. Hardware metrics are read locally; the only network call this extension makes is to a locally running Ollama instance (127.0.0.1:11434) when you actually launch a model — that never leaves the machine either.
  • Network access otherwise happens only on explicit actions you take — like opening an external link.

See SECURITY.md for the full trust model and how to report issues.

Install

Install from the VS Code Marketplace or Open VSX (Cursor, VSCodium, Windsurf and other forks), or build from source (below).

After install, open the R1 Hardware Engine icon in the Activity Bar, or run R1 Hardware: Scan Hardware from the Command Palette (Ctrl/Cmd+Shift+P).

Commands

Command What it does
R1 Hardware: Scan Hardware Detect GPU VRAM and system memory
R1 Hardware: Check Installed Ollama Models Judge the models you already have in Ollama, including ones outside the library (estimated from the model's own metadata)
R1 Hardware: Measure vs Predicted Run an installed model, measure real tokens/sec and VRAM use, and compare with the prediction. Copy the result into a GitHub issue to help calibrate the estimates
R1 Hardware: Set Up 4-bit KV Cache Check how your Ollama server is configured and copy the exact commands to enable a 4-bit KV cache
R1 Hardware: What Can I Run? List every model in the library that fits this machine, largest first, plus the ones that can run split across GPU and system RAM, with an estimated speed and ready-made llama.cpp flags
R1 Hardware: Validate & Run Local Model Evaluate a model request against live hardware limits, and — if safe and Ollama is running — actually launch it
R1 Hardware: Open Reasoning Open the reasoning artifact view
R1 Hardware: Export Blessed Profile Export a hardware-safe model profile

Model library

R1 Hardware Engine is fully free — every model in the library is unlocked for everyone, no account or license key required:

  • DeepSeek R1 family (6 models): R1 1.5B, 7B, 14B, 32B, 70B, 671B MoE.
  • Meta Llama 4 / 3: Scout 17B, Maverick 17B MoE, 3.3 70B, 3.2 3B, 3.1 8B and 70B.
  • Alibaba Qwen3: 8B, 14B, 32B, 235B MoE.
  • Alibaba Qwen3.5 / 3.6 / 3.8: 3.5 in 2B to 122B MoE, 3.6 in 27B and 35B MoE, 3.8 in 27B.
  • Alibaba Qwen3-Coder: 30B MoE, 480B MoE.
  • OpenAI gpt-oss: 20B MoE, 120B MoE.
  • Mistral AI: 7B, Small 24B.
  • Microsoft Phi-4: 14B, Mini 3.8B.
  • Google Gemma 3 / 4: Gemma 3 in 4B, 12B and 27B; Gemma 4 in E2B, E4B, 12B, 26B MoE and 31B.

Plus 4-bit KV-cache quantization, multi-GPU load balancing, and advanced context-reduction strategies — all included.

Real, actually-gated execution (not just prediction) currently covers the subset of this library with a known Ollama tag — see ollamaModelMap.ts for the current mapping. Everything else still gets an accurate hardware-fit prediction; you apply it with whatever backend you use.

Build from source

Requirements: Node.js 18+, VS Code 1.75+.

git clone https://github.com/RobDBatt/r1-hardware-engine.git
cd r1-hardware-engine
npm install
npm run typecheck     # type-check
npm run compile       # bundle extension output
npm test              # run the authority engine + enforcement self-tests
npm run vsix          # package a local .vsix

Open the folder in VS Code and press F5 to launch an Extension Development Host with the extension loaded.

Project structure

src/
  extension.ts     Activation & command wiring
  mcp/             MCP server (check_hardware_fit, run_local_model tools)
  utils/           Hardware scanner, authority engine, model matrix, Ollama client/launcher
  views/           Sidebar dashboard, authority log, reasoning artifact
  types/           Shared types
  dev/             Internal self-tests

The decision path is hardwareScanner → modelMatrix → authorityEngine → requestExecutionAuthority. The same evaluateAuthorityDecision backs both the dashboard and the MCP server. For real execution, mcp/runLocalModelGate.ts is the actual hard gate: a DENY decision there never reaches modelLauncher.ts, which is the only code path that calls out to Ollama. npm test covers that guarantee directly (gateTest.ts): with Ollama's client replaced by a recorder, a DENY, an unknown model, and every model on a card too small for it never contact Ollama, and a source scan fails if any new code path reaches the launcher.

Contributing

Contributions are welcome — especially hardware performance reports that help tune the compatibility heuristics. See CONTRIBUTING.md and the issue templates. Please also read the Code of Conduct.

Links

VS Code Marketplace · Open VSX · r1hardware.com · Issues · Security

License

GPL-3.0 © 2026 Rob Batt (R1Hardware.com)

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft