# 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.

```bash
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](/download).

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](/download). In VS Code, choose
**Extensions → … → Install from VSIX**. The listing on
[Open VSX](https://open-vsx.org/extension/alidantechorg/dryv-vscode) 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](https://bun.sh) 1.4.2, [uv](https://docs.astral.sh/uv/) and git:

```bash
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

```bash tab="npm"
npm install -D @dryvcode/author @dryvcode/compiler
```

```bash tab="pnpm"
pnpm add -D @dryvcode/author @dryvcode/compiler
```

```bash tab="yarn"
yarn add -D @dryvcode/author @dryvcode/compiler
```

```bash tab="bun"
bun add -d @dryvcode/author @dryvcode/compiler
```

[@dryvcode/author](https://www.npmjs.com/package/@dryvcode/author) ·
[@dryvcode/compiler](https://www.npmjs.com/package/@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+)

```bash tab="uv"
uv add --dev dryv-author dryv-compiler
```

```bash tab="pip"
pip install dryv-author dryv-compiler
```

[dryv-author](https://pypi.org/project/dryv-author/) ·
[dryv-compiler](https://pypi.org/project/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](/docs/guides/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](/docs/guides/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:

```bash
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

```bash
dryv info          # the engine, its version and its template servers
dryv capabilities  # what this machine can run
```

Next: [How a project flows through Dryv](/docs/usage/workflow).
