Install the BashPilot agent
Every server you add to BashPilot gets its own install command. You run it once on the server, and the agent registers with your account and starts as a system service.
Requirements
- A 64-bit x86 (amd64) Linux server that uses systemd.
- Root access over SSH.
curlinstalled.- Outbound HTTPS access to
api.bashpilot.comanddownloads.bashpilot.com. The agent does not need any inbound port.
Get your install command
Add the server first (see Getting started). Then copy its command from either place:
- Servers page: click Install Agent on a server that shows Agent Not Installed.
- The server's Manage page: under Reinstall Agent, click Show Reinstall Command.
The command looks like this, with your server's own token at the end:
curl -sSL https://downloads.bashpilot.com/install-agent.sh | bash -s -- --install-token YOUR_INSTALL_TOKEN
What the installer does
-
1
Cleans up
Stops and removes any earlier BashPilot agent install on the server.
-
2
Downloads the agent
Saves the agent to
/usr/local/bin/bashpilot-agent. -
3
Registers the server
Uses your install token to connect the server to your account, and saves the agent's credentials to
/etc/bashpilot/agent_token, readable by root only. -
4
Starts the service
Creates the systemd service
bashpilot-agent, enables it at boot and starts it.
Check that it is running
systemctl status bashpilot-agent
journalctl -fu bashpilot-agent
bashpilot-agent --version
Within a couple of minutes the server shows Agent Online on the Servers page.
Supported platforms
You do not choose the platform. Each time it starts, the agent checks the server and turns on the matching set of actions.
| Platform | Where to install | How it is detected |
|---|---|---|
| cPanel & WHM | The cPanel server | A working cPanel install |
| Plesk | The Plesk server | A working Plesk install |
| DirectAdmin | The DirectAdmin server | A working DirectAdmin install |
| Ubuntu, Debian, AlmaLinux, Rocky Linux | The server itself | The distribution named in /etc/os-release |
| Docker | The Docker host | The Docker CLI or Docker socket, on servers without a control panel |
| Kubernetes | A control-plane node (K3s server or kubeadm control plane) | Control-plane files on the node. The agent manages the cluster through the API server, so worker nodes do not need the agent |
CloudLinux is detected in addition to any of these.
Reinstall on the same server
If you reinstall the operating system, change hardware or the agent needs a fresh start, run the same install command again on the same server. You can reinstall up to 3 times every 30 days. If you reach the limit, contact support for an exception.
A server's install command cannot be used on a different machine. To manage another server, add it separately with its own plan.
Questions
Do I need a different command for each control panel?
No. The install command is the same on every supported platform. The agent detects cPanel & WHM, Plesk, DirectAdmin, the Linux distribution, Docker or Kubernetes on its own and turns on the matching actions.
Does the agent open a port on my server?
No. The agent only makes outbound HTTPS connections to BashPilot. It does not listen on any port, so no firewall rule for inbound traffic is needed.
Last updated · Applies to BashPilot