Prerequisites
- Node.js 22+ (required for schema generation and CI)
- npm (v7+ for workspaces) or pnpm
- For OpenAI: set
OPENAI_API_KEY - For Ollama: install Ollama and run it locally
Install from npm (published packages)
Build and use the CLI from the repo
From the repository root:npm run build runs a full clean of package dist/ outputs first, then compiles (see the repo root package.json).
Then either use the workspace binary:
ecp runs compiled dist/index.js via bin/ecp.cjs.)
Environment and config
- OpenAI: Set
OPENAI_API_KEY. - Ollama: Default base URL is
http://localhost:11434; override with--ollama-base-urlorOLLAMA_BASE_URL. - System config: Optional
ecp.config.yaml(e.g. fromconfig/ecp.config.example.yaml) withversion: "0.5", wiring undermodels,tools,loggers, …, and policy under thesecuritymirror. The CLI loads it from--config,./ecp.config.yaml, or~/.ecp/config.yaml.
Run examples
From the repo root (afternpm run build):
ecp trace (tracing is enabled by default; disable with --no-trace).
For the full, up-to-date flag list, run ecp --help or ecp <command> --help (for example ecp run --help).
Tests
Unit tests expect built packages (dist/). From the root:
npm test (builds first, then unit + integration + e2e).