Hướng Dẫn OpenClaw
OpenClaw là nền tảng AI Agent mã nguồn mở, cho phép tạo và quản lý AI agents thông minh với hệ sinh thái Skills mở rộng.
Cài Đặt
pip install openclawHoặc build từ source:
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pip install -e .
Cấu Hình
Tạo file .env:
OPENCLAW_API_KEY=your-api-key
OPENCLAW_MODEL=gpt-4
OPENCLAW_SKILLS_DIR=./skills
Quick Start
from openclaw import Agent
agent = Agent(model="gpt-4")
agent.add_skill("web-search")
response = agent.run("Tìm tin tức AI mới nhất")
Skills
Skills là các module mở rộng năng lực cho Agent:
from openclaw import Skill
class MySkill(Skill):
name = "my-skill"
description = "My custom skill"
def execute(self, input):
return {"result": "Hello!"}
API Reference
Xem API Documentation để biết chi tiết.
Hướng Dẫn Skills Chi Tiết
Xem OpenClaw Skills — Hướng dẫn chi tiết để tìm hiểu cách tạo, cấu hình và triển khai Skills cho OpenClaw agents.