Skip to main content

Transform any command-line program into an auto-restarting background service

Project description

Autostartx - Turn Any Command into a Service

Transform any command-line program into an auto-restarting background service with a single command. Simple, fast, zero configuration.

Python License

中文文档 | English

Quick Start

Option 1: One-time use with uvx

Turn long-running commands into services

uvx autostartx add "python -m http.server 8000" --name web

Option 2: Install to system

Install once, use anywhere

pip install autostartx

or

uvx autostartx install

Option 3: Traditional install

git clone https://github.com/faker2048/autostartx.git && cd autostartx && pip install .

Basic Usage

autostartx add "python -m http.server 8000" --name web
autostartx add "tailscale up --ssh" --name vpn

# Or use the short alias 'asx' (same functionality)
asx add "python -m http.server 8000" --name web
asx list

Check your services

autostartx list        # Show all services
autostartx logs web -f # View logs

# Short version
asx list
asx logs web -f

Commands

autostartx add "command"           # Add service (or: asx add "command")
autostartx list                   # Show services (or: asx list)
autostartx start/stop/restart     # Control services  
autostartx logs <name> -f         # View logs
autostartx daemon --action start  # Auto-restart daemon

Why Autostartx?

  • Simple: One command to turn any long-running process into a service
  • Reliable: Automatic restarts when processes crash
  • Cross-platform: Works on Windows, Linux, macOS
  • Zero config: No setup files needed

Perfect for dev servers, background daemons, monitoring tools, proxy services.

License

MIT License

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

autostartx-1.0.5.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

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

autostartx-1.0.5-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file autostartx-1.0.5.tar.gz.

File metadata

  • Download URL: autostartx-1.0.5.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for autostartx-1.0.5.tar.gz
Algorithm Hash digest
SHA256 7ab6bb3f017da3c92afc9420cb40d4a83085b6b1eab6af1d4e2dc0a36babf23f
MD5 0b79799a8b52b6b86436ab26a0a781ad
BLAKE2b-256 b92ec1e7cf5a51996428cab49723941f49c3aeb6b596f19f02b8dd46b50e8c52

See more details on using hashes here.

File details

Details for the file autostartx-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: autostartx-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for autostartx-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9f8d8bff1af13ac4125e9c79004bbc157c679ed5ff8c43e65c43ccae855f7513
MD5 6e802724803aed09cee1c5444c19bddd
BLAKE2b-256 57b8618e384e4707b33a14b0c9996388ca783f750d55a9fac2af6b3d7d505bf4

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