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.7.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.7.0
File Size Uploaded Provenance Actions
vsremote-0.7.0.tar.gz 136.2 kB With provenance Details for vsremote-0.7.0.tar.gz

Built distributions (wheels)

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

Total release size: 2.2 MB

Release files / vsremote-0.7.0.tar.gz

Download URL vsremote-0.7.0.tar.gz
Size 136.2 kB
Tags Source
SHA-256 checksum
How to use checksums
260087f14dc86bea13fe211c47657a419987552acc61df42524f5ef00360cc7c
BLAKE2b-256 checksum
How to use checksums
e8c647730001f37c457b50f62ddd6c03072d8def3a342f902317e2a129563c4a
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp315-abi3.abi3t-win_amd64.whl
Size 137.8 kB
Tags CPython 3.15 Windows x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
15b5d0fccb82070e1815a2adf5f719ed585cfd73a43b8d154bf8ffde71e42fba
BLAKE2b-256 checksum
How to use checksums
c85dc0b28fc74def00d948e26251aeb23a98b40ca47abb5dc241892d9096b424
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl
Size 233.0 kB
Tags CPython 3.15 Linux glibc 2.34+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
495535a93f9c6e5bddf6e338d72ca0f4bccc1bd65e8208ab798270d59c9145d8
BLAKE2b-256 checksum
How to use checksums
dad843b68dde89882ee9563795f12cfeefb97cc100fbd543aa68762a70ee5943
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl
Size 225.8 kB
Tags CPython 3.15 Linux glibc 2.34+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
a810e1dc4ae645e9257a61c7ecfea752f072ab6150ec62ea015b11dfe29c8023
BLAKE2b-256 checksum
How to use checksums
03391ee15f5ca1e4087bee33858e7feeae99eddfcc06043a0d5086f53410a322
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
Size 209.0 kB
Tags CPython 3.15 abi3 abi3t macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3404a9768ba500d1c21bbe374bfc25328998b075e71b5729dd4e578ee790b9a7
BLAKE2b-256 checksum
How to use checksums
496748a3c37f11a09c3103ccfad7e6cfc7165ee767edf4f9fd42118201425b57
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
Size 214.8 kB
Tags CPython 3.15 abi3 abi3t macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6f0c4a2babf4ae9a24478c6ba0b4da0aa8b9e56eeba044b0a898c46b4035d453
BLAKE2b-256 checksum
How to use checksums
13edb792d7106a6440b94597d35931ccb8c0dd9f33be037710c933f5cdee3bc4
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp312-abi3-win_amd64.whl
Size 137.0 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bf1f76625d7cc8a80d303f4b520609fcab1e64e31fadd3e839942ae83adceed4
BLAKE2b-256 checksum
How to use checksums
bd6fbf7e5e549d52d3a0d20a6ca18216d22d851dc06b9d3e30280356aed7de95
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp312-abi3-manylinux_2_34_x86_64.whl
Size 234.1 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
48d13bcb0442c5658ce68c92ad9db216d2deff1237718ece6e8f3c28aeec2334
BLAKE2b-256 checksum
How to use checksums
80c6c5d32f505f5fc4a0482e25feaa21a11ba5ddb7451848bfb7bb8fb2cbd205
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp312-abi3-manylinux_2_34_aarch64.whl
Size 226.7 kB
Tags CPython 3.12 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
08beb5911ce3ace7cb978c5755a0c07b32684b328abadc4f0b3529b5d23ba7bd
BLAKE2b-256 checksum
How to use checksums
1f6763a7e9f7273ffb20f3cf10aa9eee4f6e2033e63ca16801ff01162d923554
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp312-abi3-macosx_11_0_arm64.whl
Size 208.9 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ebd5b01a4fd47389c347aecf8e06462808533d8d5996a1fdfca56bcec728da32
BLAKE2b-256 checksum
How to use checksums
3a4cad823a6c904c9b9c9e8249c1941201be163fa6db3d65d91839acd96dab96
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 26, 2026.

Transparency log

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

Download URL vsremote-0.7.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 214.5 kB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c67e3e9e83ec72d53e515b8f8b2e1e0e9133cc29c9368187173b1647fe89bcd9
BLAKE2b-256 checksum
How to use checksums
8bbb8024adfe3557806c85945785ead02c6bb946a2476a93a57e2aaaaa5ad009
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 26, 2026.

Transparency log

Security for vsremote 0.7.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.7.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 26, 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