On this page
Installation
A Dryv setup has three parts:
| Part | What it does | Where it runs |
|---|---|---|
| Client | The dryv CLI or the VS Code extension. Reads your project, runs the compiler, sends the result to the engine and writes generated files. | Your machine |
| Author + compiler | A library you declare software meaning with, and the compiler that turns it into Canonical Runtime IR. | Your project, as dev dependencies |
| Engine | Validates the IR, plans packs and renders templates. Clients talk to it over HTTP. | On your machine, or in your Playground |
1. Install the CLI
The CLI is distributed by the Dryv Platform, not by the open source repository. Today
the only published build is 0.1.0 for Linux x64. The installer downloads it,
verifies its signature and sha256, and installs it to ~/.dryv without sudo. It needs
neither Node.js nor Python.
curl -fsSL https://dryvcode.com/install.sh | sh
dryv --help
Pin a version with DRYV_VERSION=0.1.0 and change the folder with DRYV_INSTALL_DIR.
Update later with dryv update. Direct downloads with checksums are on the
download page.
There is no published build for macOS or Windows yet. The 0.1.0 build also predates the
keyless Engine described below, so some of its behaviour may differ from these pages.
The @dryvcode/cli package on npm is the old 0.1.0 package and is not maintained.
Or the VS Code extension
The extension's .vsix is on the download page. In VS Code, choose
Extensions → … → Install from VSIX. The listing on
Open VSX is an older preview.
Without the CLI
You can run the open source Engine from source and send it a project directly. You need Bun 1.4.2, uv and git:
git clone https://github.com/dryvcode/dryv.git
cd dryv
bun run setup # installs the TypeScript and Python dependencies
bun run dev # the Engine on http://127.0.0.1:8750 with its template servers
In another terminal, python3 scripts/engine_sample.py sdk/_examples/projects/quickstart
validates and plans the sample project through the Engine API. See the repository's
README.md for details.
2. Add an author to your project
Pick the language you want to describe your software in. The generated code can target any stack. The authoring language only decides how you write the meaning.
TypeScript
npm install -D @dryvcode/author @dryvcode/compiler
pnpm add -D @dryvcode/author @dryvcode/compiler
yarn add -D @dryvcode/author @dryvcode/compiler
bun add -d @dryvcode/author @dryvcode/compiler
@dryvcode/author ·
@dryvcode/compiler. The compiler's
command is dryv-ts. It loads your .ts files directly, which needs Node.js 22.18+ or
Bun. On Node, use erasable TypeScript only: no enum or namespace.
Python (3.11+)
uv add --dev dryv-author dryv-compiler
pip install dryv-author dryv-compiler
dryv-author ·
dryv-compiler. The compiler's command is
dryv-py.
If the project doesn't have the author or compiler yet, the CLI can install them for you.
It asks first, or proceeds without asking when you pass --yes.
3. Connect to an engine
Where the engine runs
The engine runs on your own machine. The CLI and the VS Code extension use the local engine that the local daemon starts, on a free port it picks. There is no public hosted engine: the engine in your Playground is reached only through the signed-in Platform API. A local engine needs no login and no API key.
You only sign in (dryv login) to sync data through the Platform API (the web and mobile
apps), sync tasks, publish, use private packs, and download or export your data.
Run it locally
The installed CLI starts a local Engine for you through its local daemon. Check or
control it with dryv local status, dryv local restart, dryv local stop and
dryv local logs. See Local daemon.
To use an Engine you run yourself, for example one started with bun run dev from the
open source repository, point the CLI at it:
export DRYV_API_URL=http://127.0.0.1:8750
Pass --api to any command instead, if you prefer. The VS Code extension uses the CLI
named by the dryv.cli.command setting (default dryv) to start the same local daemon.
The Engine needs no key, token or database.
4. Check it
dryv info # the engine, its version and its template servers
dryv capabilities # what this machine can run