本地个人AI助手
Project description
KangClaw
个人AI智能助手
一个 Gateway,多端接入
特性
- 多模型支持 — OpenAI / Anthropic / Google Gemini / DeepSeek / Ollama 等 LLM 供应商
- 多渠道接入 — 终端 CLI、Web UI、QQ 机器人、飞书机器人、钉钉机器人等
- 内置工具 — 文件读写编辑、Shell 执行、Web 搜索与抓取、定时任务、图片处理、消息发送
- 智能记忆 — 短期记忆 + 长期记忆,让智能体记住更多重要信息
- 技能系统 — 通过Skills扩展智能体功能,实现更复杂的任务
快速开始
安装
pip install -e .
初始化
kangclaw init
这会在 ~/.kangclaw/ 下创建配置文件和工作区:
~/.kangclaw/
├── config.toml # 全局配置(模型、渠道、参数等)
└── workspace/
├── AGENTS.md # 智能体行为指令
├── SOUL.md # 助手人格
├── USER.md # 用户画像
├── HEARTBEAT.md # 心跳任务表
├── memory/
│ ├── MEMORY.md # 长期记忆
│ └── sessions/ # 会话历史 (JSONL)
├── skills/ # 自定义技能
└── cron/ # 定时任务
启动
# 前台启动 gateway
kangclaw gateway
# 打开 Web UI
kangclaw web
# CLI 终端对话
kangclaw chat
CLI 命令
| 命令 | 说明 |
|---|---|
kangclaw init |
初始化配置和工作区 |
kangclaw gateway |
启动 gateway 服务(前台) |
kangclaw gateway -d |
后台启动 gateway |
kangclaw gateway status |
查看 gateway 状态 |
kangclaw gateway stop |
停止 gateway |
kangclaw gateway restart |
重启 gateway |
kangclaw chat |
终端对话客户端 |
kangclaw web |
打开 Web UI |
kangclaw status |
查看整体状态 |
kangclaw skills list |
列出已安装技能 |
kangclaw cron list |
查看定时任务 |
kangclaw cron remove <id> |
删除定时任务 |
渠道配置
建议打开 Web UI配置
QQ 机器人
[[channel]]
name = "qq"
enabled = true
app_id = "${QQ_BOT_APPID}"
app_secret = "${QQ_BOT_APPSECRET}"
allow_from = []
飞书机器人
[[channel]]
name = "feishu"
enabled = true
app_id = "${FEISHU_APP_ID}"
app_secret = "${FEISHU_APP_SECRET}"
allow_from = []
钉钉机器人
[[channel]]
name = "dingtalk"
enabled = true
client_id = "${DINGTALK_CLIENT_ID}"
client_secret = "${DINGTALK_CLIENT_SECRET}"
allow_from = []
技能系统
在 ~/.kangclaw/workspace/skills/ 下创建目录,添加 SKILL.md 即可注册技能:
skills/
└── weather/
└── SKILL.md
SKILL.md 使用 YAML frontmatter 定义元信息,正文为技能的使用说明和提示词。
开发
# 安装开发依赖
pip install -e .
# 运行测试
pytest tests/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kangclaw-0.1.0.tar.gz
(615.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
kangclaw-0.1.0-py3-none-any.whl
(612.7 kB
view details)
File details
Details for the file kangclaw-0.1.0.tar.gz.
File metadata
- Download URL: kangclaw-0.1.0.tar.gz
- Upload date:
- Size: 615.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ced04472f12b515cde9add4bb57ae939ee57e23a7281131b174cddb8c4cdae28
|
|
| MD5 |
b772c3b89aab11c8341a6ca1355e9e5e
|
|
| BLAKE2b-256 |
514af1d99c390337f2afd2fe65eea979c7f62581bbf81e5525165c1a1a219d59
|
File details
Details for the file kangclaw-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kangclaw-0.1.0-py3-none-any.whl
- Upload date:
- Size: 612.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1359ee9992f70ab29e8e445df17c3f7fefb81d77f789d210ef5d61c8e53839b4
|
|
| MD5 |
af54d9d94c20ca1696081b10e8202fa3
|
|
| BLAKE2b-256 |
16f31362796bfb568cfad53f1ccba36a92dfdda15bc246f67befd72e36cb0fd7
|