Files
2026-11-30 16:32:37 +00:00

18 KiB
Raw Permalink Blame History

ADPanel Banner

"A change of thought and perfection found its way."

License Docs Discord

Compatibility: Currently works only with Ubuntu/Debian systems, we work hard to make compatibility to all Linux Distros


⚡ Quick Deployment

ADPanel

sudo mkdir -p /var/www && sudo git clone https://github.com/antonndev/ADPanel.git /var/www/adpanel && cd /var/www/adpanel && sudo bash ./initialize.sh --choice 1

ADaemon

curl -fsSL https://raw.githubusercontent.com/antonndev/ADaemon/main/install.sh | tr -d '\r' | sudo bash -s -- --yes

Overview

ADPanel™ | The open-source Docker Panel engineered for speed. Host containers with ease. While others charge for features, we deliver free.

Architecture

  • Security Rule #1 We bring an Apple-like experience to the developer's workflow.
  • Needing a change Developers shouldn't have to settle for outdated interfaces. We're ending the era of boring, complex UIs.

Documentation & Resources

Infrastructure Support

ADPanel™ isn’t just a game hosting panel, it’s a modern UI capable of running any Docker image on the planet. Start your journey today; our developers are constantly improving the platform to bring an enterprise-grade experience directly on your servers.


Manual Setup

If you prefer to set up ADPanel manually instead of using the one-liner installer:

# Clone the repository
git clone https://github.com/antonndev/ADPanel.git
cd ADPanel

# Copy the example environment file and fill in your values
cp .env.example .env

# Install dependencies
npm install

# Start the panel
npm start

Redis is optional. ADPanel works out of the box with file-based sessions. For production, we recommend enabling Redis — just uncomment SESSION_STORE=redis and set REDIS_URL in your .env file. If Redis becomes unavailable at runtime, the client automatically reconnects with exponential backoff.

Node Connections

The daemon API port is separate from the server allocation pool. For a node behind Cloudflare, HTTPS protects the panel-to-proxy connection; configure Full (strict) TLS for the origin too. The Cloudflare toggle does not proxy game traffic. Add a daemon interface IP as a secondary address and allocate game ports to that IP, not to the Cloudflare hostname. Each port number can be allocated once per node, even when it has multiple interfaces. Heartbeats report liveness and do not change the configured daemon API port.

The setup wizard requires an authenticated response from the daemon before it marks the node identity as verified. Daemons that only echo the probe nonce can still report reachability, but need the corresponding daemon update to pass setup verification. Use an HTTPS PANEL_PUBLIC_URL for setup. Open the panel over HTTPS to download node configuration, generate a setup command, or rotate a node token. ALLOW_INSECURE_NODE_BOOTSTRAP=true bypasses that transport check and is only for isolated development environments. The setup command configures an installed daemon. For HTTPS, provision the certificate and key first and make them readable by the daemon service. Treat a generated setup command as sensitive until it expires: its link can be redeemed once for setup. Rotating the node token invalidates outstanding setup links; generate a new command after rotation.

Public Sign-In

New installations open /login directly. The panel keeps the branded sign-in form and its existing security controls, but uses a neutral title, an empty implicit /favicon.ico, a plain closed-registration response, and an unbranded maintenance page. /healthz and /healtz keep their status, ok, and ts fields; monitoring should not expect a service field. An existing STEALTH_MODE setting overrides the saved gate configuration without changing it. If the setting is absent, the panel uses the saved configuration.

Generated Nginx vhosts also use neutral local error bodies and serve only recognized static file types outside the ACME challenge path. Fresh setup and regeneration of unchanged, checksum-marked vhosts apply these defaults. The in-app code updater does not regenerate Nginx configuration, and the Agent service upgrade only updates service wiring. Old unmarked or edited vhosts and third-party proxies are not rewritten; they only pass along the changes made by the updated app itself. Do not rerun fresh setup to migrate a custom proxy.

The generated vhost serves ACME challenges over IPv4 and, when available, IPv6, even with forced HTTPS. Proxy-backed setup uses Certbot's webroot authenticator. Reusing a dedicated certificate named for the panel hostname requires Certbot 2.3 or newer: setup updates its renewal settings before using it, without forcing early renewal. A failed reload stops setup; if rollback cannot finish, the installer reports where it kept the recovery files. Setup keeps existing managed HTTPS vhosts active during certificate checks. It also verifies that the running proxy serves the intended webroot before calling Certbot and that the generated listeners answer before committing a reload.

This reduces incidental product identifiers. It does not hide the login page, its branding and linked assets, existing session cookie names, DNS or TLS metadata, proxy banners, or past index entries. Crawlers may ignore indexing directives. This is not access control.

