Installation

What Meted needs, and the fastest way to get it running.

Meted is a CLI. Run it without installing:

npx @meted/cli init

The runner fetches the @meted/cli package and runs init in your project.

Install as a project dependency

To pin the version your team uses:

Add Meted to a project

npm install --save-dev @meted/cli

Then run it through your package manager:

npx meted dev

Or install it globally, if you use it across several projects:

Install Meted globally

npm install -g @meted/cli

Requirements

Node.js20.11 or later
A provider API keyOPENAI_API_KEY by default

The API key is needed to run the gateway. meted inspect does not use it.

Verifying it works

npx @meted/cli inspect "What is a semaphore?"
definition · simple

Target       38
Maximum      64
Confidence   96%

meted inspect computes an allocation locally and prints it. It does not call the provider, so it runs before you have configured a credential.

What gets created

meted init writes meted.config.json in the project root. Commit it.

Other commands write files too: meted eval --out saves a JSON report where you point it, and meted deploy scaffolds a Cloudflare Worker directory.

Was this page helpful?