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.1.tar.gz (25.4 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.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autostartx-1.0.1.tar.gz
  • Upload date:
  • Size: 25.4 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.1.tar.gz
Algorithm Hash digest
SHA256 85554caea30ffa58d4eaaa326c091ebc08e96e542851914730768fb2ad29dce2
MD5 a0d0867afdbf1bfb4054a323e5102b45
BLAKE2b-256 f0f63c0b8fdf85e9fec7d47d3edcc3f1c3aae6e3ae8dc53a103f44a3a8f27579

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autostartx-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 25.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c69d2e2c204bc9d74ac642495508f4143273ab502612b3fe989e4d2ced88388a
MD5 34fff948b9dbf5519f32614eda6a9625
BLAKE2b-256 9bd510fb892ba5356c63d87e5b31fcd8d4532a87ae549c52b5eb1b81a8ecbd20

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