Ai Claw Orchestrator

From wiki karavi
Revision as of 18:33, 20 August 2026 by Karavi (talk | contribs) (Created page with "# نصب Coding Agent CLIها در Windows این بخش روش نصب CLI ابزارهایی را پوشش می‌دهد که در Agentic Development Environment استفاده می‌کنیم. Agentهای مورد استفاده: - Claude Code - OpenAI Codex - Cursor Agent - Google Antigravity - OpenCode - Freebuff - Claw Orchestrator --- ## 1. Claude Code وب‌سایت رسمی: https://claude.ai/ ### روش پیشنهادی — PowerShell ```powershell ir...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. نصب Coding Agent CLIها در Windows

این بخش روش نصب CLI ابزارهایی را پوشش می‌دهد که در Agentic Development Environment استفاده می‌کنیم.

Agentهای مورد استفاده:

- Claude Code - OpenAI Codex - Cursor Agent - Google Antigravity - OpenCode - Freebuff - Claw Orchestrator

---

    1. 1. Claude Code

وب‌سایت رسمی:

https://claude.ai/

      1. روش پیشنهادی — PowerShell

```powershell irm https://claude.ai/install.ps1 | iex ```

      1. روش دوم — CMD / curl

```cmd curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd ```

      1. روش سوم — Winget

```powershell winget install Anthropic.ClaudeCode ```

      1. بررسی نصب

```powershell claude --version ```

      1. اجرا

```powershell claude ```

      1. بررسی سلامت

```powershell claude doctor ```

---

    1. 2. Cursor Agent CLI

وب‌سایت رسمی:

https://cursor.com/

      1. نصب در Windows

```powershell irm 'https://cursor.com/install?win32=true' | iex ```

      1. بررسی نصب

```powershell cursor-agent --version ```

Cursor Agent ممکن است با دستور کوتاه زیر نیز قابل اجرا باشد:

```powershell agent ```

      1. بررسی PATH

```powershell where.exe cursor-agent where.exe agent ```

---

    1. 3. Google Antigravity

وب‌سایت رسمی:

https://antigravity.google/

نسخه Desktop برای Windows نیز با installer مربوط به سیستم x64 قابل نصب است.

      1. نصب Antigravity CLI با PowerShell

```powershell irm https://antigravity.google/cli/install.ps1 | iex ```

      1. روش دوم با curl

```cmd curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd ```

      1. بررسی CLI

```powershell agy --version ```

      1. اجرا

```powershell agy ```

      1. بررسی PATH

```powershell where.exe agy ```

---

    1. 4. Google Antigravity SDK

در صورت نیاز به استفاده برنامه‌نویسی از SDK:

```powershell pip install google-antigravity ```

بررسی:

```powershell pip show google-antigravity ```

> برای استفاده از Claw Orchestrator معمولاً نصب CLI مهم‌تر از SDK است. SDK را فقط زمانی نصب کنید که مستقیماً در Python به آن نیاز دارید.

---

    1. 5. OpenCode

وب‌سایت رسمی:

https://opencode.ai/

ابتدا اجازه اجرای install script مربوط به package را بدهید:

```powershell npm config set allow-scripts=opencode-ai --location=user ```

سپس OpenCode را نصب کنید:

```powershell npm install -g opencode-ai ```

یا:

```powershell npm i -g opencode-ai ```

      1. بررسی نصب

```powershell opencode --version ```

      1. اجرا

```powershell opencode ```

      1. بررسی PATH

```powershell where.exe opencode ```

---

    1. 6. OpenAI Codex

صفحه Codex:

https://chatgpt.com/codex/cloud

      1. نصب با npm

```powershell npm install -g @openai/codex ```

یا:

```powershell npm i -g @openai/codex ```

      1. بررسی نصب

```powershell codex --version ```

      1. اجرا

```powershell codex ```

      1. Login

```powershell codex login ```

      1. بررسی PATH

```powershell where.exe codex ```

---

    1. 7. Freebuff

وب‌سایت:

https://freebuff.com/

      1. ثبت‌نام

در صورت تمایل می‌توانید از Referral Link زیر برای ثبت‌نام استفاده کنید:

https://freebuff.com/?ref=ref-eead1f77-4518-43aa-a4fa-51a49acab0e1

      1. نصب Freebuff CLI

```powershell npm install -g freebuff ```

یا:

```powershell npm i -g freebuff ```

      1. بررسی نصب

```powershell freebuff --version ```

      1. اجرا

```powershell freebuff ```

      1. بررسی PATH

```powershell where.exe freebuff ```

---

  1. 8. Claw Orchestrator

Claw Orchestrator لایه Orchestration این محیط است.

بعد از نصب Coding Agentها می‌توان آن را نصب کرد.

      1. نصب

```powershell npm install -g @enderfga/claw-orchestrator ```

      1. بررسی نسخه

```powershell clawo --version ```

      1. مشاهده دستورات

```powershell clawo --help ```

      1. اجرای Standalone Server

```powershell clawo serve ```

---

  1. 9. بررسی تمام CLIها بعد از نصب

پس از پایان نصب، دستورات زیر را اجرا کنید:

```powershell node --version npm --version git --version

claude --version cursor-agent --version agy --version opencode --version codex --version freebuff --version

clawo --version ```

اگر همه چیز درست باشد، تمام commandها باید بدون خطای `command not found` اجرا شوند.

---

  1. 10. بررسی محل نصب CLIها

برای مشاهده مسیر executableها:

```powershell where.exe node where.exe npm where.exe git

where.exe claude where.exe cursor-agent where.exe agy where.exe opencode where.exe codex where.exe freebuff

where.exe clawo ```

---

  1. 11. بررسی خودکار

می‌توانیم تمام CLIها را با PowerShell بررسی کنیم:

```powershell $tools = @(

   @{ Name = "Node.js";            Command = "node";         Args = "--version" },
   @{ Name = "npm";                Command = "npm";          Args = "--version" },
   @{ Name = "Git";                Command = "git";          Args = "--version" },
   @{ Name = "Claude Code";        Command = "claude";       Args = "--version" },
   @{ Name = "Cursor Agent";       Command = "cursor-agent"; Args = "--version" },
   @{ Name = "Antigravity";        Command = "agy";          Args = "--version" },
   @{ Name = "OpenCode";           Command = "opencode";     Args = "--version" },
   @{ Name = "Codex";              Command = "codex";        Args = "--version" },
   @{ Name = "Freebuff";           Command = "freebuff";     Args = "--version" },
   @{ Name = "Claw Orchestrator";  Command = "clawo";        Args = "--version" }

)

Write-Host "" Write-Host "========================================" Write-Host " AGENTIC DEV OS HEALTH CHECK" Write-Host "========================================" Write-Host ""

foreach ($tool in $tools) {

   $exists = Get-Command $tool.Command -ErrorAction SilentlyContinue
   if ($exists) {
       try {
           $version = & $tool.Command $tool.Args 2>&1 |
               Select-Object -First 1
           Write-Host "[OK]      " -ForegroundColor Green -NoNewline
           Write-Host "$($tool.Name) -> $version"
       }
       catch {
           Write-Host "[WARNING] " -ForegroundColor Yellow -NoNewline
           Write-Host "$($tool.Name) installed but version check failed."
       }
   }
   else {
       Write-Host "[MISSING] " -ForegroundColor Red -NoNewline
       Write-Host $tool.Name
   }

}

Write-Host "" Write-Host "========================================" ```

---

  1. 12. معماری نهایی

```text

                   Developer
                       │
                       ↓
               Claw Orchestrator
                       │
             Planner / Router
                       │
      ┌────────────────┼────────────────┐
      │                │                │
      ↓                ↓                ↓
Claude Code          Codex         Cursor Agent
      │                │                │
      ├──────────── OpenCode ───────────┤
      │                │                │
      ├───────── Antigravity ───────────┤
      │                │                │
      └──────────── Freebuff ───────────┘
                       │
                       ↓
               Automated Tests
                       │
                       ↓
                Agent Council
                       │
                       ↓
                LLM-as-a-Judge
                       │
                       ↓
                  Best Result

```

---

  1. نصب سریع

برای یک سیستم جدید، ترتیب کلی نصب به این صورت است:

    1. Claude Code

```powershell irm https://claude.ai/install.ps1 | iex ```

    1. Cursor Agent

```powershell irm 'https://cursor.com/install?win32=true' | iex ```

    1. Antigravity

```powershell irm https://antigravity.google/cli/install.ps1 | iex ```

    1. OpenCode

```powershell npm config set allow-scripts=opencode-ai --location=user npm i -g opencode-ai ```

    1. OpenAI Codex

```powershell npm i -g @openai/codex ```

    1. Freebuff

```powershell npm i -g freebuff ```

    1. Claw Orchestrator

```powershell npm i -g @enderfga/claw-orchestrator ```

    1. بررسی نهایی

```powershell claude --version cursor-agent --version agy --version opencode --version codex --version freebuff --version clawo --version ```

---

  1. نکته مهم

قبل از نصب Agentها بهتر است موارد زیر نصب و در PATH قرار گرفته باشند:

```text PowerShell 7 Git Node.js 22+ npm ```

Python فقط در صورتی ضروری است که قصد استفاده از ابزارها یا SDKهای Python مانند Google Antigravity SDK را داشته باشید.

با این ساختار، Claw Orchestrator به‌عنوان لایه مرکزی Orchestration استفاده می‌شود و Coding Agentهای مختلف می‌توانند به‌عنوان Worker، Reviewer یا Judge مورد استفاده قرار گیرند.