hardrev

Set up hardware-studio

One script installs KiCad, SolidCraft, the solvers, Claude Code and hr.

hardware-studio sets up a Linux or macOS machine so Claude Code can design hardware on it. Boards go in KiCad, mechanical parts in SolidCraft and firmware in PlatformIO, and a set of simulators checks the results. Projects are versioned with hr.

What you need

  • Linux or a Mac. On Linux it's been tested on Arch, Ubuntu 24.04 and Fedora 43. A Mac needs Apple silicon and macOS 13 or newer, because some of the tools, CoACD for one, have no Intel build.
  • About 10 GB of disk and 20 minutes. KiCad and the solvers take most of both.
  • A Claude account for Claude Code, and a hardrev.dev account for hr.
  • sudo, to install KiCad and Docker as system packages. The script asks before it uses it.

1. Install

Run it as yourself, without sudo in front:

curl -fsSL https://hardrev.dev/studio.sh | sh

Here's what it installs, and where:

WhatWhere
Claude Code and hr, if missingtheir own install scripts
KiCad 10your system's package manager or Homebrew, else Flatpak
SolidCraft, the KiCad MCP server, build123d, trimesh, CoACD, MuJoCo, PlatformIO~/.local/share/hardware-studio, at exact versions with checked hashes
ngspice, gmsh, CalculiX, OpenFOAM, openEMS, Renode, FreeRoutingone container image
the hstudio command~/.local/bin

hardrev.dev pins one version of hardware-studio, and the script checks the download's SHA-256 before it runs anything inside. To update or repair, run the same command again. Steps that are already done get skipped.

2. Check it

hstudio doctor

doctor runs each tool and starts each MCP server, printing one line per item. You want ok everywhere. miss marks something optional, like the solvers. A FAIL needs fixing, and its line says what broke. If your shell can't find hstudio at all, ~/.local/bin isn't on your PATH yet, so add it the way the installer said and open a new terminal.

3. Sign in and set your name

hr login
hr config set --global user.name "Your Name"
hr config set --global user.email you@example.com

Set up hr explains these. If you've never used Claude Code on this machine, run claude once to sign in.

Options

Options go after sh -s --. To skip the solvers, for example:

curl -fsSL https://hardrev.dev/studio.sh | sh -s -- --no-solvers
--clone <url>afterwards, clone a hardrev repository and set it up
-y, --yesinstall system packages without asking first
--no-solversskip Docker and the solver image (about 3 GB)
--no-sudoinstall no system packages, and list what's missing
--no-kicad-configleave KiCad's settings alone
--no-pathon a Mac, leave your shell's PATH alone
--rladd MuJoCo Warp for GPU reinforcement learning (NVIDIA)
--dry-runprint what would happen and stop
--uninstallremove what it put in your home folder (system packages stay)

On a Mac

  • If Homebrew is missing, the script installs it first. Then comes KiCad, and Docker through Colima unless Docker Desktop, OrbStack or Podman is already there. It also puts ~/.local/bin on your PATH in ~/.zprofile.
  • Colima doesn't come back by itself after a restart. Run colima start before using the solvers.
  • Keep projects somewhere under your home folder, since that's the only folder Colima shares with the solvers. Colima takes half the Mac's CPUs and memory, between 4 and 16 GB. To change that, run colima stop and then colima start --cpu N --memory GB.

On Linux

On Arch, Debian and Ubuntu the script adds you to the docker group. That amounts to root access. If you'd rather avoid it, Podman works too.

KiCad's settings

The KiCad MCP server talks to KiCad through its API, so the script switches that API on and adds KiCad's default library tables if they're missing. Close KiCad before you run it. Once the API is on, any program running as your user can control KiCad. --no-kicad-config leaves KiCad's settings as they are.

Next: Use hardware-studio