vane 0.9.0

A flow-based reverse proxy with multi-layer routing and programmable pipelines.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
---
title: Installation
description: Get Vane running on your preferred platform
icon: Download
---

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Callout } from 'fumadocs-ui/components/callout';
import { Steps, Step } from 'fumadocs-ui/components/steps';

Vane provides first-class pre-compiled binaries for modern Linux and macOS systems, alongside a Docker image for containerized environments. For developers and rolling-release distributions, source-based installation is also fully supported.

## Support Tiers

### Production Ready

These targets are statically compiled (Linux) or native (macOS), and pass the full integration test suite on every commit.

| Target                       | Note                                  |
| :--------------------------- | :------------------------------------ |
| `aarch64-apple-darwin`       | Native binary for Apple Silicon macOS |
| `x86_64-unknown-linux-musl`  | Static binary for 64-bit x86 Linux    |
| `aarch64-unknown-linux-musl` | Static binary for 64-bit ARM Linux    |
| `x86_64-unknown-linux-gnu`   | Dynamic binary for 64-bit x86 Linux   |
| `aarch64-unknown-linux-gnu`  | Dynamic binary for 64-bit ARM Linux   |

### Guaranteed Compilation

Binaries are automatically built and released, but run without platform-specific integration tests.

| Target                           | Note                                      |
| :------------------------------- | :---------------------------------------- |
| `x86_64-unknown-netbsd`          | Binary for 64-bit NetBSD                  |
| `x86_64-unknown-freebsd`         | Binary for 64-bit FreeBSD                 |
| `armv7-linux-gnueabihf`          | Binary for 32-bit ARMv7 with hard-float   |
| `i686-unknown-linux-gnu`         | Dynamic binary for 32-bit x86 Linux       |
| `riscv64gc-unknown-linux-gnu`    | Dynamic binary for 64-bit RISC-V Linux    |
| `loongarch64-unknown-linux-gnu`  | Dynamic binary for 64-bit LoongArch Linux |
| `loongarch64-unknown-linux-musl` | Static binary for 64-bit LoongArch Linux  |

### Best Effort

Experimental. Codebase compatibility is maintained, but no pre-built binaries are provided in the main release channel. Build from source.

| Target                             | Note                                                |
| :--------------------------------- | :-------------------------------------------------- |
| `x86_64-pc-windows-gnu`            | Binary for 64-bit Windows with GNU toolchain        |
| `x86_64-pc-windows-msvc`           | Binary for 64-bit Windows with MSVC toolchain       |
| `mips64-openwrt-linux-musl`        | Static binary for 64-bit MIPS OpenWrt               |
| `mips64-unknown-linux-muslabi64`   | Static binary for 64-bit MIPS Linux (big-endian)    |
| `mips64el-unknown-linux-muslabi64` | Static binary for 64-bit MIPS Linux (little-endian) |

## Docker

