agent

module
v0.2.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: AGPL-3.0

README

Ammonode Agent

The node daemon for Ammonode Panel: runs game & bot servers (compatible with Pterodactyl eggs) in Docker containers and reports to the panel over an outbound WebSocket + mTLS connection.

Status: join, mTLS link, installing and running servers from eggs (start/stop/restart/kill), realtime console, stats, egg config files, file operations and SFTP (port 2022) work.

Install on a node (Ubuntu/Debian with Docker) — the full command with a token is on the panel's node page:

curl -fsSL https://github.com/Ammonode/agent/releases/download/<version>/install.sh \
  | sudo sh -s -- --panel https://panel.example.com --token <TOKEN>

Development:

make build
./bin/ammonode-agent version
./bin/ammonode-agent join https://panel.example.com --token <token-from-the-panel>
./bin/ammonode-agent run

Documentation: docs/ and the project documentation in the panel repo.

Directories

Path Synopsis
cmd
agent command
Command ammonode-agent is the Ammonode node daemon.
Command ammonode-agent is the Ammonode node daemon.
internal
config
Package config stores what the agent learns when it joins a panel: its identity, where to connect, and the mTLS key material.
Package config stores what the agent learns when it joins a panel: its identity, where to connect, and the mTLS key material.
configfile
Package configfile applies an egg's config.files before each start, following Wings: parsers file, properties, ini, json, yaml and xml, {{...}} placeholders, dotted paths with [n] indexes and "*" wildcards, and {"old": "new"} replacement maps.
Package configfile applies an egg's config.files before each start, following Wings: parsers file, properties, ini, json, yaml and xml, {{...}} placeholders, dotted paths with [n] indexes and "*" wildcards, and {"old": "new"} replacement maps.
docker
Package docker is a minimal Docker Engine API client over a unix socket, built on the standard library only.
Package docker is a minimal Docker Engine API client over a unix socket, built on the standard library only.
link
Package link keeps the agent's connection to the panel: WebSocket over mTLS, hello handshake, and reconnects with backoff (docs/agent-protocol.md in the panel repo).
Package link keeps the agent's connection to the panel: WebSocket over mTLS, hello handshake, and reconnects with backoff (docs/agent-protocol.md in the panel repo).
proto
Package proto holds the service messages exchanged with the panel.
Package proto holds the service messages exchanged with the panel.
service
Package service installs and runs services (game servers, bots) in Docker, following Pterodactyl/Wings conventions so official eggs and yolks images work unchanged: data in /home/container (uid 988), install script in a separate container with the data mounted at /mnt/server, STARTUP in the environment, and stop via console command or signal.
Package service installs and runs services (game servers, bots) in Docker, following Pterodactyl/Wings conventions so official eggs and yolks images work unchanged: data in /home/container (uid 988), install script in a separate container with the data mounted at /mnt/server, STARTUP in the environment, and stop via console command or signal.
sftpd
Package sftpd is the agent's built-in SFTP server.
Package sftpd is the agent's built-in SFTP server.
sysinfo
Package sysinfo collects facts about the node for the panel (Linux).
Package sysinfo collects facts about the node for the panel (Linux).
web
Package web runs website hosting accounts on a node: one Linux user per account, its own PHP-FPM master as a systemd unit (cgroup limits, sandbox), Caddy site blocks imported by the node's Caddyfile, MariaDB databases and a crontab.
Package web runs website hosting accounts on a node: one Linux user per account, its own PHP-FPM master as a systemd unit (cgroup limits, sandbox), Caddy site blocks imported by the node's Caddyfile, MariaDB databases and a crontab.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL