A lightweight utility to programmatically authenticate and launch the Roblox client.
Project description
LaunchRoblox
A lightweight, cross-platform Python utility to programmatically authenticate and launch the Roblox client using a .ROBLOSECURITY cookie and a specific Place ID.
Features
- Automated Auth Flow: Seamlessly exchanges a
.ROBLOSECURITYcookie for an officialrbx-authentication-ticketusing the secure Roblox authentication endpoints. - Cross-Platform Support: Native client launching support across Windows (
os.startfile), macOS (open), and Linux (xdg-open). - Defensive Error Handling: Built-in validation checks to catch expired, missing, or invalid authentication tokens before launching.
- Zero Disk Overhead: Clean, direct execution without bloating your local environment.
Installation
Install the package directly from PyPI:
pip install LaunchRoblox
Quick Start
from roblox_launcher import launchRoblox, AuthenticationError
# Replace with your actual .ROBLOSECURITY cookie
cookie = "_|WARNING:-DO-NOT-SHARE-THIS..."
# The Place ID you want to join (e.g., 2753915549 for Blox Fruits)
placeId = 2753915549
try:
print("Authenticating and launching client...")
launchRoblox(placeId, cookie)
print("Success! Roblox protocol handler triggered.")
except AuthenticationError as e:
print(f"Authentication failed: {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
API Reference
launchRoblox(placeId, cookie)
Generates an authentication ticket and fires the platform's native URI scheme (roblox-player:1+...) to open the game client.
placeId(int): The unique ID of the Roblox place/experience.cookie(str): The full.ROBLOSECURITYtoken for the target account.
fetchAuthTicket(cookie)
Handles the underlying backend API handshake to retrieve a valid launch token. This involves retrieving a client assertion, obtaining a valid CSRF token, and exchanging them for the final authentication ticket.
cookie(str): The target account's cookie.- Returns: (str) A valid
rbx-authentication-ticket. - Raises:
AuthenticationErrorif the cookie is invalid, missing, or if the API communication fails.
Requirements
- Python >= 3.7
requestslibrary
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file launchroblox-0.1.0.tar.gz.
File metadata
- Download URL: launchroblox-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3221a4e6064ca529668e568aa4533c01aba576780863a6c1719f82798e0d3cb
|
|
| MD5 |
684a18b56ed9387f8f5f042f9e5a8a43
|
|
| BLAKE2b-256 |
60dd8a184f6be9776cab79897756028c2f2e9db2c65e1aa9e053d36911730686
|
File details
Details for the file launchroblox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: launchroblox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bb0f1271b51760a64c61b1329b4e6263f46606c8483671910249d5e056d4cb5
|
|
| MD5 |
642a9eab84414688e9672ee0db1641b0
|
|
| BLAKE2b-256 |
1bdd2f0f29a1ebe57c531866a69749e31af15b9af7442a8c02c09b88004d8713
|