Skip to main content

vs-remote

Remote execution server and frame proxy for VapourSynth.

vs-remote runs VapourSynth scripts on a remote machine (e.g. headless server or workstation) and streams frames to a local client for previewing or encoding.

It mirrors remote clips as local VideoNode proxies, streaming frames on demand with asynchronous prefetching, uses ZeroMQ for communication and supports multiple independent outputs.

Limitations

  • AudioNode outputs are not supported.

  • Variable resolution and format clips are not supported.

  • Frame property serialization only preserves primitive types (int, float, str, bytes, and lists of primitives).

    Non-primitive objects such as embedded VideoFrame references (_Alpha) fall back to their string repr().


Installation

uv add vsremote

Or with pip:

pip install vsremote

Quick Start

1. Start the Remote Server

On the machine hosting VapourSynth and source media:

vsremote serve path/to/script.vpy --address tcp://127.0.0.1:5555

Or programmatically in Python:

import vsremote

vsremote.serve("script.vpy", address="tcp://127.0.0.1:5555")

2. Connect from the Client

On the local machine:

# client_script.vpy
import vapoursynth as vs
import vsremote

# Mirror output 0 from the remote server
clip = vsremote.source("tcp://192.168.1.100:5555", output=0)

clip.set_output()

Open client_script.vpy in vsview, or pipe directly via the CLI:

# Preview in vsview
vsview client_script.vpy

# Pipe directly from CLI
vsremote pipe tcp://192.168.1.100:5555 --output 0 | ffmpeg -i - -c:v libx264 out.mp4

CLI Reference

Command Description Example
serve Host a .vpy script or execution server vsremote serve script.vpy --address tcp://127.0.0.1:5555
ping Test connection and measure round-trip latency vsremote ping --address tcp://192.168.1.100:5555
info Display metadata for all outputs on the remote server vsremote info --address tcp://192.168.1.100:5555
top Live TUI performance, throughput, and memory monitoring dashboard vsremote top --address tcp://192.168.1.100:5555
pipe Stream frames directly to stdout as Y4M or raw planes vsremote pipe --address tcp://192.168.1.100:5555 --y4m --output 0 | x265 --y4m - -o out.hevc
keygen Generate a Curve25519 keypair for CurveZMQ encryption & client auth vsremote keygen

Python API Reference

Client API

vsremote.source(...)

Create a local vs.VideoNode proxy mirroring a remote output:

import vsremote

clip = vsremote.source(
    address="tcp://192.168.1.100:5555",
    output=0,
    compression="zstd",  # "zstd" or "none"
    prefetch=4,  # Frames to asynchronously prefetch ahead
    auth_token=None,  # Optional authentication token
    curve_server_key=None,  # Optional CurveZMQ server public key
    curve_public_key=None,  # Optional CurveZMQ client public key
    curve_secret_key=None,  # Optional CurveZMQ client secret key
    forward_logs=True,  # Stream remote logs to local logging
)

vsremote.RemoteClient

Client for output introspection, dynamic script loading, and multi-output retrieval:

import asyncio

import vsremote

with vsremote.RemoteClient("tcp://192.168.1.100:5555") as client:
    # Introspect available outputs
    outputs = client.list_outputs().result()
    for item in outputs:
        print(f"[{item.index}] {item.name}: {item.info.width}x{item.info.height}")

    # Get proxies for specific or all clips
    clip0 = client.get_output(0)
    all_clips = client.get_outputs()  # dict[int, vs.VideoNode]


async def main() -> None:
    # Also usable as asynchronous context manager
    async with vsremote.RemoteClient("tcp://192.168.1.100:5555") as client:
        # Dynamic control (requires server started with --allow-eval)
        await client.reload()  # Reload script from disk
        await client.load_script("/path/to/another.vpy")  # Switch active script
        await client.load_code("import vapoursynth as vs; vs.core.std.BlankClip().set_output()")


asyncio.run(main())

Remote Script Authoring API

When authoring .vpy scripts served by vsremote, use vsremote.set_output to register named outputs:

# server_script.vpy
import vapoursynth as vs

from vsremote import is_preview, set_output

core = vs.core

src = core.bs.VideoSource("source.mkv")
noartifact = core.noise.Add(src, var=2000)

set_output(src)
set_output(noartifact)

if is_preview():
    print("Running inside vsremote server environment")

Security

