Repository navigation
Conversation
Try this script
COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/andy-vdg/DevScripts/agentgateway \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/andy-vdg/DevScripts/agentgateway/ct/agentgateway.sh)"
Against a core branch as wellAdd Useful flags while testing
|
…ownload or checksum fails
…ng; restore it on any update failure
| # Any failure from here on, including a new version that will not start, puts the | ||
| # previous binary back and restarts it. | ||
| if fetch_and_deploy_gh_release "agentgateway" "agentgateway/agentgateway" "singlefile" "latest" "/opt/agentgateway" "agentgateway-linux-$(arch_resolve "amd64" "arm64")" && | ||
| AGW_SUM=$(curl -fsSL "https://github.com/agentgateway/agentgateway/releases/download/v$(cat ~/.agentgateway)/agentgateway-linux-$(arch_resolve "amd64" "arm64").sha256" | awk '{print $1}') && | ||
| [[ -n "$AGW_SUM" && "$AGW_SUM" == "$(sha256sum /opt/agentgateway/agentgateway | awk '{print $1}')" ]] && | ||
| chmod +x /opt/agentgateway/agentgateway && | ||
| systemctl start agentgateway && sleep 5 && systemctl is-active -q agentgateway; then | ||
| rm -f /opt/agentgateway/agentgateway.bak ~/.agentgateway.bak | ||
| msg_ok "Started agentgateway $(cat ~/.agentgateway)" | ||
| else | ||
| systemctl stop agentgateway 2>/dev/null | ||
| mv /opt/agentgateway/agentgateway.bak /opt/agentgateway/agentgateway | ||
| mv ~/.agentgateway.bak ~/.agentgateway | ||
| systemctl start agentgateway | ||
| msg_error "agentgateway update failed (download, checksum or start); the previous version was restored and restarted" | ||
| exit 1 | ||
| fi | ||
| msg_ok "Updated successfully!" | ||
| fi |
There was a problem hiding this comment.
remove comments and the if check
| cp -a /opt/agentgateway/agentgateway /opt/agentgateway/agentgateway.bak | ||
| cp -a ~/.agentgateway ~/.agentgateway.bak |
There was a problem hiding this comment.
we have a backup and restore function. can you use that like other scripts do?
✍️ Description
New script: agentgateway — the Linux Foundation's open-source proxy for AI agents (MCP servers, LLM providers, HTTP APIs), Apache-2.0, Rust, single static binary.
ct/agentgateway.sh,install/agentgateway-install.sh,json/agentgateway.json.fetch_and_deploy_gh_release … "singlefile"(latest release), then the binary is checked against the release's own.sha256asset before anything runs it./etc/agentgateway/config.yamlis the config agentgateway bootstraps itself when started without one: adefaultgateway on port 4000 with the UI on it, state in SQLite (here/opt/agentgateway_data/data.db, outside the deploy target). The easy way in ishttp://<IP>:4000/ui, where agentgateway's Welcome to Agentgateway wizard guides the first setup. The admin interface stays on127.0.0.1:15000, upstream's default (it has no authentication and serves shutdown/config-dump endpoints).ui.policies(basicAuth, OIDC, JWT).check_for_gh_release, redeploy, checksum check again. No backup needed: config (/etc/agentgateway) and data (/opt/agentgateway_data) live outside the deploy target.Upstream research: agentgateway ships prebuilt
agentgateway-linux-amd64/-arm64binaries with.sha256files on every GitHub release; no external runtime or database server (SQLite is built in). The config is exactly whatagentgatewaywrites to~/.config/agentgateway/config.yamlon a first run without-f(checked on v1.6.0:config.database.urlsqlite,gateways.default.port: 4000,ui.gateways: default), with the database moved to/opt/agentgateway_data. Without that database the Welcome wizard does not appear. No Dockerfile is needed for a bare-metal install of a static binary.🔗 Related PR / Issue
Link: none
✅ Prerequisites
🏗️ arm64 Support
agentgateway-linux-arm64v1.6.0 checksum matched the release.sha256, the script's config validated, the UI answered 200 on port 4000 and the SQLite database was created. Upstream publishes the arm64 binary and checksum on every release, sovar_arm64=yes.)🖥️ Tested on
Tested on Proxmox VE 9, Debian 13 template, unprivileged: unattended create and an interactive create through the menus; from another LAN host
:4000/ui→ 200 and the Welcome wizard opens,:15000not reachable;pct reboot→ UI back; update path from a lowered~/.agentgateway→ new release deployed, checksum verified, config and data unchanged, UI 200.🛠️ Type of Change
🔍 Code & Security Review
CODE-AUDIT.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)🤖 AI Assistance
AGENTS.mdand.github/agents/pve-script-creator.agent.mdas guidance, output reviewed and corrected to match.Claude Opus 5.5 (Anthropic), in Claude Code, used to draft both scripts and the JSON from
AGENTS.md, run the test builds on my Proxmox host, and fix what the tests found. I reviewed the result and directed the changes.One addition beyond the template: after
fetch_and_deploy_gh_release, both the install and the update verify the binary against the.sha256file upstream publishes for each release asset, and stop if it does not match. No helper covers this, so it is a few lines ofcurl+sha256sum. If you would rather keep to the template, I will remove it.📦 Application Requirements
🌐 Source