Install & first run
The published image (recommended)
Every release pushes a container image; nothing is built on your machine:
docker pull ghcr.io/cpoder/vejas-runtime:latest
docker run --rm -v "$PWD:/w" ghcr.io/cpoder/vejas-runtime:latest \
vejas-runtime vpl-check /w/detects/my_rule.vpl # prints ok, or the error
Beside a NATS with JetStream on, that image is the whole runtime: mount your
root, point NATS_URL at the bus, publish the ports.
docker run --rm -v "$PWD/my-root:/root" -e VEJAS_ROOT=/root \
-e NATS_URL=nats://nats:4222 -p 127.0.0.1:8686:8686 -p 8787:8787 \
ghcr.io/cpoder/vejas-runtime:latest
Port 8686 writes flows and runs commands, so it is published on localhost here.
Before publishing it wider, set VEJAS_TOKEN.
The release also carries a stripped Linux binary and its SHA-256:
https://github.com/cpoder/vejas/releases/latest. It listens on
127.0.0.1:8686 until VEJAS_HTTP_ADDR says otherwise.
Docker compose, to try it in one command
git clone https://github.com/cpoder/vejas && cd vejas
docker compose up # nats + vejas — nothing else
This one builds the image locally from the checkout, so it follows your working tree rather than the last release.
The panel is at http://localhost:8686. The webhook entry listens on
:8787 — POST /ingest/<subject> publishes the JSON body on the bus.
From source
cargo build --release --manifest-path core/Cargo.toml
nats-server -js & # the only dependency
VEJAS_ROOT=./my-root core/target/release/vejas-runtime
VEJAS_ROOT is a plain directory: flows/, connectors/, tables/,
tests/. Everything is a file; git is the source of truth.
Connect an agent
claude mcp add --transport http vejas http://localhost:8686/mcp
Any MCP client works — the runtime is the MCP server, no separate process.
Ask the agent for a flow in plain words; it reads vejas_language over MCP,
writes the .vjs, tests it against a fixture, and the supervisor picks it
up.
Security defaults
The panel/MCP port (8686) binds to localhost by default — that surface
writes flows and can run commands (exec connectors), so expose it
deliberately. Set VEJAS_TOKEN and every write (/mcp included) requires
Authorization: Bearer. The webhook port (8787) only publishes events.
For a “no agent lands anything alone” posture, see
governed mode.