Upgrading ADPanel Agent

The migration keeps existing account-bound chats and recovers legacy chats when the saved Agent job records establish one owner. Other legacy chats remain in the database but are not shown to any account. Do not assign them based only on the current holder of an email address.

Planner titles no longer affect what the Agent runs. On existing planner items without a verified author ID, an authorized editor must review and update the prompt text before running it. Renaming the item does not assign authority. A schedule skips an unverified top item without disabling the schedule, and older queued planner jobs without verified authorship must be sent again after review.

The server-page Agent can diagnose a server and request changes for the signed-in operator. General access lets the Agent choose tools as it goes. Read only disables change requests for the next message. The browser remembers the selection for the signed-in account and server; neither option grants permissions or approves a change by itself. The next requested change appears inline with its exact target, command, or file diff. Loading a preview or replying “yes” in chat never approves anything. A review is available for ten minutes or until a newer submission in that chat, and each review token expires after three minutes. The panel rechecks permissions, server identity, and the enabled worker generation before dispatch.

New turns do not generate an upfront plan. Accept runs only the displayed action; Decline sends no server operation. After either decision or a definite refusal, the worker resumes the same chat turn with the recorded outcome. It can read more files, check the console, or ask for the next change before writing its conclusion. Before ending a resumed turn, it checks the original request against the recorded outcomes for unfinished work. The Actions log stays beside the reply after the conclusion and on reload. It contains targets, reviewed commands acknowledged by the node, and outcomes, not file contents or console output. One turn allows up to 24 reviewed actions, with provider and time limits still in effect. An unconfirmed operation stops the turn; none of the confirmed changes are automatically rolled back. A power or command acknowledgement does not establish the final result. When an edit acknowledgement is lost, the panel may verify the bytes with a read but never retries the write. Old saved reviews and their undo records remain readable.

For node-backed servers, reviewed operations are start, stop, restart, force stop, one server-console command, create/edit/replace/revert/delete a text file, create a folder, and create/restore/delete a backup. A setting edit replaces one exact, unique fragment and preserves the rest of the file. An explicit whole-file replacement reads the current contents for the diff and removes settings not included in the replacement. The panel records the original text of confirmed replacements in the chat's job records for undo; the conclusion does not receive that text. Revert file edit restores a recorded edit or replacement in the same chat only if the file still matches the resulting version. It cannot reconstruct an older overwrite that did not record the original text; recover that from a known-good backup or version history. Reviewed edits, replacements, reverts, and deletions require a matching version on the daemon and are limited to 16,000 bytes of text. Deploy the panel and worker together, and use a daemon with version-checked writes.

Planner and Scheduler: Confirming a Planner send authorizes targeted edits to existing text files for that run. Confirming either Scheduler Agent action authorizes those edits on every occurrence. Send Next Plan can therefore run prompts added later, subject to the current permissions of both the runner and the prompt author. Runs without consent remain diagnostic-only. Automatic jobs allow up to five edit attempts, and do not run commands, manage backups, create or delete files, or replace entire files. Live chats still require manual review. Ordinary Scheduler actions are unchanged.

An automatic edit requires a complete read from the same path and node, followed by a version check at the daemon. A consented Planner run only marks the item done automatically when it confirms a write and reports no unfinished edit work. If the run finishes without a confirmed write, or an interrupted run may have written files, the item stays open with Check Agent edits and scheduled runs skip it. Review the result and affected files before sending it again or marking it done yourself. A stopped run does not undo a write that already reached the node.

Scheduler keeps a database receipt for each admitted Agent occurrence, independently of the job and chat history. Redelivery reuses that receipt instead of running the prompt again. Deleting a schedule blocks later Agent admission and retracts only that schedule's queued Agent jobs. Agent jobs already running are not cancelled by schedule deletion.

Drain automatic jobs before rolling back. Workers that predate the separate automatic-edit generation cannot claim these queued jobs. The current worker rejects automatic jobs without a matching generation, including prior-protocol jobs that an older panel admits after startup.

Model instructions: The shared policy is AGENT_ACTION_INSTRUCTIONS in AgentWorker/action-proposal.js. AgentWorker/run-job.js selects it for live server-page jobs, and AgentWorker/conversation.js injects it through buildBotAssistantSystemPrompt in utils/bot-ai-tools.js. AgentWorker/provider-turns.js sends it to OpenAI-style providers (OpenAI, OpenAI-compatible, Groq, Together, Hugging Face, and OpenRouter), Cohere, Google, and Anthropic. The model uses propose_server_action for a single next action, either as a native call or in a standalone tagged tool request. The prompt guides the model; the panel enforces authorization and executes only reviewed actions.