The easiest and most recommended way to run Vane is via Docker. We publish multi-arch images for `amd64` and `arm64` to [Docker Hub](https://hub.docker.com/r/canmi/vane) and [GitHub Container Registry](https://github.com/canmi21/vane/pkgs/container/vane).

### Quick Start

For quick testing or simple deployments:

```bash
docker run -d \
  --name vane \
  -p 80:80 \
  -p 443:443/tcp \
  -p 443:443/udp \
  -p 127.0.0.1:3333:3333 \
  -v /opt/vane:/etc/vane \
  --restart unless-stopped \
  canmi/vane:latest
```

Or use GitHub Container Registry

```bash
docker run -d \
  --name vane \
  -p 80:80 \
  -p 443:443/tcp \
  -p 443:443/udp \
  -p 127.0.0.1:3333:3333 \
  -v /opt/vane:/etc/vane \
  --restart unless-stopped \
  ghcr.io/canmi21/vane:latest
```

### Using Docker Compose

<Callout type="info">
	We recommend storing your Docker Compose configuration at `/opt/vane/docker-compose.yml` for
	consistency. You'll need to create a `.env` file and a dedicated Docker network before starting.
</Callout>

<Steps>
<Step>
**Create the directory structure**:

```bash
sudo mkdir -p /opt/vane
cd /opt/vane
```

</Step>
<Step>
**Create a `.env` file** for environment variables:

```bash
touch .env
```

Edit the `.env` file to add your configuration (optional, depending on your needs).

</Step>
<Step>
**Create the Docker network**:

```bash
docker network create vaneproxy
```

</Step>
<Step>
**Create `docker-compose.yml`**:

```yaml title="/opt/vane/docker-compose.yml"
services:
  vane:
    image: canmi/vane:latest
    # image: ghcr.io/canmi21/vane:latest
    container_name: vane
    networks:
      - vaneproxy
    env_file:
      - ./.env
    ports:
      - '80:80/tcp'
      - '443:443/tcp'
      - '443:443/udp'
      - '127.0.0.1:3333:3333/tcp'
    volumes:
      - /opt/vane:/etc/vane
    restart: unless-stopped

networks:
  vaneproxy:
    external: true
```

<Callout type="tip">
	If you don't need network isolation, you can simplify by using host network mode. Remove the
	`networks` section and add `network_mode: host` instead.
</Callout>

</Step>
<Step>
**Start the service**:

```bash
docker compose up -d
```

</Step>
</Steps>

---

## Pre-compiled Binaries

For bare-metal servers, we provide **statically linked** binaries built with **musl libc** that work on **any** Linux distribution (Debian, Alpine, RHEL, etc.) without external dependencies.

### Quick Install

<Callout type="info">
	This script automatically detects your system architecture and downloads the appropriate binary
	from the [latest release](https://github.com/canmi21/vane/releases).
</Callout>

<Steps>
<Step>
Ensure you have `curl` and `tar` installed:

```bash
# Debian/Ubuntu
sudo apt-get update && sudo apt-get install -y curl tar

# RHEL/CentOS/Fedora
sudo dnf install -y curl tar

# Alpine
sudo apk add curl tar

# Arch Linux
sudo pacman -S curl tar
```

</Step>
<Step>
**Run the auto-install script**:

```bash
curl -fsSL https://vaneproxy.com/install.sh | bash
```

Or for manual control, download and install with architecture detection:

```bash
#!/bin/bash

# Detect OS and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)

# Map to release filename format
case "$OS-$ARCH" in
  linux-x86_64)   FILE="vane-v*-linux-musl-x86_64.tar.gz" ;;
  linux-aarch64)  FILE="vane-v*-linux-musl-aarch64.tar.gz" ;;
  linux-armv7l)   FILE="vane-v*-linux-gnu-armv7.tar.gz" ;;
  darwin-arm64)   FILE="vane-v*-macos-aarch64.tar.gz" ;;
  *)              echo "Unsupported platform: $OS-$ARCH"; exit 1 ;;
esac

# Get latest version and download
VERSION=$(curl -s https://api.github.com/repos/canmi21/vane/releases/latest | grep -Po '"tag_name": "\K[^"]*')
FILENAME=$(echo "$FILE" | sed "s/\*/$VERSION/")

curl -L -o vane.tar.gz "https://github.com/canmi21/vane/releases/download/$VERSION/$FILENAME"
tar -xzf vane.tar.gz

# Install
if [ "$OS" = "darwin" ]; then
  sudo mv vane /usr/local/bin/
  sudo chmod +x /usr/local/bin/vane
  sudo xattr -d com.apple.quarantine /usr/local/bin/vane 2>/dev/null || true
else
  sudo mv vane /usr/local/bin/
  sudo chmod +x /usr/local/bin/vane
fi

rm vane.tar.gz

# Verify installation
vane --version
```

</Step>
</Steps>

### Manual Installation by Platform

<Tabs items={['Linux (x86_64)', 'Linux (ARM64)', 'Linux (ARMv7)', 'macOS (Apple Silicon)']}>
<Tab value="Linux (x86_64)">

<Steps>
<Step>
**Prerequisites**: Install required tools if not already present:

```bash
# Debian/Ubuntu
sudo apt-get update && sudo apt-get install -y curl tar

# RHEL/CentOS/Fedora
sudo dnf install -y curl tar
```

</Step>
<Step>
**Set the version** (check [GitHub Releases](https://github.com/canmi21/vane/releases) for the latest):

```bash
VERSION=v{a.b.c}
```

</Step>
<Step>
**Download** the release:

```bash
curl -L -o vane.tar.gz https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-linux-musl-x86_64.tar.gz
```

</Step>
<Step>
**Extract** the archive:

```bash
tar -xzf vane.tar.gz
```

</Step>
<Step>
**Install** to your system path:

```bash
sudo mv vane /usr/local/bin/
sudo chmod +x /usr/local/bin/vane
```

</Step>
<Step>
**Verify** installation:

```bash
vane --version
```

</Step>
<Step>
**Clean up**:

```bash
rm vane.tar.gz
```

</Step>
</Steps>

</Tab>

<Tab value="Linux (ARM64)">

<Steps>
<Step>
**Prerequisites**: Install required tools:

```bash
# Debian/Ubuntu
sudo apt-get update && sudo apt-get install -y curl tar

# Alpine
sudo apk add curl tar
```

</Step>
<Step>
**Set the version** (check [GitHub Releases](https://github.com/canmi21/vane/releases) for the latest):

```bash
VERSION=v{a.b.c}
```

</Step>
<Step>
**Download** the release:

```bash
curl -L -o vane.tar.gz https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-linux-musl-aarch64.tar.gz
```

</Step>
<Step>
**Extract** the archive:

```bash
tar -xzf vane.tar.gz
```

</Step>
<Step>
**Install** to your system path:

```bash
sudo mv vane /usr/local/bin/
sudo chmod +x /usr/local/bin/vane
```

</Step>
<Step>
**Verify** installation:

```bash
vane --version
```

</Step>
</Steps>

</Tab>

<Tab value="Linux (ARMv7)">

<Steps>
<Step>
**Prerequisites**: Install required tools:

```bash
sudo apt-get update && sudo apt-get install -y curl tar
```

</Step>
<Step>
**Set the version** (check [GitHub Releases](https://github.com/canmi21/vane/releases) for the latest):

```bash
VERSION=v{a.b.c}
```

</Step>
<Step>
**Download** the release:

```bash
curl -L -o vane.tar.gz https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-linux-gnu-armv7.tar.gz
```

</Step>
<Step>
**Extract and install**:

```bash
tar -xzf vane.tar.gz
sudo mv vane /usr/local/bin/
sudo chmod +x /usr/local/bin/vane
```

</Step>
<Step>
**Verify** installation:

```bash
vane --version
```

</Step>
</Steps>

</Tab>

<Tab value="macOS (Apple Silicon)">

<Steps>
<Step>
**Prerequisites**: macOS comes with `curl` and `tar` pre-installed. No additional setup needed.

</Step>
<Step>
**Set the version** (check [GitHub Releases](https://github.com/canmi21/vane/releases) for the latest):

```bash
VERSION=v{a.b.c}
```

</Step>
<Step>
**Download** the release:

```bash
curl -L -o vane.tar.gz https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-macos-aarch64.tar.gz
```

</Step>
<Step>
**Extract** the archive:

```bash
tar -xzf vane.tar.gz
```

</Step>
<Step>
**Install** to your system path:

```bash
sudo mv vane /usr/local/bin/
sudo chmod +x /usr/local/bin/vane
```

</Step>
<Step>
**Remove quarantine attribute** (macOS security):

```bash
sudo xattr -d com.apple.quarantine /usr/local/bin/vane
```

</Step>
<Step>
**Verify** installation:

```bash
vane --version
```

</Step>
</Steps>

</Tab>
</Tabs>

---

## Package Managers

For desktop Linux users and developers, Vane is available via community repositories and the Rust package registry. This ensures the binary is compiled specifically for your system architecture with native optimizations.

### Arch User Repository

For Arch Linux, Manjaro, and EndeavourOS users, Vane is automatically pushed to the [AUR](https://aur.archlinux.org/packages/vane) by our CI pipeline.

```bash
# Using yay
yay -S vane

# Using paru
paru -S vane
```

### Cargo Cross-platform

If you have the Rust toolchain installed, you can compile and install Vane directly from [crates.io](https://crates.io/crates/vane). This is the **most compatible method** for Tier 2 and Tier 3 platforms, including Windows, BSD systems, and exotic architectures.

<Callout type="tip">
	This method compiles Vane from source on your machine. Ensure you have the following build
	dependencies installed: `cmake` and a C compiler (`gcc`, `clang`, or MSVC on Windows)
</Callout>

**Install build dependencies:**

```bash
# Debian/Ubuntu
sudo apt-get update && sudo apt-get install -y build-essential cmake pkg-config libssl-dev

# RHEL/CentOS/Fedora
sudo dnf install -y gcc gcc-c++ cmake openssl-devel

# Arch Linux
sudo pacman -S base-devel cmake openssl

# macOS (via Homebrew)
brew install cmake openssl
```

**Install Vane via Cargo:**

```bash
# Installs to ~/.cargo/bin/vane
cargo install vane

# Verify installation
vane --version
```

<Callout type="warn" title="Compatibility Note">
	If your system or architecture doesn't support the default `aws-lc-rs` cryptographic backend
	(e.g., lacks assembly support), you can use the pure Rust `ring` implementation instead: ```bash
	cargo install vane --no-default-features --features full,ring ``` This provides 100% Rust-based
	cryptography for maximum portability.
</Callout>

---

## Distribution-Specific Packages

Our release pipeline automatically generates native packages for major Linux distributions.

- **Alpine Linux**: `.apk` packages
- **Debian/Ubuntu**: `.deb` packages
- **OpenWrt**: `.ipk` packages
- **RHEL/Fedora**: `.rpm` packages
- **Arch Linux**: `.pkg.tar.zst` packages

**Example installation:**

First, set the version variable (check [GitHub Releases](https://github.com/canmi21/vane/releases) for the latest):

```bash
VERSION=v{a.b.c}
```

Then install using your distribution's package manager:

```bash
# Debian/Ubuntu
wget https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-debian-x86_64.deb
sudo dpkg -i vane-${VERSION}-debian-x86_64.deb

# RHEL/Fedora
wget https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-rhel-x86_64.rpm
sudo rpm -i vane-${VERSION}-rhel-x86_64.rpm

# Alpine
wget https://github.com/canmi21/vane/releases/download/${VERSION}/vane-${VERSION}-alpine-x86_64.apk
sudo apk add --allow-untrusted vane-${VERSION}-alpine-x86_64.apk
```