Calimero merobox

Architecture reference for the Python CLI toolbox. Workflow orchestration, Docker & binary node management, NEAR Sandbox integration, and end-to-end testing — all from a single command.

7
CLI commands
15+
step types
2
node backends
1
workflow engine

Start Here

New to merobox? Follow this path to understand the system from top to bottom.

1

System Overview

Understand the high-level architecture: CLI, workflow engine, node managers, and how they connect.

Read System Overview →

2

Workflow Engine

Dive into WorkflowExecutor: step lifecycle, placeholder resolution, dynamic values, and result accumulation.

Read Workflow Engine →

3

Write a Workflow

Learn the YAML schema for defining nodes, steps, and orchestration sequences.

Read YAML Reference →

System Map

CLI Layer (Click) run · stop · health · logs · nuke · remote · bootstrap WorkflowExecutor Orchestration: nuke → pull → sandbox → deploy → nodes → register → steps → cleanup NodeResolver remote → URL → Docker → binary DockerManager Docker API, container lifecycle Traefik + auth stack, port mgmt BinaryManager Native merod subprocess PID files, signal cleanup SandboxManager near-sandbox download & RPC NearDevnetClient account ops merod Containers Docker or native processes calimero-client-py JSON-RPC · AuthManager NEAR Sandbox Local RPC · account ops · contracts AuthManager JWT · cache · refresh
CLI
Workflow
Resolution
Docker
Binary
NEAR
Auth

Click any box to jump to its deep-dive page.

Component Index

Key Concepts

Workflow

A YAML file that declares a set of nodes and a sequence of steps. The WorkflowExecutor reads this file, resolves all placeholders (environment variables, dynamic values from prior steps), and orchestrates the full lifecycle: environment cleanup, node startup, step execution, and teardown.

Node Resolution

The NodeResolver determines how each declared node maps to a running merod instance. Resolution order: registered remoteURLDocker containernative binary. Each backend has its own manager class handling lifecycle and health checks.

Step Execution

Steps are the atomic units of a workflow. Each step type extends BaseStep and implements validation and execution. Step types include: install_application, create_context, call, wait_for_sync, repeat, parallel, script, assert, and fuzzy_test.

NEAR Sandbox

For E2E testing, merobox downloads and runs a local near-sandbox instance. The NearDevnetClient handles account creation, key management, and contract deployment. Nodes are configured to point at the local sandbox RPC endpoint for devnet operations.