Добавить AutoGPT и Pi Coding Agent #11

Merged
ochenstarik-ui merged 1 commit from codex/add-autogpt-pi-agents into main 2026-07-15 08:50:26 +00:00
12 changed files with 38 additions and 24 deletions

View file

@ -66,7 +66,7 @@ The wizard downloads any missing module from the `main` branch and validates it
| `ochenstarik-server-vpn-5.sh` | System VPN through Xray with a selectable subscription port | Optional |
| `ochenstarik-server-panel-warp-6.sh` | 3x-ui panel and local Cloudflare WARP proxy | Optional |
| `ochenstarik-server-backup-7.sh` | Protected initial snapshot and selected daily, weekly, or monthly schedules | Optional |
| `ochenstarik-server-ai-agents-8.sh` | Installs selected AI agents for a regular user: Hermes, OpenClaw, OpenHands, OpenCode, or Aider | Optional |
| `ochenstarik-server-ai-agents-8.sh` | Installs selected AI agents: Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT, or Pi Coding Agent | Optional |
| `ochenstarik-server-uninstall.sh` | Removes project-managed settings so installation can start again | Use carefully |
Every module can be downloaded and run independently:
@ -94,7 +94,9 @@ Replace `SCRIPT_NAME.sh` with the required filename from the table.
## Optional AI agents
Step 8 offers a multiple selection of five popular agents: Hermes Agent, OpenClaw, OpenHands, OpenCode, and Aider. Installers are downloaded only from each project's official HTTPS endpoint, checked with `bash -n`, and executed as the selected regular user rather than `root`.
Step 8 offers a multiple selection of seven popular agents: Hermes Agent, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT, and Pi Coding Agent. Installers are downloaded only from each project's official HTTPS endpoint, checked with `bash -n`, and launched as the selected regular user rather than directly as `root`.
AutoGPT is a larger Docker-based platform. Its official installer can request `sudo`, install Docker-related dependencies, and start local services. Pi is a lightweight terminal coding agent; after installation, start it with `pi` and use `/login` to connect a supported provider.
The script does not request or store model-provider API keys. After installation, log in as the selected user and run the displayed onboarding command. AI agents can execute commands, access files, install plugins, and use network services; review their permissions and sandbox settings before connecting production data or secrets.

View file

@ -28,6 +28,6 @@ sudo ./ochenstarik-server-install.sh
5. VPN للنظام باستخدام Xray.
6. لوحة 3x-ui ووكيل Cloudflare WARP المحلي.
7. النسخة الأولية والنسخ اليومية أو الأسبوعية أو الشهرية.
8. وكلاء ذكاء اصطناعي اختياريون: Hermes أو OpenClaw أو OpenHands أو OpenCode أو Aider.
8. وكلاء ذكاء اصطناعي اختياريون: Hermes أو OpenClaw أو OpenHands أو OpenCode أو Aider أو AutoGPT أو Pi Coding Agent.
لا تغلق جلسة SSH الحالية أثناء تغيير المنفذ. اختبر الاتصال الجديد أولاً في طرفية أخرى. راجع [الوثائق الإنجليزية الرئيسية](../../README.md) لمزيد من التفاصيل.

View file

@ -28,6 +28,6 @@ Die erste Frage wählt die Sprache des Installers; English ist voreingestellt. D
5. System-VPN über Xray.
6. 3x-ui und lokaler Cloudflare-WARP-Proxy.
7. Erstsicherung sowie tägliche, wöchentliche oder monatliche Sicherungen.
8. Optionale KI-Agenten: Hermes, OpenClaw, OpenHands, OpenCode oder Aider.
8. Optionale KI-Agenten: Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT oder Pi Coding Agent.
Schließen Sie die aktuelle SSH-Sitzung während der Portänderung nicht. Testen Sie zuerst die neue Anmeldung in einem zweiten Terminal. Weitere Hinweise enthält die [englische Hauptdokumentation](../../README.md).

View file

@ -28,6 +28,6 @@ La primera pregunta selecciona el idioma del instalador; English es el valor pre
5. VPN del sistema mediante Xray.
6. Panel 3x-ui y proxy local Cloudflare WARP.
7. Instantánea inicial y copias diarias, semanales o mensuales.
8. Agentes de IA opcionales: Hermes, OpenClaw, OpenHands, OpenCode o Aider.
8. Agentes de IA opcionales: Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT o Pi Coding Agent.
No cierre la sesión SSH actual durante el cambio de puerto. Pruebe primero el nuevo acceso en otro terminal. Consulte la [documentación principal en inglés](../../README.md) para la instalación por archivo, actualización y restablecimiento.

View file

@ -28,6 +28,6 @@ La première question sélectionne la langue de linstallateur ; English est l
5. VPN système via Xray.
6. Panneau 3x-ui et proxy local Cloudflare WARP.
7. Instantané initial et sauvegardes quotidiennes, hebdomadaires ou mensuelles.
8. Agents IA facultatifs : Hermes, OpenClaw, OpenHands, OpenCode ou Aider.
8. Agents IA facultatifs : Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT ou Pi Coding Agent.
Ne fermez pas la session SSH actuelle pendant le changement de port. Testez dabord la nouvelle connexion dans un autre terminal. Consultez la [documentation principale en anglais](../../README.md) pour plus de détails.

View file

@ -28,6 +28,6 @@ sudo ./ochenstarik-server-install.sh
5. Xray के माध्यम से सिस्टम VPN।
6. 3x-ui पैनल और स्थानीय Cloudflare WARP प्रॉक्सी।
7. प्रारंभिक स्नैपशॉट और दैनिक, साप्ताहिक या मासिक बैकअप।
8. वैकल्पिक AI एजेंट: Hermes, OpenClaw, OpenHands, OpenCode या Aider
8. वैकल्पिक AI एजेंट: Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT या Pi Coding Agent
SSH पोर्ट बदलते समय मौजूदा सत्र बंद न करें। पहले दूसरे टर्मिनल में नया लॉगिन जाँचें। अधिक जानकारी के लिए [मुख्य अंग्रेज़ी दस्तावेज़](../../README.md) देखें।

View file

@ -28,6 +28,6 @@ sudo ./ochenstarik-server-install.sh
5. Xray によるシステム VPN。
6. 3x-ui パネルとローカル Cloudflare WARP プロキシ。
7. 初回スナップショットと日次、週次、月次バックアップ。
8. オプションの AI エージェントHermes、OpenClaw、OpenHands、OpenCode、Aider。
8. オプションの AI エージェントHermes、OpenClaw、OpenHands、OpenCode、Aider、AutoGPT、Pi Coding Agent
SSH ポートの変更中は現在のセッションを閉じないでください。別のターミナルで新しい接続を先に確認してください。詳細は[英語のメイン文書](../../README.md)を参照してください。

View file

@ -28,6 +28,6 @@ A primeira pergunta seleciona o idioma do instalador; English é o padrão. Depo
5. VPN do sistema por Xray.
6. Painel 3x-ui e proxy local Cloudflare WARP.
7. Snapshot inicial e backups diários, semanais ou mensais.
8. Agentes de IA opcionais: Hermes, OpenClaw, OpenHands, OpenCode ou Aider.
8. Agentes de IA opcionais: Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT ou Pi Coding Agent.
Não feche a sessão SSH atual durante a alteração da porta. Teste primeiro o novo login em outro terminal. Consulte a [documentação principal em inglês](../../README.md) para obter detalhes adicionais.

View file

@ -62,7 +62,7 @@ sudo ./ochenstarik-server-install.sh
| `ochenstarik-server-vpn-5.sh` | Устанавливает Xray и направляет системный трафик через VLESS + REALITY | Да; зависимости устанавливаются автоматически |
| `ochenstarik-server-panel-warp-6.sh` | Устанавливает 3x-ui и Cloudflare WARP, настраивает и проверяет их порты | Ubuntu 22.04/24.04/26.04 или Debian 12/13 |
| `ochenstarik-server-backup-7.sh` | Создаёт неизменяемый первичный снимок и настраивает выбранные расписания резервного копирования | Да; зависимости устанавливаются автоматически |
| `ochenstarik-server-ai-agents-8.sh` | Устанавливает выбранных AI-агентов для обычного пользователя: Hermes, OpenClaw, OpenHands, OpenCode или Aider | Да; API-ключи настраиваются отдельно |
| `ochenstarik-server-ai-agents-8.sh` | Устанавливает выбранных AI-агентов: Hermes, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT или Pi Coding Agent | Да; API-ключи настраиваются отдельно |
| `ochenstarik-server-uninstall.sh` | Удаляет настройки, службы и данные проекта для повторной установки с начала | Да; запускать только из сохранённой SSH-сессии |
Файлы `*.env.example` являются только примерами. Не записывайте настоящие пароли, токены и приватные SSH-ключи в Git.
@ -406,7 +406,9 @@ sudo ./ochenstarik-server-ai-agents-8.sh
Файл: `ochenstarik-server-ai-agents-8.sh`.
Скрипт предлагает множественный выбор из Hermes Agent, OpenClaw, OpenHands, OpenCode и Aider. Агенты устанавливаются только для выбранного обычного пользователя, а не для `root`. Каждый официальный установщик сначала загружается по HTTPS во временный файл и проходит проверку `bash -n`.
Скрипт предлагает множественный выбор из Hermes Agent, OpenClaw, OpenHands, OpenCode, Aider, AutoGPT и Pi Coding Agent. Установщики запускаются от выбранного обычного пользователя, а не напрямую от `root`. Каждый официальный установщик сначала загружается по HTTPS во временный файл и проходит проверку `bash -n`.
AutoGPT — более тяжёлая Docker-платформа: её официальный установщик может запросить `sudo`, установить зависимости Docker и запустить локальные службы. Pi — лёгкий терминальный агент; после установки его можно запустить командой `pi`, а затем выполнить `/login` для подключения провайдера.
API-ключи скрипт не запрашивает и не сохраняет. После установки нужно войти под выбранным пользователем и выполнить показанную команду первоначальной настройки. AI-агенты могут запускать команды, изменять файлы, использовать сеть и устанавливать плагины, поэтому перед подключением рабочих данных необходимо проверить разрешения, песочницу и доступ к секретам.

View file

@ -28,6 +28,6 @@ sudo ./ochenstarik-server-install.sh
5. 通过 Xray 配置系统 VPN。
6. 3x-ui 面板和本地 Cloudflare WARP 代理。
7. 初始快照以及每日、每周或每月备份。
8. 可选 AI 代理Hermes、OpenClaw、OpenHands、OpenCode 或 Aider
8. 可选 AI 代理Hermes、OpenClaw、OpenHands、OpenCode、Aider、AutoGPT 或 Pi Coding Agent
更改 SSH 端口时不要关闭当前会话。请先在另一个终端中测试新连接。更多说明请参阅[英文主文档](../../README.md)。

View file

