Skip to main content

CLI tool for Throne - xray client

Project description

ThroneTools

Cross-platform CLI to install, reinstall, uninstall, and manage configuration for Throne(NekoRay) on Linux, macOS, and Windows.

Python 3.10+ GitHub stars GitHub forks GitHub issues

Actions Status Coverage Status License: MIT PyPI Supported Python Versions

Requirements

  • Python 3.10+
  • uv

Features

  • Cross-platform — Linux, macOS, and Windows support
  • Self-update — Update Throne to the latest release with one command
  • Geo data management — Install and verify geoip/geosite databases for sing-box

Quick Start (uv)

# from repo root
uv sync
uv run thronetools --help

Run without subcommands to show the styled help:

uv run thronetools

Commands

thronetools install
thronetools update --app {throne|nekoray}
thronetools backup --app {throne|nekoray} [--output <path-or-dir>]
thronetools restore --app {throne|nekoray} --zip <backup.zip>
thronetools remove --app {throne|nekoray}
thronetools reinstall --app {throne|nekoray} [--backup] [--output <path-or-dir>] [--force]
thronetools version --app {throne|nekoray}
thronetools geo-install --app {throne|nekoray}
thronetools hotspot enable [--iface <iface>] [--ssid <name>] [--password <pass>] [--dry-run]
thronetools hotspot disable [--dry-run]

Common Examples

# Install Throne
uv run thronetools install

# Update Throne to the latest version
uv run thronetools update --app throne

# Install/update geoip and geosite databases
uv run thronetools geo-install --app throne

# Backup Throne config to current directory
uv run thronetools backup --app throne

# Backup NekoRay config to a specific folder
uv run thronetools backup --app nekoray --output ~/Backups

# Restore Throne config
uv run thronetools restore --app throne --zip ~/Backups/throne-backup-2026-02-17.zip

# Reinstall with backup + restore flow
uv run thronetools reinstall --app throne --backup

# Show installed app details
uv run thronetools version --app throne

# Preview hotspot commands without applying changes
uv run thronetools hotspot enable --iface wlp2s0 --dry-run

Notes

  • hotspot commands are supported on Linux and macOS. On Windows, hotspot subcommands are not available.
  • Some operations require elevated privileges depending on platform/package manager.

Development

# Lint/format (Ruff is configured in pyproject.toml)
uv run ruff check .
uv run ruff format .

# Build package
uv build

Related Projects

Explore other CLI tools by Arian Omrani:

  • LinkCovery - Modern bookmark management CLI tool
  • PEM - Python Execution Manager - Schedule and execute Python scripts
  • OllamaTools - CLI tool for managing Ollama models

Install as a tool (optional)

If you want a globally available command via uv:

uv tool install .
thronetools --help

To update later:

uv tool upgrade thronetools

License

MIT License — see the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit a pull request.

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

thronetools-1.1.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

thronetools-1.1.2-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file thronetools-1.1.2.tar.gz.

File metadata

  • Download URL: thronetools-1.1.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thronetools-1.1.2.tar.gz
Algorithm Hash digest
SHA256 04a6173388db92470f02c739887e49fd0eb5e09af63fe0ca19b908f477c21f94
MD5 43a1a3f21fd8dab11c8a0ff1d5b5ee71
BLAKE2b-256 d2722b20cf99aaf12c5c9cac2fba878b2478d03ad4a18fe20db6dd2b50e685a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for thronetools-1.1.2.tar.gz:

Publisher: release.yml on arian24b/thronetools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thronetools-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: thronetools-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thronetools-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 18b04ab72eb448b76fcced1e31e8a0ee64984df409984f78ddffc63b9c558978
MD5 26c35123ce46dd57340eaff2327c3cc1
BLAKE2b-256 727d28665056e47183fe2c4061ee24d3a154b65da8baf9d290ebdef699ac013d

See more details on using hashes here.

Provenance

The following attestation bundles were made for thronetools-1.1.2-py3-none-any.whl:

Publisher: release.yml on arian24b/thronetools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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