Skip to main content

LocalStream

Version Python Platform License PyPI Downloads

A Python client for slipstream-rust, Ping Tunnel and DNSTT, Sing-Box and DoH. designed to bypass censorship and secure your connection with more than 5 methods!.


📖 Overview

LocalStream simplifies the usage of complex DNS tunneling. It wraps the powerful slipstream-rust, PingTunnel, DNSTT, Sing-Box and DoH into a user-friendly interface that manages dependencies, connectivity, and routing automatically.

Designed specifically to operate in restricted network environments, LocalStream supports advanced features like TLS Fragmentation and System-wide VPN (via tun2proxy). Whether you need to secure your entire system or just provide a SOCKS5 proxy for specific applications, LocalStream offers a stable and resilient solution.

✨ Features

  • Dual Operation Modes: Switch effortlessly between VPN Mode (full device tunneling) and Proxy Mode (SOCKS5).
  • Censorship Circumvention: Optimized for users in high-censorship regions (e.g., Iran), with support for TLS fragmentation and custom DNS resolvers.
  • Automated Management: Automatically downloads and configures necessary binaries (slipstream-client, tun2proxy, wintun).
  • Resilient Connectivity:
    • Auto-Reconnect: Intelligent watchdog monitors your connection and reconnects instantly if it drops.
    • Auto-Restart: Optional scheduled restarts to maintain long-term stability.
  • Config Import/Export: Securely share configuration profiles encrypted with .local files.
  • DNS Checker: you can use the DNS Checker in both CLI and GUI to check if your DNS works or not.
  • Multi-Muthod Support: this tool supports SlipStream/DNSTT/PingTunnel Configs in both CLI and GUI

📥 Installation

For End Users

Download the latest Setup/Portable from our releases page and run the installer.

For Developers

Install via pip:

pip install localstream

Or for local development:

git clone https://github.com/ShiftGlory/LocalStream.git
cd LocalStream
pip install -e .

🚀 Usage

GUI Application

Launch LocalStream from your Start Menu or Desktop shortcut.

  1. Add your server configuration or import a profile.
  2. Select VPN Mode or Proxy Mode.
  3. Click Connect.

Command Line Interface (CLI)

Run the application from your terminal:

LocalStream

Follow the interactive menu prompts to configure your server and start the connection.

⚠️ Important: To use VPN Mode, you must run the application with elevated privileges:

  • Windows: Run as Administrator
  • Linux: Run with sudo

⚙️ Configuration

Your configuration is stored in ~/.localstream/config.json. You can edit it via the application or manually:

{
  "server_ip": "203.0.113.2",
  "server_port": 53,
  "local_port": 5201,
  "domain": "s.example.com",
  "keep_alive_interval": 200,
  "congestion_control": "bbr",
  "enable_fragmentation": false,
  "auto_restart_minutes": 0
}

🛠️ Requirements

  • Operating System: Windows 10/11 or Linux (Ubuntu, Debian, Fedora, Arch, etc.)
  • Python: 3.11 or higher (for source installation)
  • Privileges: Administrator/sudo rights (required for VPN mode)

🤝 Contributing

We welcome contributions! Please check out our CONTRIBUTING.md guide for details on how to get involved.

🔒 Security

We take security seriously. Please review our SECURITY.md policy for reporting vulnerabilities.

📄 License

This project is licensed under the Apache-2.0 License. See the LICENSE file for full details.


Built with ❤️ by GloryMajor

Metadata

Release files for localstream 1.0.9

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

Source distribution (sdist)

Source distribution for localstream 1.0.9
File Size Uploaded Provenance Actions
localstream-1.0.9.tar.gz 49.6 kB Without provenance Details for localstream-1.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for localstream 1.0.9
File Interpreter ABI Platform Actions
localstream-1.0.9-py3-none-any.whl Python 3 none any Details for localstream-1.0.9-py3-none-any.whl

Total release size: 101.8 kB

Release files / localstream-1.0.9.tar.gz

Download URL localstream-1.0.9.tar.gz
Size 49.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dea5b213e0391d60602c53c2223781723471d060d625146015a5fddcb3246659
BLAKE2b-256 checksum
How to use checksums
aeea9ef63dfc98e287f2bbf7e59c8e2169f258a933c19b5c0145a46552a3dc98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / localstream-1.0.9-py3-none-any.whl

Download URL localstream-1.0.9-py3-none-any.whl
Size 52.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dc874362f2a6f32a238c31e523df0122dab668f1910f796bf6e45eef76bcf8c
BLAKE2b-256 checksum
How to use checksums
39b969aeb33ec62bcf5272fa003d7c6626271b2b08566e174c316bdffadf8aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Security for localstream 1.0.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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