من الصفر إلى مساعد ذكي في 5 دقائق

اختر منصّتك وتابع الخطوات. ستتحدث مع ذكائك الاصطناعي في وقت قصير.

التثبيت على macOS

أسرع طريقة للبدء. يتطلب Node.js 18+.

1

ثبّت OpenClaw

npm install -g openclaw
2

شغّل معالج الإعداد

سيرشدك خلال تهيئة مفتاح API والإعدادات الأساسية.

openclaw init
3

شغّل البوابة

البوابة هي خدمة الخلفية التي تتولى جميع الاتصالات.

openclaw gateway start
4

قُل مرحباً!

openclaw chat "Hello! What can you do?"

احصل على مفتاح API

يحتاج OpenClaw إلى مفتاح API من مزوّد الذكاء الاصطناعي المفضل لديك.

🟢 OpenAI (GPT-4)

  1. اذهب إلى platform.openai.com
  2. أنشئ مفتاح API جديداً
  3. انسخ والصق أثناء openclaw init

🟣 Anthropic (Claude)

  1. اذهب إلى console.anthropic.com
  2. انتقل إلى مفاتيح API
  3. أنشئ وانسخ مفتاحك

🔵 OpenRouter (متعدد النماذج)

  1. اذهب إلى openrouter.ai
  2. أنشئ حساباً وأضف رصيداً
  3. انسخ مفتاح API

استخدم أي نموذج من أي مزوّد بمفتاح واحد!

استكشاف الأخطاء وإصلاحها

المشكلات الشائعة وكيفية حلّها.

Command not found: openclaw

Make sure npm's global bin directory is in your PATH. Try:

npm config get prefix

Add the returned path + /bin to your shell's PATH variable.

Gateway won't start

Check if the port is already in use. The gateway runs on port 3000 by default.

lsof -i :3000  # macOS/Linux
netstat -ano | findstr :3000  # Windows

You can also try restarting: openclaw gateway restart

API key not working

Verify your API key is correctly set:

openclaw config show

Make sure there are no extra spaces. You can reset it with openclaw init.

WhatsApp QR code not appearing

The WhatsApp QR code is shown in the terminal. Make sure you run the command in a terminal that supports QR display. If issues persist, see the official WhatsApp docs.

🎉 أنت جاهز!

الآن بعد أن يعمل OpenClaw، إليك الخطوات التالية: