إنتقل إلى المحتوى الرئيسي

تثبيت Anda

يمكن تثبيت Anda Bot من إصدار جاهز أو تشغيله مباشرة من المستودع. استخدم الإصدار اليومي للعمل المعتاد، والمصدر للمساهمة أو التصحيح أو التجربة.

تثبيت أحدث إصدار

على macOS نوصي بـ Homebrew:

brew install ldclabs/tap/anda

يمكن لـ macOS وLinux استخدام السكربت:

curl -fsSL https://raw.githubusercontent.com/ldclabs/anda-bot/main/scripts/install.sh | sh

Windows PowerShell:

irm https://raw.githubusercontent.com/ldclabs/anda-bot/main/scripts/install.ps1 | iex

ثم افتح طرفية جديدة:

anda

إعداد مفتاح API

تحتاج إلى مفتاح API واحد على الأقل لمزود نماذج:

DEEPSEEK_API_KEY=YOUR_API_KEY anda

Windows PowerShell:

$env:DEEPSEEK_API_KEY="YOUR_API_KEY"; anda

يمكنك أيضًا حفظ المفتاح في ~/.anda/config.yaml، وله أولوية على متغيرات البيئة.

أول تشغيل

ينشئ Anda ملف ~/.anda/config.yaml. إذا كان الإعداد ناقصًا، ستعرض واجهة الطرفية الحقول المطلوبة.

  1. افتح ~/.anda/config.yaml.
  2. املأ family و model و api_base و api_key أو متغير البيئة.
  3. احفظ الملف.
  4. ارجع إلى الواجهة واضغط Enter.
model:
active: "deepseek-v4-pro"
providers:
- family: anthropic
model: "deepseek-v4-pro"
api_base: "https://api.deepseek.com/anthropic"
api_key: "YOUR_API_KEY"
labels: ["pro", "hippocampus"]
disabled: false

تجعل علامة hippocampus هذا المزود مفضلاً لمهام الذاكرة.

التشغيل من المصدر

git clone https://github.com/ldclabs/anda-bot.git
cd anda-bot
cargo run -p anda_bot --

لعزل المشاريع أو الاختبارات:

anda --home /path/to/.anda

التحديث

anda update
anda stop
anda restart