Skip to content

Install & First Run

Both binaries live in this repository: merod (the node) and meroctl (the command line).

Platform merod meroctl
Linux (x86_64, aarch64; glibc 2.35 or newer: Ubuntu 22.04, Debian 12 and later) native native
macOS (Apple silicon) native, from 1.0.0-rc.25 (or in Docker) native
Windows not supported not supported

Production nodes run in Intel TDX VMs, which are Linux only; on a laptop you run nodes in development mode (--dev, or merod local), with mock attestation.

scripts/install.sh downloads a release’s archives, checks each against the release’s SHA256SUMS, and puts the binaries in ~/.local/bin (or CALIMERO_INSTALL_DIR, or --dir DIR). Without --version it takes the newest release, release candidates included.

Terminal window
# meroctl (Linux x86_64 and aarch64, macOS aarch64)
curl -fsSL https://raw.githubusercontent.com/calimero-network/core/master/scripts/install.sh | sh
# merod and meroctl, a pinned release
curl -fsSL https://raw.githubusercontent.com/calimero-network/core/master/scripts/install.sh \
| sh -s -- merod meroctl --version 1.0.0-rc.24

It replaces the calimero-network/install-sh repository’s scripts. Homebrew installs the same binaries:

Terminal window
brew install calimero-network/tap/meroctl calimero-network/tap/merod

With a release before 1.0.0-rc.25, which shipped no macOS merod, the installer skips it on a Mac with a note. meroctl local up runs the node in the release’s Docker image anyway; merod is only needed for --local.

The toolchain is pinned in rust-toolchain.toml (Rust 1.98.0); rustup selects it. The build needs clang, libclang-dev, make, pkg-config and libssl-dev (Debian/Ubuntu names).

Terminal window
git clone https://github.com/calimero-network/core
cd core
cargo build --locked --release -p merod -p meroctl
# or put them on PATH:
cargo install --locked --path crates/merod
cargo install --locked --path crates/meroctl

The binaries land in target/release/. On macOS, install only meroctl and run merod in Docker.

  1. Start three nodes in one process:

    Terminal window
    meroctl local up

    It runs merod local in the release’s Docker image, in the background (Docker must be installed and running; --local runs the merod on PATH instead). The nodes listen on http://127.0.0.1:2501/ to 2503, with mock attestation and a development storage key, and keep state in ~/.calimero/meroctl/local/ (--fresh starts over), so meroctl local down and status find it from any directory. meroctl saves the cluster as the node local, trusting its mock attestation, and makes it the default node if you have none. It prints the node URLs and the Ops token (opsToken); meroctl local status prints them again and meroctl local down stops the cluster.

  2. Sign up with a file passkey (development clusters only):

    Terminal window
    meroctl login --dev-passkey ./dev-passkey.json --name ada
  3. Check it:

    Terminal window
    meroctl network status # node, release, system leader
    meroctl whoami
    meroctl --ops-token <opsToken> ops status # the token local up and local status print

Then deploy an app: Quickstart.

meroctl local up runs the merod local cluster in the published image, on Linux and macOS alike. By hand, the same thing: --bind 0.0.0.0 makes its nodes listen on every interface of the container, so the published ports reach them, at the same URLs as on Linux:

Terminal window
docker run --rm -p 2501-2503:2501-2503 -v merod-local:/data \
ghcr.io/calimero-network/merod:prerelease \
local --bind 0.0.0.0 --ops-token devtoken
  • Mock attestation, a development storage key and raw WASM uploads, as merod local on Linux; each app gets three replicas.
  • State is in the merod-local volume, under /data/.merod-local (--fresh starts over).
  • Use :latest for the newest stable release, or :<version> to pin one; match meroctl’s release to it.

meroctl local up does this in the background, saves the node as local and waits until it serves (meroctl local down stops it).

Then, from the host:

Terminal window
meroctl node add local http://127.0.0.1:2501/ --allow-mock
meroctl login --dev-passkey ./dev-passkey.json --name ada
meroctl network status