Skip to main content

ps5-remoteplay

Asyncio Python library for PlayStation 5 consoles on the local network: discover and read status, wake, put into standby, and pair via PSN OAuth + Remote Play PIN.

Ported from playactor (PS5 code path only).

Install

pip install ps5-remoteplay

Development

python3 -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/pytest

CLI

ps5-remoteplay status [--host IP]          # exit 0 awake, 1 standby, 2 not found
ps5-remoteplay pair --host IP              # PS5 must be awake
ps5-remoteplay wake --host IP [--no-wait]
ps5-remoteplay standby --host IP [--passcode 1234]

Credentials are stored in ~/.config/ps5-remoteplay/credentials.json (mode 0600), in the same format as playactor's ~/.config/playactor/credentials.json; pass --credentials ~/.config/playactor/credentials.json to reuse an existing playactor pairing.

Pairing binds UDP port 9295 locally, and broadcast discovery needs the host to be on the same subnet as the console.

Library

from ps5_remoteplay import Credentials, get_device, wake, standby, DeviceStatus

device = await get_device("192.168.1.50")
if device.status == DeviceStatus.STANDBY:
    await wake(device.host, creds)
else:
    await standby(device.host, creds)

Testing

tests/vectors.json holds byte-exact reference outputs generated from playactor's TypeScript implementation (crypto, registration payloads, session headers and frames, wake packets).

License and credits

AGPL-3.0-only. See LICENSE.

The protocol implementation is ported from playactor by Daniel Leong, whose Remote Play crypto is in turn based on the work of the chiaki project.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ps5_remoteplay-0.1.7.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ps5_remoteplay-0.1.7-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file ps5_remoteplay-0.1.7.tar.gz.

File metadata

  • Download URL: ps5_remoteplay-0.1.7.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for ps5_remoteplay-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2bf21469301b1ffda00c4b13b0a9fa2c1d4a74375b173a1cc3993ffe9ed4113f
MD5 12caac38b3f354cbb35dd1d414680321
BLAKE2b-256 62080c9deb4b60b3e0b59606c0a6f1a751539ca2fb6fee78118d194af1d55b0d

See more details on using hashes here.

File details

Details for the file ps5_remoteplay-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: ps5_remoteplay-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 40.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for ps5_remoteplay-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9b476fd8edf701267f8dd3c55c6719421893d6c9d811b744450faf0c1f11b015
MD5 52690dc4a852ea4964eacd9ac3aa12f5
BLAKE2b-256 5d6e8d6897b8071b6f092f2f1963cc2204d64b5e66397b1d632eb39d8ef1fedc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.8

2 files

This release

0.1.7 This release

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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