Requirements
MirrorNeuron runs on macOS or Linux. You need:- Elixir and Erlang — the BEAM runtime that powers MirrorNeuron’s orchestration layer
- Redis — stores job state, agent snapshots, and event history
- Docker — the simplest way to run Redis locally
- OpenShell — provides the isolated sandbox environment used by
executornodes
If you plan to run LLM-based examples such as
llm_codegen_review, you also need a Gemini API key available in your environment on the machine running the job.Install Elixir and Erlang
On macOS, install Elixir with Homebrew (Erlang is included as a dependency):Confirm the installation:For Linux, use your distribution’s package manager or follow the official Elixir installation guide.
Start Redis
The simplest local path is to run Redis in Docker:Verify Redis is responding:You should see:
Install OpenShell
Download and install OpenShell using the official installer:Confirm the installation:If Alternatively, point MirrorNeuron directly to the binary using an environment variable:
openshell is not on your PATH, add it:Start the OpenShell gateway
MirrorNeuron’s executor nodes communicate with OpenShell through its gateway process. Start it and confirm it is connected:Look for
Status: Connected in the output before continuing.Fetch dependencies and build
From inside the This produces the
MirrorNeuron directory, fetch dependencies, run the test suite, and build the CLI binary:mirror_neuron CLI binary in the project root. The terminal monitor is available as a subcommand:Set environment variables
Export these variables in your shell before running MirrorNeuron:
If you are using LLM-based examples, also export your Gemini API key:
| Variable | Purpose |
|---|---|
MIRROR_NEURON_REDIS_URL | Connection URL for the Redis instance used for persistence |
MIRROR_NEURON_EXECUTOR_MAX_CONCURRENCY | Maximum number of executor leases that can run concurrently on this node |
MIRROR_NEURON_COOKIE | BEAM distribution cookie, used to authenticate cluster members |