VapourSynth scripts are Python code. Evaluating untrusted .vpy scripts or enabling --allow-eval grants arbitrary code execution privileges within the server process.

  • Defaults: The server binds to 127.0.0.1 with --allow-eval disabled by default.

  • Remote / WAN (Recommended): Use SSH port forwarding so no ZeroMQ ports are exposed to the internet:

    # Remote server (bind to localhost)
    vsremote serve script.vpy --address tcp://127.0.0.1:5555
    
    # Local client (SSH tunnel)
    ssh -N -L 5555:127.0.0.1:5555 user@remote-server.com
    
    # Connect locally
    vsremote info --address tcp://127.0.0.1:5555
    
  • Direct LAN (Encryption Only): Enable CurveZMQ (Curve25519) encryption and optional pre-shared token authentication:

    # Server (generate ephemeral keypair or provide static secret key)
    vsremote serve script.vpy --address tcp://192.168.1.100:5555 --curve-secret-key "<SERVER_SECRET>" --auth-token "secret"
    
    # Client
    vsremote info tcp://192.168.1.100:5555 --curve-server-key "<SERVER_PUBLIC>" --auth-token "secret"
    
  • Direct LAN (Mutual Authentication & Whitelisting): Whitelist authorized client public keys on the server:

    # Server (whitelist allowed client public keys)
    vsremote serve script.vpy --address tcp://192.168.1.100:5555 --curve-secret-key "<SERVER_SECRET>" --curve-allowed-keys "<CLIENT_PUBLIC>"
    
    # Client (connect with client keypair)
    vsremote info tcp://192.168.1.100:5555 --curve-server-key "<SERVER_PUBLIC>" --curve-public-key "<CLIENT_PUBLIC>" --curve-secret-key "<CLIENT_SECRET>"
    
  • Untrusted Scripts/Code: Run vsremote in a rootless container with read-only mounts and dropped capabilities.


Architecture

flowchart BT
    subgraph Client ["Client Machine"]
        SRC["vsremote.source / RemoteClient"]
        CT["ClientTransport (DEALER)"]
        SUB["Stream Subscriber (SUB)"]

        SRC -->|"ModifyFrame"| CT
    end

    ZMQ{{"ZeroMQ Transport\n(TCP / IPC)"}}

    subgraph Server ["Rendering Server"]
        SD["ServerDaemon (ROUTER)"]
        VSE["VapourSynth Core / vsengine"]

        SD -->|"get_frame_async"| VSE
        VSE -->|"vs.VideoFrame"| SD
    end

    CT <-->|"Requests & Frames"| ZMQ
    ZMQ <-->|"Render Requests"| SD
    SD -->|"PUB Logs & Output"| ZMQ
    ZMQ -->|"Events"| SUB

Notes

This project was developed with the assistance of AI coding tools.

Metadata

Release files for vsremote 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vsremote 0.6.0
File Size Uploaded Provenance Actions
vsremote-0.6.0.tar.gz 137.0 kB With provenance Details for vsremote-0.6.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vsremote 0.6.0
File Actions
vsremote-0.6.0-cp315-abi3.abi3t-win_amd64.whl CPython 3.15 abi3t, abi3 Windows x86-64 Details for vsremote-0.6.0-cp315-abi3.abi3t-win_amd64.whl
vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.34+ x86-64 Details for vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl
vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.34+ ARM64 Details for vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl
vsremote-0.6.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl CPython 3.15 abi3t, abi3 macOS 11.0+ ARM64 Details for vsremote-0.6.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
vsremote-0.6.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl CPython 3.15 abi3t, abi3 macOS 10.12+ x86-64 Details for vsremote-0.6.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
vsremote-0.6.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for vsremote-0.6.0-cp312-abi3-win_amd64.whl
vsremote-0.6.0-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for vsremote-0.6.0-cp312-abi3-manylinux_2_34_x86_64.whl
vsremote-0.6.0-cp312-abi3-manylinux_2_34_aarch64.whl CPython 3.12 abi3 Linux glibc 2.34+ ARM64 Details for vsremote-0.6.0-cp312-abi3-manylinux_2_34_aarch64.whl
vsremote-0.6.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for vsremote-0.6.0-cp312-abi3-macosx_11_0_arm64.whl
vsremote-0.6.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for vsremote-0.6.0-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 2.2 MB

Release files / vsremote-0.6.0.tar.gz