@ -5,13 +5,15 @@ readonly CONFIG_DIR="/etc/ochenstarik-server"
readonly AGENT_CONFIG="${CONFIG_DIR}/ai-agents.conf"
readonly STEP3_ENV="/root/setup-data/env.txt"
readonly -a AGENT_IDS=(hermes openclaw openhands opencode aider)
readonly -a AGENT_IDS=(hermes openclaw openhands opencode aider autogpt pi)
readonly -a AGENT_NAMES=(
"Hermes Agent"
"OpenClaw"
"OpenHands"
"OpenCode"
"Aider"
"AutoGPT"
"Pi Coding Agent"
)
readonly -a AGENT_DESCRIPTIONS=(
"Personal self-improving agent with memory, skills, schedules, and messaging gateways"
@ -19,6 +21,8 @@ readonly -a AGENT_DESCRIPTIONS=(
"Software-development agent with terminal, headless, web, and IDE modes"
"Terminal coding agent with multiple model providers and parallel sessions"
"Git-oriented coding agent for editing and reviewing an existing repository"
"Docker-based platform for building, deploying, and running autonomous agents; may request sudo"
"Minimal and extensible terminal coding agent with skills, extensions, and multiple providers"
)
readonly -a AGENT_INSTALL_URLS=(
"https://hermes-agent.nousresearch.com/install.sh"
@ -26,14 +30,18 @@ readonly -a AGENT_INSTALL_URLS=(
"https://install.openhands.dev/install.sh"
"https://opencode.ai/install"
"https://aider.chat/install.sh"
"https://setup.agpt.co/install.sh"
"https://pi.dev/install.sh"
)
readonly -a AGENT_COMMANDS=(hermes openclaw openhands opencode aider)
readonly -a AGENT_COMMANDS=(hermes openclaw openhands opencode aider docker pi)
readonly -a AGENT_SETUP_HINTS=(
"hermes setup"
"openclaw onboard --install-daemon"
"openhands"
"opencode"
"aider"
"Open the local AutoGPT address printed by the official installer"
"pi, then use /login to connect a provider"
)
TEMP_INSTALLER=""
@ -122,8 +130,8 @@ select_agents() {
SELECTED_INDEXES=()
seen=()
for token in $input; do
if [[ ! "$token" =~ ^[1-5]$ ]]; then
warn "Enter agent numbers from 1 to 5, or 0 to skip"
if [[ ! "$token" =~ ^[1-7]$ ]]; then
warn "Enter agent numbers from 1 to 7, or 0 to skip"
SELECTED_INDEXES=()
break
fi
@ -160,7 +168,7 @@ install_agent() {
log "Installing ${name} for ${TARGET_USER}"
runuser -u "$TARGET_USER" -- env \
HOME="$TARGET_HOME" USER="$TARGET_USER" LOGNAME="$TARGET_USER" SHELL=/bin/bash PATH="$path_value" \
bash "$TEMP_INSTALLER"
bash -c 'cd "$HOME" && exec bash "$1"' ochenstarik-agent-installer "$TEMP_INSTALLER"
rm -f -- "$TEMP_INSTALLER"
TEMP_INSTALLER=""
@ -195,9 +203,9 @@ require_command getent
require_command runuser
require_command stat
((${#AGENT_IDS[@]} == 5 && ${#AGENT_NAMES[@]} == 5 \
&& ${#AGENT_DESCRIPTIONS[@]} == 5 && ${#AGENT_INSTALL_URLS[@]} == 5 \
&& ${#AGENT_COMMANDS[@]} == 5 && ${#AGENT_SETUP_HINTS[@]} == 5)) \
((${#AGENT_IDS[@]} == 7 && ${#AGENT_NAMES[@]} == 7 \
&& ${#AGENT_DESCRIPTIONS[@]} == 7 && ${#AGENT_INSTALL_URLS[@]} == 7 \
&& ${#AGENT_COMMANDS[@]} == 7 && ${#AGENT_SETUP_HINTS[@]} == 7)) \
|| die "Invalid AI agent catalog"
select_target_user

View file

@ -4,8 +4,8 @@ set -Eeuo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
source <(awk '/^\[\[ "\$EUID"/{exit} {print}' ochenstarik-server-ai-agents-8.sh)
[[ "${#AGENT_IDS[@]}" == 5 ]]
[[ "${AGENT_IDS[*]}" == 'hermes openclaw openhands opencode aider' ]]
[[ "${#AGENT_IDS[@]}" == 7 ]]
[[ "${AGENT_IDS[*]}" == 'hermes openclaw openhands opencode aider autogpt pi' ]]
expected_urls=(
'https://hermes-agent.nousresearch.com/install.sh'
@ -13,14 +13,16 @@ expected_urls=(
'https://install.openhands.dev/install.sh'
'https://opencode.ai/install'
'https://aider.chat/install.sh'
'https://setup.agpt.co/install.sh'
'https://pi.dev/install.sh'
)
for index in "${!expected_urls[@]}"; do
[[ "${AGENT_INSTALL_URLS[index]}" == "${expected_urls[index]}" ]]
done
select_agents <<< '1 3 5' >/dev/null
[[ "${SELECTED_INDEXES[*]}" == '0 2 4' ]]
select_agents <<< '1 3 5 6 7' >/dev/null
[[ "${SELECTED_INDEXES[*]}" == '0 2 4 5 6' ]]
select_agents <<< '' >/dev/null
[[ "${#SELECTED_INDEXES[@]}" == 0 ]]