agent

module
v0.1.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

Daemon node untuk Ammonode Panel: menjalankan server game & bot (kompatibel egg Pterodactyl) di container Docker dan melapor ke panel lewat koneksi keluar WebSocket + mTLS.

Status: Fase 0 — join, koneksi mTLS, install & menjalankan server dari egg (start/stop/restart/kill) sudah jalan. Konsol realtime, statistik, config files egg, operasi file, dan SFTP (port 2022) sudah jalan.

Pasang di node (Ubuntu/Debian dengan Docker) — perintah lengkap dengan token ada di halaman node panel:

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

Pengembangan:

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

Dokumentasi: docs/ dan dokumentasi proyek di repo panel.

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 (xml: not yet), {{...}} 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 (xml: not yet), {{...}} 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/protokol-agent.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/protokol-agent.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).

Jump to

Keyboard shortcuts

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