Download URL vsremote-0.6.0.tar.gz
Size 137.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6ebcdcaacc8e7e1f2a98fdc0ad48d84d571a104db4a45029cf216e7f787a8f26
BLAKE2b-256 checksum
How to use checksums
81d5d7b3710fd04d95262673f4ff178825eea0dac47c80eefd2022ee305f3367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp315-abi3.abi3t-win_amd64.whl

Download URL vsremote-0.6.0-cp315-abi3.abi3t-win_amd64.whl
Size 138.7 kB
Tags CPython 3.15 Windows x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
7ac88cb4aacd027f598ddf4b022c680662c600b5f8336163f704577da62517df
BLAKE2b-256 checksum
How to use checksums
4c8fbceaee9f2f43066cb2ebf6d8e5c9392bc129b0f2f137592f4633d6df1227
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl

Download URL vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl
Size 233.9 kB
Tags CPython 3.15 Linux glibc 2.34+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
5b828cf1d2edf1f7342db28e318fed269d5995d165d3922785a3ffe9fbff5aea
BLAKE2b-256 checksum
How to use checksums
c55ca917915d541863fe8216229d569dab99e3d3f264514e16829529ff803a2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl

Download URL vsremote-0.6.0-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl
Size 226.8 kB
Tags CPython 3.15 Linux glibc 2.34+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
afc663407c890ea70f7a3f83847721a6cf8a0752e5141c33b5bf5f44daa57240
BLAKE2b-256 checksum
How to use checksums
58e24d06b49d86e7667af003124f655a57e6928f76e6e6b03d3cc98f449e2f26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl

Download URL vsremote-0.6.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
Size 209.9 kB
Tags CPython 3.15 abi3 abi3t macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c9e76fba207a563273e9ef66d85ade0db49ef05ab203dbcf0cc211939374cf8d
BLAKE2b-256 checksum
How to use checksums
1a2eb67557b3d34ef535f16de0028caa05e46795dfe35e6d3ffbc474907eb3a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl

Download URL vsremote-0.6.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
Size 215.8 kB
Tags CPython 3.15 abi3 abi3t macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
cd2dcbff9b05fa151876515c484dfadef3db7730abc18381e311e6deb92647b0
BLAKE2b-256 checksum
How to use checksums
771d932834380e8be66f8c72150a57616f2aea48719b3a1703b4958d9e6fd554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp312-abi3-win_amd64.whl

Download URL vsremote-0.6.0-cp312-abi3-win_amd64.whl
Size 138.0 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
042eb982db525652093b9134db407f34bfede4a402fe0c26cc29527fcaa2a1c9
BLAKE2b-256 checksum
How to use checksums
bb9a941ff97ca3d23366e8286c0b9bcd3396cb28f0961ed4192c5a69c480143c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL vsremote-0.6.0-cp312-abi3-manylinux_2_34_x86_64.whl
Size 235.0 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
b99b79128b531ddc3e9ef60a884b769aeb7f300bdd3868157d701d731e8c13ec
BLAKE2b-256 checksum
How to use checksums
f0c7d5993f6e9930ae57db4d184cf004159bb9bf318edda77233e91475825672
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp312-abi3-manylinux_2_34_aarch64.whl

Download URL vsremote-0.6.0-cp312-abi3-manylinux_2_34_aarch64.whl
Size 227.6 kB
Tags CPython 3.12 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
4570a4e850d93aa7c23132182dfdfdf4245ee08e6418c3bdc5c6e04e3d21cc54
BLAKE2b-256 checksum
How to use checksums
d8db6f23ff125c311636f3deb2a618f89dafeaca51c49a0ff9c52f64a1f8394f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL vsremote-0.6.0-cp312-abi3-macosx_11_0_arm64.whl
Size 209.9 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
11dfd6d739d74ea18dbbb4d6edc1e022cbc775393440da4a25a61c5cefeff015
BLAKE2b-256 checksum
How to use checksums
427991d8acae899094ba8168664297b5c6da55d0f9f271f3163cc22b691c47ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vsremote-0.6.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL vsremote-0.6.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 215.5 kB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
fb9d664ca7802a30df0b5438480b0b5d21cdec78362adee430df198eaff0b41b
BLAKE2b-256 checksum
How to use checksums
13ec3161164486bb33da7dbdba6ca958ce4bf067b308aeb53a3e69266e2c1330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for vsremote 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for vsremote-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page