Provider setup: Select Groq and enter a Groq API key to load its current catalog. For a custom provider, select OpenAI Compatible and enter the final Chat Completions API base URL, preferably HTTPS. Leave Model IDs blank for automatic /models discovery, or enter up to 32 exact IDs, one per line, to use a manual list. Setup sends a small validation completion for one listed model, preferring a newly added ID. Later picker loads list all saved IDs without another completion. Reopen the provider to add, remove, or reorder IDs; leave API Key blank to keep the saved key on the same origin. Invalid credentials or a failed validation do not replace saved settings. Changing the scheme, host, or port of a custom API requires re-entering its key if authentication is needed. ADPanel does not follow provider redirects or discover models from arbitrary websites or incompatible APIs.

File Manager Permissions

Delegates with Upload files can add new files using the file picker, drag and drop, or the URL uploader. Replacing an existing file also requires Edit existing files. Administrators keep their existing upload access. A protected upload returns a conflict if the name is already taken, even if another writer created the destination during the transfer.

Upgrade the node daemons before deploying a panel that uses protected uploads and guarded editor saves. An updated panel does not retry these operations without their protections when an older daemon rejects them. Use HTTPS so the browser can hash the exact bytes loaded by the editor. Guarded saves serialize against other daemon writes; an independent process writing directly to the same file does not take that lock.

Upgrade destination daemons before using Transfer in Settings > Servers. Protected transfers refuse to overwrite an existing destination and do not fall back to the legacy replacement import.

Server Backups

Create and restore backups is one permission. Restore stops the server and replaces its files; Delete backups is separate. The server stays stopped after a successful restore. Backups copy regular files and directories, not symlinks or special files. Stop the application before taking a backup that needs a consistent on-disk state.

Replacement restore needs enough quota for a staged copy while the existing files are still present. The daemon refuses replacement if it cannot safely exchange the directories, including unsupported filesystems or mounts within the server tree. If backup metadata cannot be read, the payload is retained for operator recovery rather than deleted when the tab refreshes.

Generated Nginx configurations allow backup create and restore requests to wait up to 1,900 seconds for an upstream response. Existing configs do not change on a panel or daemon update. When using an operator-managed proxy, make sure its backup request timeout covers the panel's 1,830-second restore relay plus preflight time.

Reinstalling Docker Servers

Deploy the panel and daemon together and use node HTTPS with certificate and hostname verification enabled. Reinstall stages the replacement before stopping the old container. If another power operation already holds the server lock, or a graceful stop is pending, reinstall refuses without replacing files. During reinstall, panel power actions are refused until the outcome is reconciled. A successful reinstall starts the replacement even if the old server was stopped, unless startup requires Minecraft EULA consent or no runtime image is configured. Backups are separate. If replacement startup fails and rollback is confirmed, the old files and settings are restored and the server stays stopped.

The store's browsing preference does not change a remote server's installed template. If the panel and daemon disagree about the template, an ordinary reinstall refuses before replacing any files. An administrator should review the assignment before using the destructive template change or reapply action.

If the runtime image defines a Docker health check, reinstall keeps the previous files until the replacement is healthy. An unhealthy replacement rolls back; a health check that is still starting when the observation window ends leaves the operation pending for recovery. For images without a health check, reinstall verifies that the same container run stays up, not that the application is ready to accept traffic.

Custom templates must use images from an allowed registry and keep persistent data in server-directory bind mounts. Reinstall refuses Docker-managed volumes outside that directory rather than wiping data it cannot roll back. Installer images need a shell, tar, and any dependencies preinstalled: their root filesystem is read-only and output is limited to regular files and directories in bounded scratch space. The default staged installer output cap is 1 GiB, separate from a template's minimum storage requirement. Large-output installers need a dedicated, nodev,nosuid filesystem configured through ADPANEL_REINSTALL_INSTALLER_SCRATCH; ADPANEL_REINSTALL_INSTALLER_MAX_MB controls the output cap, which remains subject to available disk and server quota.

The final runtime bind mounts must have distinct destinations and expose the staged installer output. Reinstall refuses before teardown if the image's default startup would drop a configured installer mount or none of the staged installer files would be visible. An image-backed custom template must provide a startup command or use an image with a default entrypoint or command. Reinstall does not generate a sample app to replace a missing custom entrypoint. A managed startup script replaces the image's default command when it has no entrypoint; otherwise the image's entrypoint must honor the STARTUP environment variable. A replacement that fails under the selected runtime user is not retried with a different user.

For a template with a fixed internal port, Docker publishes the panel allocation to that port, and the staged installer and runtime receive the internal port in their startup settings. Templates configured to listen on the allocated host port continue using that port inside the container.

License

Released under the MIT License. Copyright © 2026 - present ADPanel Workers.