Skip to main content

A lightweight utility to programmatically authenticate and launch the Roblox client.

Project description

LaunchRoblox 🚀

A lightweight, robust, and zero-headache utility to programmatically authenticate and launch the Roblox client using Python.

Built with modern Python standards, LaunchRoblox natively handles the complex roblox-player: URI protocol, API ticket exchanges, and CSRF token generation so you don't have to.

Installation

Install the latest version directly from PyPI:

pip install LaunchRoblox

Features

  • Instant Launching: Bypass the browser and launch directly into a game.
  • Private Server Support: Automatically resolves VIP linkCode URLs into backend access codes.
  • Instance Targeting: Follow users into exact server UUIDs (jobId).
  • Deployment Channels: Test your game on specific Roblox bootstrapper channels (e.g., zCanary).
  • Process Lifecycle Tracking: Capture the running game instance thread to track execution status or block script endings.
  • Native Multi-Instance Support: Programmatically bypass Roblox's single-window mutation restriction on Windows to launch concurrent accounts.
  • Built-in Logging: Fully integrated with Python's native logging module for easy debugging.

Usage Examples

1. Basic Launch (Public Server)

import os
from LaunchRoblox import launchRoblox

cookie = os.getenv("ROBLOX_COOKIE", "_|WARNING:-DO-NOT-SHARE-THIS...")
placeId = 2753915549

launchRoblox(placeId, cookie)

2. Private Server Launch

If you have a VIP server link (e.g., ?privateServerLinkCode=12345...), pass the code directly. The library will safely resolve it into a server access code via the Roblox API before launching.

launchRoblox(
    placeId=2753915549, 
    cookie=cookie, 
    linkCode="your_private_server_link_code"
)

3. Target a Specific Server (Job ID)

Perfect for multi-account testing or following someone into a specific server block.

launchRoblox(
    placeId=2753915549, 
    cookie=cookie, 
    jobId="01af84de-4bca-413c-8361-ec23bfda85b2"
)

4. Custom Deployment Channel

Launch into a specific Roblox testing branch. (Note: Using "LIVE" or leaving this blank will safely default to the public production client).

launchRoblox(
    placeId=2753915549, 
    cookie=cookie, 
    channel="zCanary"
)

5. Process Lifecycle Tracking

launchRoblox returns a RobloxProcess object. You can use this to monitor the client's state, acquire its Process ID (PID), or halt your Python script until the game closes.

from LaunchRoblox import launchRoblox

gameProcess = launchRoblox(2753915549, "YOUR_COOKIE")

if gameProcess:
    print(f"Roblox client running on PID: {gameProcess.pid}")
    
    # Wait until the user closes the game window
    gameProcess.wait()
    print("Roblox has been closed!")

6. Native Multi-Instance Support (Windows Only)

Set multiInstance=True to programmatically claim the system window handle mutex. This allows you to open separate, concurrent account sessions simultaneously without being blocked by the standard single-client limit.

import time
from LaunchRoblox import launchRoblox

# Launch Account 1
launchRoblox(2753915549, "COOKIE_ACCOUNT_1", multiInstance=True)

# Brief pause to let the first client window stabilize
time.sleep(3)

# Launch Account 2 concurrently
launchRoblox(2753915549, "COOKIE_ACCOUNT_2", multiInstance=True)

Advanced: Debug Logging

LaunchRoblox uses Python's standard logging module under the hood. If you are experiencing authentication errors or want to see the background API routing in real-time, simply configure your root logger before calling the launch function:

import logging
from LaunchRoblox import launchRoblox

# Enable info/debug logging to your console
logging.basicConfig(level=logging.INFO, format="[%(levelname)s] %(name)s: %(message)s")

launchRoblox(2753915549, "YOUR_COOKIE")

License

MIT

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

launchroblox-0.3.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

launchroblox-0.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file launchroblox-0.3.0.tar.gz.

File metadata

  • Download URL: launchroblox-0.3.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for launchroblox-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b8aed6ff8a5932f955015e1720cb92756c1502af2b6f3de4b2bc5de6a5c57622
MD5 f1daa7212015b0cd0bfc360deca33316
BLAKE2b-256 c5198b460ba32de4a71a1b0b6643064073fa0a4e5cfed1d73294da93226e335d

See more details on using hashes here.

File details

Details for the file launchroblox-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: launchroblox-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for launchroblox-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7824d8bdc3f195bb78525f1a6e044d6f13a5b5c7e71307d88951942bae9dbe9a
MD5 686682269c787ed4d8756d9d4ead781f
BLAKE2b-256 f62c7edc5067240aed33993f602e083fa0f59f4a4d936597348a646ebea5e143

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page