الأكاديمية ← ابدأ من الصفرتوثيق رسمي · إرشاد عربي

تشغيل Hermes على أندرويد عبر Termux

Android / Termux

مبتدئ6 دقائق قراءةالدرس 63 أسئلة✓ 2026-08-18
قبل أن تقرأ

ما هذه الصفحة، وماذا تحتوي.

التثبيت: تنزيل Hermes وتجهيزه على جهازك، مع كل ما يحتاجه ليعمل. معظم المشاكل التي تبدو معقّدة لاحقًا سببها خطوة ناقصة هنا. الصفحة فيها تحذير من المصدر، و6 دقائق قراءة. انتبه: اقرأ ما سيفعله المثبّت قبل تشغيله، وشغّل hermes doctor بعده ليخبرك بما ينقص.

8أقسام
23أمثلة برمجية
0جداول
4أوامر
1,101كلمة من المصدر
الوصف الرسمي في سطر

Run Hermes Agent directly on an Android phone with Termux

ماذا ستستطيع بعدها

نتائج مأخوذة من هذه الصفحة، لا من قالب.

  • تعرف ما التثبيت ولماذا قد تحتاجه.
  • تنفّذ hermes model وhermes setup وتفهم ما يحدث بعدها.
  • تضبط ANDROID_API_LEVEL في المكان الصحيح.
  • تتجنّب الخطأ الذي يحذّر منه المصدر.
ما ستقابله من أسماء

كما تظهر تمامًا داخل Hermes.

الأوامر
  • hermes model
  • hermes setup
  • hermes doctor
  • hermes version hermes doctor
متغيرات البيئة
  • ANDROID_API_LEVEL
خريطة الصفحة

انتقل مباشرة إلى ما تحتاجه.

  1. 01What is supported in the tested path?
  2. 02What is not part of the tested path yet?
  3. 03Community-maintained native `pkg` option
  4. 04Option 1: One-line installer
  5. 05Option 2: Manual install (fully explicit)
  6. 06Recommended follow-up setup
  7. 07Troubleshooting
  8. 08Known limitations on phones
الصفحة الرسمية كاملة

بلا اختصار أو حذف.

النص أدناه منقول من المصدر الرسمي بالإنجليزية حتى تبقى الأوامر والأسماء دقيقة كما هي. قبل كل قسم شرح عربي يوضّح ما بداخله.

Hermes Agent can run directly on an Android phone through Termux ↗.

It gives you a working local CLI on the phone, plus the core extras that are currently known to install cleanly on Android.

What is supported in the tested path?

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه. تذكير: تنزيل Hermes وتجهيزه على جهازك، مع كل ما يحتاجه ليعمل.

The tested Termux bundle installs:

  • the Hermes CLI
  • cron support
  • PTY/background terminal support
  • Telegram gateway support (manual / best-effort background runs)
  • MCP support
  • Honcho memory support
  • ACP support

Concretely, it maps to:

Shellسطر واحد
python -m pip install -e '.[termux]' -c constraints-termux.txt

What is not part of the tested path yet?

شرح للفكرة نفسها. اقرأه ببطء، فبقية الأقسام تبني عليه.

A few features still need desktop/server-style dependencies that are not published for Android, or have not been validated on phones yet:

  • .[all] is not supported on Android today
  • the voice extra is blocked by faster-whisper -> ctranslate2, and ctranslate2 does not publish Android wheels
  • automatic browser / Playwright bootstrap is skipped in the Termux installer
  • Docker-based terminal isolation is not available inside Termux
  • Android may still suspend Termux background jobs, so gateway persistence is best-effort rather than a normal managed service

That does not stop Hermes from working well as a phone-native CLI agent — it just means the recommended mobile install is intentionally narrower than the desktop/server install.

---

Community-maintained native `pkg` option

فيه تحذير مهم. اقرأه قبل أن تنفّذ أي شيء من هذا القسم. نصّ التحذير من المصدر مذكور أسفل هذا الشرح.

For users who prefer a native package-manager install rather than building Python/Rust dependencies on the phone, a community-maintained APT repository is available. The repository bootstrap and packaging sources are published in adybag14-cyber/termux-python ↗, with the Hermes package build in adybag14-cyber/termux-hermes ↗.

Install the repository key/source and Hermes with:

Shellسطران
curl -fsSL https://raw.githubusercontent.com/adybag14-cyber/termux-python/main/scripts/setup_apt_repo.sh | bash
pkg install hermes-agent

The repository signing-key fingerprint currently documented by the community distribution is:

Textسطر واحد
EAD24A2124EFA7393A78B7B14699F966313F7A6B

APT-managed Hermes installs are marked with install method apt. Hermes therefore does not run its Git self-updater against package-owned files; use the package manager instead:

Shellسطران
pkg update
pkg upgrade hermes-agent

Packaging/repository/signing problems for this option should be reported to the community packaging repositories above. Hermes runtime bugs can still be reported here, keeping in mind that Android/Termux support is best-effort.

