A web-based platform for remote script execution suitable for personal and small server environments. Practical, secure, and easy to manage.
Dashboard – launch scripts and monitor job results in real time
AI Troubleshooter – analyze errors and get actionable fix suggestions
From ad-hoc script execution to scheduled jobs, BashTower covers the full lifecycle.
Run Bash or Python scripts on multiple hosts simultaneously via SSH with real-time output streaming.
Save reusable script templates with syntax highlighting, categories, and dynamic argument support.
Parameterize templates with text, password, number, or select fields — filled at runtime.
Organize hosts into logical groups (e.g. "Web Servers", "Databases") for bulk targeted operations.
SSH private keys are encrypted at rest with AES-256 and never exposed in the UI.
Schedule recurring script execution with standard cron expressions and a full execution history.
Analyze job failures and get fix suggestions via OpenAI, Google Gemini, or self-hosted Ollama.
Push templates to a Git repo for version control, and create full backups to a dedicated branch.
Auto-import your host inventory directly from a Red Hat Satellite / Foreman instance.
Built-in user management with admin roles. Authentication can be disabled for trusted environments.
One-command deployment with Docker. Available on Docker Hub and GitHub Container Registry.
Clean Tailwind CSS interface that works across desktop, tablet, and mobile browsers.
Docker is the recommended way. No dependencies to manage beyond Docker itself.
Official image updated with every release. The fastest way to get started.
View on Docker HubSame image, also published to GHCR — interchangeable with Docker Hub.
View on GHCR# Pull and run from Docker Hub docker run -d \ --name bashtower \ --restart unless-stopped \ -p 1008:1008 \ -v bashtower_data:/app/instance \ ftsiadimos/bashtower # Or from GitHub Container Registry docker run -d \ --name bashtower \ --restart unless-stopped \ -p 1008:1008 \ -v bashtower_data:/app/instance \ ghcr.io/ftsiadimos/bashtower:latest # Access at http://localhost:1008 (default login: admin / admin)
# docker-compose.yml version: '3.8' services: bashtower: image: ftsiadimos/bashtower # or ghcr.io/ftsiadimos/bashtower:latest container_name: bashtower ports: - "1008:1008" volumes: - ./instance:/app/instance restart: unless-stopped
docker compose up -d
# Clone the repository git clone https://github.com/ftsiadimos/BashTower.git cd BashTower # Create and activate a virtual environment python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate # Install dependencies pip install -r requirements.txt # Run the application flask run --host=0.0.0.0 --port=1008
Default login: admin / admin. You will be prompted to change the password on first login.
Navigate to Keys and add your SSH private keys. They are encrypted with AES-256 at rest.
Go to Hosts and register your servers with their hostname, SSH user, and port.
Use Host Groups to cluster servers logically (e.g. "Web", "DB") for bulk targeting.
Write Bash or Python scripts in Templates. Add dynamic {{arguments}} for flexibility.
From the Dashboard, pick a template, select targets, and click Launch Script. Watch live output per host.
BashTower exposes a JSON API for scripting and integration.
| Method | Endpoint | Description |
|---|---|---|
POST | /api/auth/login | Authenticate and get a session |
GET | /api/templates | List all script templates |
POST | /api/templates | Create a new template |
GET | /api/hosts | List all hosts |
POST | /api/hosts | Add a new host |
GET | /api/groups | List all host groups |
POST | /api/groups | Create a host group |
POST | /api/run | Execute a template on target hosts |
GET | /api/jobs | List job history |
GET | /api/jobs/<id> | Get job detail with per-host logs |
GET | /api/cronjobs | List scheduled cron jobs |
POST | /api/cronjobs | Create a cron job |
curl -X POST http://localhost:1008/api/run \
-H "Content-Type: application/json" \
-d '{
"template_id": 1,
"host_ids": [1, 2],
"key_id": 1,
"arguments": {"env": "production"}
}'