OpenClaw
OpenClaw là công cụ CLI mạnh mẽ — coding agent chạy từ terminal, hỗ trợ edit file, chạy lệnh, multi-turn conversation.
Bạn cần chuẩn bị
·Node.js ≥ 18 đã cài đặt
·API Key (tạo ở trang API Keys)
·5 phút
1
Cài đặt OpenClaw
Chạy một trong hai lệnh bên dưới để cài OpenClaw toàn cục:
# Cách 1: npm
npm install -g openclaw@latest
# Cách 2: script (macOS / Linux)
curl -fsSL https://openclaw.ai/install-cli.sh | bash
# Cách 2 (Windows PowerShell):
irm https://openclaw.ai/install.ps1 | iex2
Khởi tạo lần đầu
Chạy lệnh onboard để hoàn tất cài đặt ban đầu:
openclaw onboard --install-daemon3
Cấu hình nexai endpoint
Tạo hoặc chỉnh sửa file config để trỏ về nexai API:
# File: ~/.openclaw/config.json
{
"providers": [
{
"name": "nexai",
"type": "openai",
"baseUrl": "https://nexai.newdev.net/api/v1",
"apiKey": "sk-billing-xxx"
}
],
"defaultProvider": "nexai",
"defaultModel": "gpt-4o"
}4
Chạy thử
Mở terminal ở project bất kỳ và gõ:
openclawXong! OpenClaw đã kết nối với nexai.
OpenClaw hỗ trợ đầy đủ tính năng: edit file, chạy lệnh, multi-turn conversation trong terminal.