2026-04-06 14:43:41 +08:00
2026-04-06 14:43:39 +08:00
2026-04-06 14:43:40 +08:00
2026-04-06 14:43:41 +08:00

DAN Binary Releases

Public binary-only distribution for dan, dan-web, and dan-token-refresh.

This repository does not contain the application source code. It only contains:

  • cross-platform compiled binaries published in GitHub Releases
  • one-click install scripts
  • runtime config examples

Quick Start

Linux or macOS:

curl -fsSL https://raw.githubusercontent.com/uton88/dan-binary-releases/main/install.sh | bash -s -- \
  --cpa-base-url 'https://gpt-up.example.com/' \
  --cpa-token 'replace-me' \
  --mail-api-url 'https://gpt-mail.example.com/' \
  --mail-api-key 'replace-me' \
  --threads 68

Debian or Ubuntu one-click install with systemd:

curl -fsSL https://raw.githubusercontent.com/uton88/dan-binary-releases/main/install.sh | bash -s -- \
  --systemd \
  --cpa-base-url 'https://gpt-up.example.com/' \
  --cpa-token 'replace-me' \
  --mail-api-url 'https://gpt-mail.example.com/' \
  --mail-api-key 'replace-me' \
  --threads 68

No-root Linux one-click install and background run:

curl -fsSL https://raw.githubusercontent.com/uton88/dan-binary-releases/main/install.sh | bash -s -- \
  --install-dir "$HOME/dan-runtime" \
  --background \
  --cpa-base-url 'https://gpt-up.example.com/' \
  --cpa-token 'replace-me' \
  --mail-api-url 'https://gpt-mail.example.com/' \
  --mail-api-key 'replace-me' \
  --threads 68

Linux or macOS with proxy:

curl -fsSL https://raw.githubusercontent.com/uton88/dan-binary-releases/main/install.sh | bash -s -- \
  --install-dir "$HOME/dan-runtime" \
  --background \
  --default-proxy 'socks5://user:pass@127.0.0.1:1080' \
  --cpa-base-url 'https://gpt-up.example.com/' \
  --cpa-token 'replace-me' \
  --mail-api-url 'https://gpt-mail.example.com/' \
  --mail-api-key 'replace-me' \
  --threads 68

Windows PowerShell:

$p = Join-Path $env:TEMP 'dan-install.ps1'; Invoke-WebRequest 'https://raw.githubusercontent.com/uton88/dan-binary-releases/main/install.ps1' -OutFile $p; & $p -CpaBaseUrl 'https://gpt-up.example.com/' -CpaToken 'replace-me' -MailApiUrl 'https://gpt-mail.example.com/' -MailApiKey 'replace-me' -Threads 68

Windows PowerShell with proxy:

$p = Join-Path $env:TEMP 'dan-install.ps1'; Invoke-WebRequest 'https://raw.githubusercontent.com/uton88/dan-binary-releases/main/install.ps1' -OutFile $p; & $p -DefaultProxy 'socks5://user:pass@127.0.0.1:1080' -CpaBaseUrl 'https://gpt-up.example.com/' -CpaToken 'replace-me' -MailApiUrl 'https://gpt-mail.example.com/' -MailApiKey 'replace-me' -Threads 68

Default behavior

  • installs dan-web by default
  • downloads the matching binary for the current OS and CPU architecture
  • writes config.json
  • writes config/web_config.json
  • fetches the domain list from the CPA /v0/management/domains endpoint during install
  • if default_proxy is provided, the installer automatically writes use_registration_proxy=true

Optional parameters

Linux or macOS installer flags:

  • --component dan-web|dan|dan-token-refresh
  • --install-dir /path/to/runtime
  • --version latest|vX.Y.Z
  • --cpa-base-url URL
  • --cpa-token TOKEN
  • --mail-api-url URL
  • --mail-api-key KEY
  • --threads 68
  • --web-token linuxdo
  • --client-api-token linuxdo
  • --port 25666
  • --default-proxy URL
  • --systemd
  • --service-name dan-web
  • --background
  • --log-file /path/to/dan-web.log
  • --pid-file /path/to/dan-web.pid

Windows installer parameters match the same fields:

  • -Component
  • -InstallDir
  • -Version
  • -CpaBaseUrl
  • -CpaToken
  • -MailApiUrl
  • -MailApiKey
  • -Threads
  • -WebToken
  • -ClientApiToken
  • -Port
  • -DefaultProxy

Supported proxy URL schemes:

  • http://host:port
  • https://host:port
  • socks5://host:port
  • socks5h://host:port

Domain list source:

  • if cpa_base_url is set to https://host/, the installer fetches domains from https://host/v0/management/domains
  • if cpa_base_url is set to https://host/v0/management, the installer fetches domains from https://host/v0/management/domains
  • if cpa_base_url is empty, the installer falls back to https://gpt-up.icoa.pp.ua/v0/management/domains

Release assets

Use the public release assets directly if you do not want the installer:

  • https://github.com/uton88/dan-binary-releases/releases/latest

The release publishes these binaries:

  • dan for windows/linux/darwin on amd64/arm64
  • dan-web for windows/linux/darwin on amd64/arm64
  • dan-token-refresh for windows/linux/darwin on amd64/arm64
  • SHA256SUMS.txt

Config examples

Description
No description provided
Readme 96 KiB
Languages
Shell 69.6%
PowerShell 30.4%