---

Option 1: One-line installer

خطوات عملية بالترتيب. نفّذ خطوة وتأكد أنها نجحت قبل الانتقال للتالية.

Hermes now ships a Termux-aware installer path:

Shellسطر واحد
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

On Termux, the installer automatically:

  • uses pkg for system packages
  • creates the venv with python -m venv
  • attempts the broad .[termux-all] extra first and falls back to the smaller .[termux] extra (then a base install) — the curl installer matches this order automatically
  • links hermes into $PREFIX/bin so it stays on your Termux PATH
  • skips the untested browser / WhatsApp bootstrap

If you want the explicit commands or need to debug a failed install, use the manual path below.

---

Option 2: Manual install (fully explicit)

خطوات عملية بالترتيب. نفّذ خطوة وتأكد أنها نجحت قبل الانتقال للتالية. الأوامر هنا: hermes version hermes doctor.

1. Update Termux and install system packages

Shellسطران
pkg update
pkg install -y git python clang rust make pkg-config libffi openssl nodejs ripgrep ffmpeg

Why these packages?

  • python — runtime + venv support
  • git — clone/update the repo
  • clang, rust, make, pkg-config, libffi, openssl — needed to build a few Python dependencies on Android
  • nodejs — optional Node runtime for experiments beyond the tested core path
  • ripgrep — fast file search
  • ffmpeg — media / TTS conversions

2. Clone Hermes

Shellسطران
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent

3. Create a virtual environment

Shell4 أسطر
python -m venv venv
source venv/bin/activate
export ANDROID_API_LEVEL="$(getprop ro.build.version.sdk)"
python -m pip install --upgrade pip setuptools wheel

ANDROID_API_LEVEL is important for Rust / maturin-based packages such as jiter.

4. Install the tested Termux bundle

Shellسطر واحد
python -m pip install -e '.[termux]' -c constraints-termux.txt

If you only want the minimal core agent, this also works:

Shellسطر واحد
python -m pip install -e '.' -c constraints-termux.txt

5. Put hermes on your Termux PATH

Shellسطر واحد
ln -sf "$PWD/venv/bin/hermes" "$PREFIX/bin/hermes"

$PREFIX/bin is already on PATH in Termux, so this makes the hermes command persist across new shells without re-activating the venv every time.

6. Verify the install

Shellسطران
hermes version
hermes doctor

7. Start Hermes

Shellسطر واحد
hermes

---

Troubleshooting

قسم لحل المشكلات. ابحث فيه عن العطل الذي يشبه حالتك بدل قراءته كاملًا.

No solution found when installing .[all]

Use the tested Termux bundle instead:

Shellسطر واحد
python -m pip install -e '.[termux]' -c constraints-termux.txt

The blocker is currently the voice extra:

  • voice pulls faster-whisper
  • faster-whisper depends on ctranslate2
  • ctranslate2 does not publish Android wheels

uv pip install fails on Android

Use the Termux path with the stdlib venv + pip instead:

Shell5 أسطر
python -m venv venv
source venv/bin/activate
export ANDROID_API_LEVEL="$(getprop ro.build.version.sdk)"
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e '.[termux]' -c constraints-termux.txt

jiter / maturin complains about ANDROIDAPILEVEL

Set the API level explicitly before installing:

Shellسطران
export ANDROID_API_LEVEL="$(getprop ro.build.version.sdk)"
python -m pip install -e '.[termux]' -c constraints-termux.txt

hermes doctor says ripgrep or Node is missing

Install them with Termux packages:

Shellسطر واحد
pkg install ripgrep nodejs

Build failures while installing Python packages

Make sure the build toolchain is installed:

Shellسطر واحد
pkg install clang rust make pkg-config libffi openssl

Then retry:

Shellسطر واحد
python -m pip install -e '.[termux]' -c constraints-termux.txt

---

Known limitations on phones

أوامر تكتبها في الطرفية. افهم ما يفعله الأمر قبل نسخه. الأوامر هنا: hermes doctor.

  • Docker backend is unavailable
  • local voice transcription via faster-whisper is unavailable in the tested path
  • browser automation setup is intentionally skipped by the installer
  • some optional extras may work, but only .[termux] and .[termux-all] are currently documented as the tested Android bundles

If you hit a new Android-specific issue, please open a GitHub issue with:

  • your Android version
  • termux-info
  • python --version
  • hermes doctor
  • the exact install command and full error output
اختبار الفهم

3 أسئلة إجاباتها كلها في هذه الصفحة.

كل خيار اسم حقيقي من توثيق Hermes. حتى الخيارات الخاطئة حقيقية، لكنها من صفحات أخرى.

1. أي متغير بيئة من التالي يظهر فعليًا في هذا الدرس؟
2. ما التحذير الذي يذكره المصدر في هذا الدرس؟
3. أي عنوان من التالي لا يظهر في هذا الدرس؟