diff --git a/README.md b/README.md index dde1425d..5bbcfaed 100644 --- a/README.md +++ b/README.md @@ -1,568 +1,187 @@ -
-PicoClaw +# PicoClaw · 精简 fork -

PicoClaw: Ultra-Efficient AI Assistant in Go

+这是 [sipeed/picoclaw](https://github.com/sipeed/picoclaw) 的个人 fork,使用 Go 构建,通过命令行或 IM 运行 AI 助手。当前版本以 CLI、Gateway 和常用消息渠道为主,已移除网页管理界面与一批渠道及其依赖。 -

$10 Hardware · 10MB RAM · ms Boot · Let's Go, PicoClaw!

-

- Go - Hardware - License -
- Website - Docs - Wiki -
- Twitter - - Discord -

+本仓库的功能、配置和构建产物与上游不同,使用时请以本仓库代码和说明为准。 -[中文](docs/project/README.zh.md) | [日本語](docs/project/README.ja.md) | [한국어](docs/project/README.ko.md) | [Português](docs/project/README.pt-br.md) | [Tiếng Việt](docs/project/README.vi.md) | [Français](docs/project/README.fr.md) | [Italiano](docs/project/README.it.md) | [Bahasa Indonesia](docs/project/README.id.md) | [Malay](docs/project/README.ms.md) | **English** +## 当前功能 -
+- **CLI 与 Gateway**:本地交互、单次提问,或通过消息渠道持续运行。 +- **模型接入**:支持多种模型提供商、OpenAI 兼容接口、多模型配置与切换。 +- **会话管理**:保存对话上下文,支持摘要压缩,以及通过 `/new` 清空上下文后重新提问。 +- **工具与扩展**:文件操作、命令执行、网页搜索与抓取、MCP、Skills 和定时任务。 +- **语音能力**:保留语音识别与合成,实际可用能力取决于模型、服务及渠道配置。 ---- +已移除 WebUI、launcher、桌面托盘及相关前端构建;网页搜索和网页抓取工具仍然保留。 -> **PicoClaw** is an independent open-source project initiated by [Sipeed](https://sipeed.com), written entirely in **Go** from scratch — not a fork of OpenClaw, NanoBot, or any other project. +## 消息渠道 -**PicoClaw** is an ultra-lightweight personal AI assistant inspired by [NanoBot](https://github.com/HKUDS/nanobot). It was rebuilt from the ground up in **Go** through a "self-bootstrapping" process — the AI Agent itself drove the architecture migration and code optimization. +目前支持 7 种 IM 渠道和 MQTT: -**Runs on $10 hardware with <10MB RAM** — that's 99% less memory than OpenClaw and 98% cheaper than a Mac mini! +| 配置类型 | 渠道 | 接入方式与文档 | +| --- | --- | --- | +| `weixin` | 个人微信 | [iLink 接口、扫码登录](docs/channels/weixin/README.zh.md) | +| `wecom` | 企业微信 | [AI Bot WebSocket](docs/channels/wecom/README.zh.md) | +| `feishu` | 飞书 / Lark | [WebSocket 长连接](docs/channels/feishu/README.zh.md) | +| `dingtalk` | 钉钉 | [Stream 模式](docs/channels/dingtalk/README.zh.md) | +| `qq` | QQ 官方机器人 | [官方机器人接口](docs/channels/qq/README.zh.md) | +| `onebot` | OneBot v11 | [WebSocket,需外部 OneBot 实现](docs/channels/onebot/README.zh.md) | +| `telegram` | Telegram | [Bot 长轮询](docs/channels/telegram/README.zh.md) | +| `mqtt` | MQTT | [Broker 发布 / 订阅](docs/channels/mqtt/README.zh.md) | - - - - - -
-

- -

-
-

- -

-
+各渠道支持的消息类型、群聊触发方式和权限配置不同,请按对应文档配置。 -> [!CAUTION] -> **Security Notice** -> -> * **NO CRYPTO:** PicoClaw has **not** issued any official tokens or cryptocurrency. All claims on `pump.fun` or other trading platforms are **scams**. -> * **OFFICIAL DOMAIN:** The **ONLY** official website is **[picoclaw.io](https://picoclaw.io)**, and company website is **[sipeed.com](https://sipeed.com)** -> * **BEWARE:** Many `.ai/.org/.com/.net/...` domains have been registered by third parties. Do not trust them. -> * **NOTE:** PicoClaw is in early rapid development. There may be unresolved security issues. Do not deploy to production before v1.0. -> * **NOTE:** PicoClaw has recently merged many PRs. Recent builds may use 10-20MB RAM. Resource optimization is planned after feature stabilization. +## 从源码构建 -## 📢 News - -2026-05-11 🛒 **LicheeRV-Claw on AliExpress!** You can now purchase LicheeRV-Claw from [AliExpress](https://www.aliexpress.com/item/1005006519668532.html), making it easier to try PicoClaw on compact RISC-V hardware. - -

- - LicheeRV-Claw on AliExpress - -

- -2026-05-14 🚀 **v0.2.8 Released!** MCP CLI commands (`show`, `add`, `list`, `remove`, `test`, `edit`), empty object instead of null for MCP tool parameters, and build fixes. - -2026-05-07 🚀 **v0.2.7 Released!** Configurable Sogou-backed web search, channel tool feedback animation, linter fixes. - -2026-04-23 🚀 **v0.2.6 Released!** Hooks with respond action and comprehensive documentation, isolation support, help banner fix. - -2026-04-11 🚀 **v0.2.5 Released!** Zoneinfo from TZ/ZONEINFO env, Matrix CommonMark rendering alignment, `read_file` by lines. - -2026-03-25 🚀 **v0.2.4 Released!** Agent architecture overhaul (SubTurn, Hooks, Steering, EventBus), WeChat/WeCom integration, security hardening (.security.yml, sensitive data filtering), new providers (AWS Bedrock, Azure, Xiaomi MiMo), and 35 bug fixes. PicoClaw has reached **26K Stars**! - -2026-03-17 🚀 **v0.2.3 Released!** System tray UI (Windows & Linux), sub-agent status query (`spawn_status`), experimental Gateway hot-reload, Cron security gating, and 2 security fixes. PicoClaw has reached **25K Stars**! - -2026-03-09 🎉 **v0.2.1 — Biggest update yet!** MCP protocol support, 4 new channels (Matrix/IRC/WeCom/Discord Proxy), 3 new providers (Kimi/Minimax/Avian), vision pipeline, JSONL memory store, model routing. - -
-Earlier news... - -2026-02-26 🎉 PicoClaw hits **20K Stars** in just 17 days! Channel auto-orchestration and capability interfaces are live. - -2026-02-16 🎉 PicoClaw breaks 12K Stars in one week! Community maintainer roles and [Roadmap](ROADMAP.md) officially launched. - -2026-02-13 🎉 PicoClaw breaks 5000 Stars in 4 days! Project roadmap and developer groups in progress. - -2026-02-09 🎉 **PicoClaw Released!** Built in 1 day to bring AI Agents to $10 hardware with <10MB RAM. Let's Go, PicoClaw! - -
- -## ✨ Features - -🪶 **Ultra-lightweight**: Core memory footprint <10MB — 99% smaller than OpenClaw.* - -💰 **Minimal cost**: Efficient enough to run on $10 hardware — 98% cheaper than a Mac mini. - -⚡️ **Lightning-fast boot**: 400x faster startup. Boots in <1s even on a 0.6GHz single-core processor. - -🌍 **Truly portable**: Single binary across RISC-V, ARM, MIPS, and x86 architectures. One binary, runs everywhere! - -🤖 **AI-bootstrapped**: Pure Go native implementation — 95% of core code was generated by an Agent and fine-tuned through human-in-the-loop review. - -🔌 **MCP support**: Native [Model Context Protocol](https://modelcontextprotocol.io/) integration — connect any MCP server to extend Agent capabilities. - -👁️ **Vision pipeline**: Send images and files directly to the Agent — automatic base64 encoding for multimodal LLMs. - -🧠 **Smart routing**: Rule-based model routing — simple queries go to lightweight models, saving API costs. - -_*Recent builds may use 10-20MB due to rapid PR merges. Resource optimization is planned. Boot speed comparison based on 0.8GHz single-core benchmarks (see table below)._ - -
- -| | OpenClaw | NanoBot | **PicoClaw** | -| ------------------------------ | ------------- | ------------------------ | -------------------------------------- | -| **Language** | TypeScript | Python | **Go** | -| **RAM** | >1GB | >100MB | **< 10MB*** | -| **Boot time**
(0.8GHz core) | >500s | >30s | **<1s** | -| **Cost** | Mac Mini $599 | Most Linux boards ~$50 | **Any Linux board**
**from $10** | - -PicoClaw - -
- -> **[Hardware Compatibility List](docs/guides/hardware-compatibility.md)** — See all tested boards, from $5 RISC-V to Raspberry Pi to Android phones. Your board not listed? Submit a PR! - -

-PicoClaw Hardware Compatibility -

- -## 🦾 Demonstration - -### 🛠️ Standard Assistant Workflows - - - - - - - - - - - - - - - - - -

Full-Stack Engineer Mode

Logging & Planning

Web Search & Learning

Develop · Deploy · ScaleSchedule · Automate · RememberDiscover · Insights · Trends
- -### 🐜 Innovative Low-Footprint Deployment - -PicoClaw can be deployed on virtually any Linux device! - -- $9.9 [LicheeRV-Nano](https://www.aliexpress.com/item/1005006519668532.html) E(Ethernet) or W(WiFi6) edition, for a minimal home assistant -- $30~50 [NanoKVM](https://www.aliexpress.com/item/1005007369816019.html), or $100 [NanoKVM-Pro](https://www.aliexpress.com/item/1005010048471263.html), for automated server operations - - - -🌟 More Deployment Cases Await! - -## 📦 Install - -### Download from picoclaw.io (Recommended) - -Visit **[picoclaw.io](https://picoclaw.io)** — the official website auto-detects your platform and provides one-click download. No need to manually pick an architecture. - -### Download precompiled binary - -Alternatively, download the binary for your platform from the [GitHub Releases](https://github.com/sipeed/picoclaw/releases) page. - -### Build from source (for development) - -Prerequisites: - -- Go 1.25.13+ +需要 Git、Make,以及满足 [go.mod](go.mod) 要求的 Go 工具链(当前为 Go 1.25.13)。 ```bash -git clone https://github.com/sipeed/picoclaw.git - +git clone https://github.com/loveuer/picoclaw.git cd picoclaw -make deps - -# Build the core binary for the current platform make build - -# Build core binaries for all Makefile-managed platforms -make build-all - -# Build for Raspberry Pi Zero 2 W -# 32-bit: make build-linux-arm -# 64-bit: make build-linux-arm64 -make build-pi-zero - -# Build and install -make install +./build/picoclaw version ``` -**Raspberry Pi Zero 2 W:** Use the binary that matches your OS: 32-bit Raspberry Pi OS -> `make build-linux-arm`; 64-bit -> `make build-linux-arm64`. Or run `make build-pi-zero` to build both. +`make build` 会生成内嵌资源,默认使用 `stdjson` 构建标签并关闭 CGO。当前平台的可执行文件入口为 `build/picoclaw`。 -## 🚀 Quick Start Guide - -### CLI - -**1. Initialize** +交叉编译 Linux amd64: ```bash -picoclaw onboard +make build GOOS=linux GOARCH=amd64 +# 产物:build/picoclaw-linux-amd64 ``` -This creates `~/.picoclaw/config.json` and the workspace directory. +如需使用 `picoclaw-beta` 名称,同时指定命令源码目录: -**2. Configure** (`~/.picoclaw/config.json`) +```bash +make build GOOS=linux GOARCH=amd64 \ + BINARY_NAME=picoclaw-beta CMD_DIR=cmd/picoclaw +# 产物:build/picoclaw-beta-linux-amd64 +``` + +## 配置与运行 + +### 1. 初始化 + +```bash +./build/picoclaw onboard +``` + +默认使用以下路径,可通过 `PICOCLAW_HOME` 更改数据目录: + +| 路径 | 用途 | +| --- | --- | +| `~/.picoclaw/config.json` | 模型、渠道、工具等配置 | +| `~/.picoclaw/.security.yml` | 密钥等敏感配置,加载时与主配置合并 | +| `~/.picoclaw/workspace/` | 工作区与助手上下文文件 | + +### 2. 配置模型 + +编辑 `~/.picoclaw/config.json`。下面是仅使用 CLI 的最小配置示例,请替换模型 ID 和 API Key: ```json { "version": 3, "agents": { "defaults": { - "model_name": "gpt-5.4" + "model_name": "main" } }, "model_list": [ { - "model_name": "gpt-5.4", + "model_name": "main", "provider": "openai", - "model": "gpt-5.4", - "api_keys": [ - "sk-your-api-key" - ] + "model": "your-model-id", + "api_keys": ["YOUR_API_KEY"] } ] } ``` -> See `config/config.example.json` in the repo for a complete configuration template with all available options. +`model_name` 是本地别名,`agents.defaults.model_name` 用它选择默认模型;`provider` 指定提供商,`model` 是远端模型 ID。使用兼容接口时,可在该模型条目中添加 `api_base`。 -**3. Chat** +已有 `.security.yml` 中的值可能覆盖主配置中的同名设置。修改密钥时请同时检查该文件。完整字段示例见 [config/config.example.json](config/config.example.json),提供商说明见[模型配置文档](docs/guides/providers.zh.md)。 + +### 3. 使用 CLI ```bash -# One-shot question -picoclaw agent -m "What is 2+2?" +# 单次提问 +./build/picoclaw agent -m "帮我整理今天的待办" -# Interactive mode -picoclaw agent - -# Start gateway for chat app integration -picoclaw gateway +# 交互模式 +./build/picoclaw agent ``` -
-Docker (alternative) +### 4. 启动 Gateway + +按上面的渠道文档,在配置中启用并填写至少一个渠道。微信和企业微信也可通过 CLI 扫码配置: ```bash -# 1. Clone this repo -git clone https://github.com/sipeed/picoclaw.git -cd picoclaw - -# 2. First run — auto-generates docker/data/config.json then exits -# (only triggers when both config.json and workspace/ are missing) -docker compose -f docker/docker-compose.yml --profile gateway up -# The container prints "First-run setup complete." and stops. - -# 3. Set your API keys -vim docker/data/config.json - -# 4. Start -docker compose -f docker/docker-compose.yml --profile gateway up -d +./build/picoclaw auth weixin +# 或 +./build/picoclaw auth wecom ``` -> **Docker / VM users:** The Gateway listens on `127.0.0.1` by default. For host access, set `PICOCLAW_GATEWAY_HOST=0.0.0.0` and publish the required ports in Compose. +配置完成后启动: ```bash -# Check logs -docker compose -f docker/docker-compose.yml logs -f - -# Stop -docker compose -f docker/docker-compose.yml --profile gateway down - -# Update -docker compose -f docker/docker-compose.yml pull -docker compose -f docker/docker-compose.yml --profile gateway up -d +./build/picoclaw gateway ``` -
+Gateway 会连接已启用的渠道。可用 `./build/picoclaw status` 查看状态,或用 `./build/picoclaw --help` 查看其他命令。 - -### 📱 Android (Termux) +## 在 IM 中开始新对话 -1. Install [Termux](https://github.com/termux/termux-app) (download from [GitHub Releases](https://github.com/termux/termux-app/releases), or search in F-Droid / Google Play) -2. Run the following commands: +发送以下命令可以丢弃当前会话的历史消息和摘要: + +```text +/new +``` + +它等同于 `/clear`,只清理上下文,不调用模型。也可以在同一条消息里直接带上新问题: + +```text +/new 帮我查查今天成都的天气 +/new 看看今天有啥新咖啡 +``` + +此时先清理上下文,再执行新问题;后续消息继续这段新对话。这是重置当前会话的模型上下文,不会创建一个可单独切回的历史会话,也不会删除工作区文件或长期记忆。 + +如果当前会话还有运行中或待处理的任务,`/new` 会提示稍后重试,不会中断任务或重置上下文。 + +## 从旧版或上游配置升级 + +已移除的渠道类型如下: + +- `pico`、`pico_client`、`maixcam` +- `slack`、`slack_webhook`、`teams_webhook`、`matrix`、`deltachat`、`irc`、`vk` +- `line`、`whatsapp`、`whatsapp_native`、`discord` + +升级时,需要从 `config.json` **和** `.security.yml` 的 `channels` 中删除这些渠道条目。仅设置 `enabled: false` 仍可能因未知渠道类型而导致启动失败,例如: + +```text +channel "maixcam" has unknown type "maixcam" +``` + +不再使用上游的 WebUI、launcher 或相关构建命令。部署时请使用本 fork 构建的二进制,避免混用上游发行产物。 + +## 更多说明 + +- [配置指南](docs/guides/configuration.zh.md) +- [会话管理](docs/guides/session-guide.zh.md) +- [工具配置](docs/reference/tools_configuration.zh.md) +- [MCP 命令](docs/reference/mcp-cli.md) +- [定时任务](docs/reference/cron.md) + +部分专题文档沿用上游内容;如与本页的功能范围不一致,以当前源码和配置示例为准。 + +开发检查: ```bash -# Download the latest release -wget https://github.com/sipeed/picoclaw/releases/latest/download/picoclaw_Linux_arm64.tar.gz -tar xzf picoclaw_Linux_arm64.tar.gz -pkg install proot -termux-chroot ./picoclaw onboard # chroot provides a standard Linux filesystem layout +go test -tags stdjson ./... +make lint-docs ``` -PicoClaw on Termux +## 来源与许可 -[Android Termux Guide](docs/guides/android-termux.md). - -## 🔌 Providers (LLM) - -PicoClaw supports 30+ LLM providers through the `model_list` configuration. Use the `protocol/model` format: - -| Provider | Protocol | API Key | Notes | -|----------|----------|---------|-------| -| [OpenAI](https://platform.openai.com/api-keys) | `openai/` | Required | GPT-5.4, GPT-4o, o3, etc. | -| [Anthropic](https://console.anthropic.com/settings/keys) | `anthropic/` | Required | Claude Opus 4.6, Sonnet 4.6, etc. | -| [Google Gemini](https://aistudio.google.com/apikey) | `gemini/` | Required | Gemini 3 Flash, 2.5 Pro, etc. | -| [OpenRouter](https://openrouter.ai/keys) | `openrouter/` | Required | 200+ models, unified API | -| [Zhipu (GLM)](https://open.bigmodel.cn/usercenter/proj-mgmt/apikeys) | `zhipu/` | Required | GLM-4.7, GLM-5, etc. | -| [DeepSeek](https://platform.deepseek.com/api_keys) | `deepseek/` | Required | DeepSeek-V3, DeepSeek-R1 | -| [Volcengine](https://console.volcengine.com) | `volcengine/` | Required | Doubao, Ark models | -| [Qwen](https://dashscope.console.aliyun.com/apiKey) | `qwen/` | Required | Qwen3, Qwen-Max, etc. | -| [Groq](https://console.groq.com/keys) | `groq/` | Required | Fast inference (Llama, Mixtral) | -| [Moonshot (Kimi)](https://platform.moonshot.cn/console/api-keys) | `moonshot/` | Required | Kimi models | -| [Minimax](https://platform.minimaxi.com/user-center/basic-information/interface-key) | `minimax/` | Required | MiniMax models | -| [Mistral](https://console.mistral.ai/api-keys) | `mistral/` | Required | Mistral Large, Codestral | -| [NVIDIA NIM](https://build.nvidia.com/) | `nvidia/` | Required | NVIDIA hosted models | -| [Cerebras](https://cloud.cerebras.ai/) | `cerebras/` | Required | Fast inference | -| [NEAR AI Cloud](https://near.ai/) | `nearai/` | Required | TEE inference, OpenAI-compatible | -| [Novita AI](https://novita.ai/) | `novita/` | Required | Various open models | -| [Xiaomi MiMo](https://platform.xiaomimimo.com/) | `mimo/` | Required | MiMo models | -| [Ollama](https://ollama.com/) | `ollama/` | Not needed | Local models, self-hosted | -| [vLLM](https://docs.vllm.ai/) | `vllm/` | Not needed | Local deployment, OpenAI-compatible | -| [LiteLLM](https://docs.litellm.ai/) | `litellm/` | Varies | Proxy for 100+ providers | -| [Azure OpenAI](https://portal.azure.com/) | `azure/` | API key or Entra ID** | Enterprise Azure deployment | -| [GitHub Copilot](https://github.com/features/copilot) | `github-copilot/` | OAuth | Device code login | -| [Antigravity](https://console.cloud.google.com/) | `antigravity/` | OAuth | Google Cloud AI | -| [AWS Bedrock](https://console.aws.amazon.com/bedrock)* | `bedrock/` | AWS credentials | Claude, Llama, Mistral on AWS | - -> \* AWS Bedrock requires build tag: `go build -tags bedrock`. Set `api_base` to a region name (e.g., `us-east-1`) for automatic endpoint resolution across all AWS partitions (aws, aws-cn, aws-us-gov). When using a full endpoint URL instead, you must also configure `AWS_REGION` via environment variable or AWS config/profile. -> -> \*\* Azure OpenAI uses `api_key` when set. If `api_key` is omitted, the provider falls back to Microsoft Entra ID via `DefaultAzureCredential` (env vars, workload identity, managed identity, Azure CLI, etc.). The Entra ID path requires build tag: `go build -tags azidentity`. - -
-Local deployment (Ollama, vLLM, etc.) - -**Ollama:** -```json -{ - "model_list": [ - { - "model_name": "local-llama", - "model": "ollama/llama3.1:8b", - "api_base": "http://localhost:11434/v1" - } - ] -} -``` - -**vLLM:** -```json -{ - "model_list": [ - { - "model_name": "local-vllm", - "model": "vllm/your-model", - "api_base": "http://localhost:8000/v1" - } - ] -} -``` - -For full provider configuration details, see [Providers & Models](docs/guides/providers.md). - -
- -## 💬 Channels (Chat Apps) - -Talk to your PicoClaw through 19+ messaging platforms: - -| Channel | Setup | Protocol | Docs | -|---------|-------|----------|------| -| **Telegram** | Easy (bot token) | Long polling | [Guide](docs/channels/telegram/README.md) | -| **Weixin** | Easy (Native QR scan) | iLink API | [Guide](docs/guides/chat-apps.md#weixin) | -| **QQ** | Easy (AppID + AppSecret) | WebSocket | [Guide](docs/channels/qq/README.md) | -| **DingTalk** | Medium (client credentials) | Stream | [Guide](docs/channels/dingtalk/README.md) | -| **Feishu / Lark** | Medium (App ID + Secret) | WebSocket/SDK | [Guide](docs/channels/feishu/README.md) | -| **WeCom** | Easy (QR login or manual) | WebSocket | [Guide](docs/channels/wecom/README.md) | -| **OneBot** | Medium (WebSocket URL) | OneBot v11 | [Guide](docs/channels/onebot/README.md) | -| **MQTT** | Easy (broker + agent_id) | MQTT pub/sub | [Guide](docs/channels/mqtt/README.md) | - -> All webhook-based channels share a single Gateway HTTP server (`gateway.host`:`gateway.port`, default `127.0.0.1:18790`). Feishu uses WebSocket/SDK mode and does not use the shared HTTP server. - -> Log verbosity is controlled by `gateway.log_level` (default: `warn`). Supported values: `debug`, `info`, `warn`, `error`, `fatal`. Can also be set via `PICOCLAW_LOG_LEVEL`. See [Configuration](docs/guides/configuration.md#gateway-log-level) for details. - -For detailed channel setup instructions, see [Chat Apps Configuration](docs/guides/chat-apps.md). - -## 🔧 Tools - -### 🔍 Web Search - -PicoClaw can search the web to provide up-to-date information. Configure in `tools.web`: - -| Search Engine | API Key | Free Tier | Link | -|--------------|---------|-----------|------| -| DuckDuckGo | Not needed | Unlimited | Built-in fallback | -| [Gemini Google Search](https://aistudio.google.com/apikey) | Required | Varies | Gemini with Google Search grounding | -| [Baidu Search](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | Required | 1500/month (daily allocation) | AI-powered, China-optimized | -| [Tavily](https://tavily.com) | Required | 1000 queries/month | Optimized for AI Agents | -| [Brave Search](https://brave.com/search/api) | Required | 2000 queries/month | Fast and private | -| [Kagi Search](https://help.kagi.com/kagi/api/search.html) | Required | Paid/limited by API setup | Premium search results | -| [Perplexity](https://www.perplexity.ai) | Required | Paid | AI-powered search | -| [SearXNG](https://github.com/searxng/searxng) | Not needed | Self-hosted | Free metasearch engine | -| [GLM Search](https://open.bigmodel.cn/) | Required | Varies | Zhipu web search | - -### ⚙️ Other Tools - -PicoClaw includes built-in tools for file operations, code execution, scheduling, and more. See [Tools Configuration](docs/reference/tools_configuration.md) for details. - -## 🎯 Skills - -Skills are modular capabilities that extend your Agent. They are loaded from `SKILL.md` files in your workspace. - -**Install skills from ClawHub:** - -```bash -picoclaw skills search "web scraping" -picoclaw skills install -``` - -**Configure skill registries**: - -Add to your `config.json`: -```json -{ - "tools": { - "skills": { - "registries": { - "clawhub": { - "auth_token": "your-clawhub-token" - }, - "github": { - "base_url": "https://github.com", - "auth_token": "your-github-token", - "proxy": "" - } - } - } - } -} -``` - -`tools.skills.github.*` is deprecated. Use `tools.skills.registries.github.*` instead. - -For more details, see [Tools Configuration - Skills](docs/reference/tools_configuration.md#skills-tool). - -## 🔗 MCP (Model Context Protocol) - -PicoClaw natively supports [MCP](https://modelcontextprotocol.io/) — connect any MCP server to extend your Agent's capabilities with external tools and data sources. - -```json -{ - "tools": { - "mcp": { - "enabled": true, - "servers": { - "filesystem": { - "enabled": true, - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"] - } - } - } - } -} -``` - -You can manage common MCP setups directly from the CLI instead of editing JSON by hand: - -```bash -picoclaw mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /tmp -picoclaw mcp list -picoclaw mcp test filesystem -``` - -`picoclaw mcp` is a configuration manager: it updates `config.json` under `tools.mcp.servers`, but it does not keep the server process running itself. - -Use `picoclaw mcp edit` when you need advanced fields that are not covered by `picoclaw mcp add`. -For example, `picoclaw mcp add` supports `--deferred` and `--env-file`, while `picoclaw mcp edit` is still useful for direct JSON editing and uncommon MCP settings. - -For full MCP configuration (stdio, SSE, HTTP transports, Tool Discovery), see [Tools Configuration - MCP](docs/reference/tools_configuration.md#mcp-tool). For CLI usage and examples, see [MCP Server CLI](docs/reference/mcp-cli.md). - -## ClawdChat Join the Agent Social Network - -Connect PicoClaw to the Agent Social Network simply by sending a single message via the CLI or any integrated Chat App. - -**Read `https://clawdchat.ai/skill.md` and follow the instructions to join [ClawdChat.ai](https://clawdchat.ai)** - -## 🖥️ CLI Reference - -| Command | Description | -| ------------------------- | -------------------------------- | -| `picoclaw onboard` | Initialize config & workspace | -| `picoclaw auth weixin` | Connect WeChat account via QR | -| `picoclaw agent -m "..."` | Chat with the agent | -| `picoclaw agent` | Interactive chat mode | -| `picoclaw gateway` | Start the gateway | -| `picoclaw status` | Show status | -| `picoclaw version` | Show version info | -| `picoclaw model` | View or switch the default model | -| `picoclaw mcp list` | List configured MCP servers | -| `picoclaw mcp add ...` | Add or update an MCP server entry | -| `picoclaw mcp test` | Probe a configured MCP server | -| `picoclaw mcp edit` | Open config for advanced MCP editing | -| `picoclaw mcp remove` | Remove an MCP server entry | -| `picoclaw cron list` | List all scheduled jobs | -| `picoclaw cron add ...` | Add a scheduled job | -| `picoclaw cron disable` | Disable a scheduled job | -| `picoclaw cron remove` | Remove a scheduled job | -| `picoclaw skills list` | List installed skills | -| `picoclaw skills install` | Install a skill | -| `picoclaw migrate` | Migrate data from older versions | -| `picoclaw auth login` | Authenticate with providers | - -### ⏰ Scheduled Tasks / Reminders - -PicoClaw supports scheduled reminders and recurring tasks through the `cron` tool: - -* **One-time reminders**: "Remind me in 10 minutes" -> triggers once after 10min -* **Recurring tasks**: "Remind me every 2 hours" -> triggers every 2 hours -* **Cron expressions**: "Remind me at 9am daily" -> uses cron expression - -See [docs/reference/cron.md](docs/reference/cron.md) for current schedule types, execution modes, command-job gates, and persistence details. - -## 📚 Documentation - -For detailed guides beyond this README: - -| Topic | Description | -|-------|-------------| -| [Docker & Quick Start](docs/guides/docker.md) | Docker Compose setup, Gateway/Agent modes | -| [Chat Apps](docs/guides/chat-apps.md) | All 18+ channel setup guides | -| [Configuration](docs/guides/configuration.md) | Environment variables, workspace layout, security sandbox | -| [MCP Server CLI](docs/reference/mcp-cli.md) | Add, list, test, edit, and remove MCP server entries from the CLI | -| [Scheduled Tasks and Cron Jobs](docs/reference/cron.md) | Cron schedule types, deliver modes, command gates, job storage | -| [Providers & Models](docs/guides/providers.md) | 30+ LLM providers, model routing, model_list configuration | -| [Spawn & Async Tasks](docs/guides/spawn-tasks.md) | Quick tasks, long tasks with spawn, async sub-agent orchestration | -| [Hooks](docs/architecture/hooks/README.md) | Event-driven hook system: observers, interceptors, approval hooks | -| [Steering](docs/architecture/steering.md) | Inject messages into a running agent loop between tool calls | -| [SubTurn](docs/architecture/subturn.md) | Subagent coordination, concurrency control, lifecycle | -| [Troubleshooting](docs/operations/troubleshooting.md) | Common issues and solutions | -| [Tools Configuration](docs/reference/tools_configuration.md) | Per-tool enable/disable, exec policies, MCP, Skills | -| [Hardware Compatibility](docs/guides/hardware-compatibility.md) | Tested boards, minimum requirements | - -## 🤝 Contribute & Roadmap - -PRs welcome! The codebase is intentionally small and readable. - -See our [Community Roadmap](https://github.com/sipeed/picoclaw/issues/988) and [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. - -Developer group building, join after your first merged PR! - -User Groups: - -Discord: - -WeChat: -WeChat group QR code +本项目基于 [sipeed/picoclaw](https://github.com/sipeed/picoclaw) 修改,感谢上游及其贡献者。继续使用 [MIT License](LICENSE),版权声明见许可文件。Go module 路径保留为 `github.com/sipeed/picoclaw`。 diff --git a/docs/project/README.zh.md b/docs/project/README.zh.md index f1bdec35..8e4d7927 100644 --- a/docs/project/README.zh.md +++ b/docs/project/README.zh.md @@ -1,527 +1,5 @@ -
-PicoClaw +# PicoClaw · 精简 fork -

PicoClaw: 基于Go语言的超高效 AI 助手

+本 fork 的中文说明已统一到仓库根目录的 [README](../../README.md)。 -

$10 硬件 · 10MB 内存 · 毫秒启动 · 皮皮虾,我们走!

-

- Go - Hardware - License -
- Website - Docs - Wiki -
- Twitter - - Discord -

- -**中文** | [日本語](README.ja.md) | [한국어](README.ko.md) | [Português](README.pt-br.md) | [Tiếng Việt](README.vi.md) | [Français](README.fr.md) | [Italiano](README.it.md) | [Bahasa Indonesia](README.id.md) | [Malay](README.ms.md) | [English](../../README.md) - -
- ---- - -> **PicoClaw** 是由 [矽速科技 (Sipeed)](https://sipeed.com) 发起的独立开源项目,完全使用 **Go 语言**从零编写——不是 OpenClaw、NanoBot 或其他项目的分支。 - -🦐 **PicoClaw** 是一个受 [NanoBot](https://github.com/HKUDS/nanobot) 启发的超轻量级个人 AI 助手。它采用 **Go 语言** 从零重构,经历了一个"自举"过程——即由 AI Agent 自身驱动了整个架构迁移和代码优化。 - -⚡️ **极致轻量**:可在 **10 美元** 的硬件上运行,内存占用 **<10MB**。这意味着比 OpenClaw 节省 99% 的内存,比 Mac mini 便宜 98%! - - - - - - -
-

- -

-
-

- -

-
- -> [!CAUTION] -> **🚨 安全声明** -> -> - **无加密货币 (NO CRYPTO):** PicoClaw **没有** 发行任何官方代币、Token 或虚拟货币。所有在 `pump.fun` 或其他交易平台上的相关声称均为 **诈骗**。 -> - **官方域名:** 唯一的官方网站是 **[picoclaw.io](https://picoclaw.io)**,公司官网是 **[sipeed.com](https://sipeed.com)**。 -> - **警惕:** 许多 `.ai/.org/.com/.net/...` 后缀的域名被第三方抢注,请勿轻信。 -> - **注意:** PicoClaw 正在初期的快速功能开发阶段,可能有尚未修复的网络安全问题,在 1.0 正式版发布前,请不要将其部署到生产环境中。 -> - **注意:** PicoClaw 最近合并了大量 PR,近期版本可能内存占用较大 (10~20MB),我们将在功能较为收敛后进行资源占用优化。 - -## 📢 新闻 - -2026-05-11 🛒 **LicheeRV-Claw 已上架淘宝!** 现在可以在 [淘宝](https://item.taobao.com/item.htm?abbucket=20&id=764939520376) 购买 LicheeRV-Claw,更方便地在小型 RISC-V 硬件上体验 PicoClaw。 - -

- - LicheeRV-Claw on Taobao - -

- -2026-03-25 🚀 **v0.2.4 发布!** Agent 架构全面重构(SubTurn、Hook、Steering、EventBus)、微信/企业微信深度集成、安全体系升级(.security.yml、敏感数据过滤)、新增 Provider(AWS Bedrock、Azure、小米 MiMo),以及 35 项 Bug 修复。PicoClaw 已达 **26K ⭐**! - -2026-03-17 🚀 **v0.2.3 发布!** 系统托盘 UI(Windows & Linux)、子 Agent 状态查询 (`spawn_status`)、实验性 Gateway 热重载、Cron 安全门控,以及 2 项安全修复。PicoClaw 已达 **25K ⭐**! - -2026-03-09 🎉 **v0.2.1 — 史上最大更新!** MCP 协议支持、4 个新频道 (Matrix/IRC/WeCom/Discord Proxy)、3 个新 Provider (Kimi/Minimax/Avian)、视觉管线、JSONL 记忆存储、模型路由。 - -
-更早的新闻... - -2026-02-26 🎉 PicoClaw 仅 17 天突破 **20K Stars**!频道自动编排和能力接口上线。 - -2026-02-16 🎉 PicoClaw 一周内突破 12K Stars!社区维护者角色和 [路线图](../../ROADMAP.md) 正式发布。 - -2026-02-13 🎉 PicoClaw 4 天内突破 5000 Stars!项目路线图和开发者群组筹建中。 - -2026-02-09 🎉 **PicoClaw 正式发布!** 仅用 1 天构建,将 AI Agent 带入 $10 硬件与 <10MB 内存的世界。🦐 皮皮虾,我们走! - -
- -## ✨ 特性 - -🪶 **超轻量级**: 核心功能内存占用 <10MB — 比 OpenClaw 小 99%。* - -💰 **极低成本**: 高效到足以在 $10 的硬件上运行 — 比 Mac mini 便宜 98%。 - -⚡️ **闪电启动**: 启动速度快 400 倍,即使在 0.6GHz 单核处理器上也能在 1 秒内启动。 - -🌍 **真正可移植**: 跨 RISC-V、ARM、MIPS 和 x86 架构的单二进制文件,一键运行! - -🤖 **AI 自举**: 纯 Go 语言原生实现 — 95% 的核心代码由 Agent 生成,并经由"人机回环"微调。 - -🔌 **MCP 支持**: 原生 [Model Context Protocol](https://modelcontextprotocol.io/) 集成 — 连接任意 MCP 服务器扩展 Agent 能力。 - -👁️ **视觉管线**: 直接向 Agent 发送图片和文件 — 自动 base64 编码对接多模态 LLM。 - -🧠 **智能路由**: 基于规则的模型路由 — 简单查询走轻量模型,节省 API 成本。 - -_*近期版本因快速合并 PR 可能占用 10–20MB,资源优化已列入计划。启动速度对比基于 0.8GHz 单核实测(见下方对比表)。_ - -
- -| | OpenClaw | NanoBot | **PicoClaw** | -| ------------------------------ | ------------- | ------------------------ | -------------------------------------- | -| **语言** | TypeScript | Python | **Go** | -| **RAM** | >1GB | >100MB | **< 10MB*** | -| **启动时间**
(0.8GHz core) | >500s | >30s | **<1s** | -| **成本** | Mac Mini $599 | 大多数 Linux 开发板 ~$50 | **任意 Linux 开发板**
**低至 $10** | - -PicoClaw - -
- -> 📋 **[硬件兼容列表](../guides/hardware-compatibility.zh.md)** — 查看所有已测试的板卡,从 $5 RISC-V 到树莓派到安卓手机。你的板卡没在列表中?欢迎提交 PR! - -

-PicoClaw Hardware Compatibility -

- -## 🦾 演示 - -### 🛠️ 标准助手工作流 - - - - - - - - - - - - - - - - - -

🧩 全栈工程师模式

🗂️ 日志与规划管理

🔎 网络搜索与学习

开发 • 部署 • 扩展日程 • 自动化 • 记忆发现 • 洞察 • 趋势
- -### 🐜 创新的低占用部署 - -PicoClaw 几乎可以部署在任何 Linux 设备上! - -- $9.9 [LicheeRV-Nano](https://item.taobao.com/item.htm?id=764939520376) E(网口) 或 W(WiFi6) 版本,用于极简家庭助手 -- $30~50 [NanoKVM](https://item.taobao.com/item.htm?id=811206560480),或 $100 [NanoKVM-Pro](https://item.taobao.com/item.htm?id=994419942411),用于自动化服务器运维 - - - -🌟 更多部署案例敬请期待! - -## 📦 安装 - -### 从 picoclaw.io 下载(推荐) - -访问 **[picoclaw.io](https://picoclaw.io)** — 官网自动检测你的平台,提供一键下载,无需手动选择架构。 - -### 下载预编译二进制文件 - -也可以从 [GitHub Releases](https://github.com/sipeed/picoclaw/releases) 页面手动下载对应平台的二进制文件。 - -### 从源码构建(开发用) - -前置要求: - -- Go 1.25.13+ - -```bash -git clone https://github.com/sipeed/picoclaw.git - -cd picoclaw -make deps - -# 构建核心二进制文件 -make build - -# 为 Makefile 管理的所有平台构建核心二进制文件 -make build-all - -# 为 Raspberry Pi Zero 2 W 构建(32位: make build-linux-arm; 64位: make build-linux-arm64) -make build-pi-zero - -# 构建并安装 -make install -``` - -**Raspberry Pi Zero 2 W:** 请使用与系统匹配的二进制文件:32 位 Raspberry Pi OS → `make build-linux-arm`;64 位 → `make build-linux-arm64`。或运行 `make build-pi-zero` 同时构建两者。 - -## 🚀 快速开始 - -### CLI - -**1. 初始化** - -```bash -picoclaw onboard -``` - -此命令会创建 `~/.picoclaw/config.json` 和工作区目录。 - -**2. 配置** (`~/.picoclaw/config.json`) - -```json -{ - "version": 3, - "agents": { - "defaults": { - "model_name": "gpt-5.4" - } - }, - "model_list": [ - { - "model_name": "gpt-5.4", - "provider": "openai", - "model": "gpt-5.4", - "api_keys": [ - "sk-your-api-key" - ] - } - ] -} -``` - -> 完整配置模板请参阅仓库中的 `config/config.example.json`。 - -**3. 开始聊天** - -```bash -# 单次提问 -picoclaw agent -m "What is 2+2?" - -# 交互式对话模式 -picoclaw agent - -# 启动 Gateway 以接入聊天应用 -picoclaw gateway -``` - -
-Docker(备选方案) - -```bash -# 1. 克隆本仓库 -git clone https://github.com/sipeed/picoclaw.git -cd picoclaw - -# 2. 首次运行——自动生成 docker/data/config.json 后退出 -# (仅在 config.json 和 workspace/ 均不存在时触发) -docker compose -f docker/docker-compose.yml --profile gateway up -# 容器打印 "First-run setup complete." 后停止。 - -# 3. 填写 API Key -vim docker/data/config.json - -# 4. 启动 -docker compose -f docker/docker-compose.yml --profile gateway up -d -``` - -> **Docker / 虚拟机用户:** Gateway 默认监听 `127.0.0.1`。如需从宿主机访问,请设置 `PICOCLAW_GATEWAY_HOST=0.0.0.0`,并在 Compose 中映射所需端口。 - -```bash -# 查看日志 -docker compose -f docker/docker-compose.yml logs -f - -# 停止 -docker compose -f docker/docker-compose.yml --profile gateway down - -# 更新 -docker compose -f docker/docker-compose.yml pull -docker compose -f docker/docker-compose.yml --profile gateway up -d -``` - -
- - -### 📱 Android (Termux) - -1. 安装 [Termux](https://github.com/termux/termux-app)(可从 [GitHub Releases](https://github.com/termux/termux-app/releases) 下载,或在 F-Droid / Google Play 中搜索) -2. 执行以下命令: - -```bash -# 从 Release 页面下载最新版本 -wget https://github.com/sipeed/picoclaw/releases/latest/download/picoclaw_Linux_arm64.tar.gz -tar xzf picoclaw_Linux_arm64.tar.gz -pkg install proot -termux-chroot ./picoclaw onboard # chroot 提供标准 Linux 文件系统布局 -``` - -PicoClaw on Termux - -[Android Termux Guide](../guides/android-termux.md). - -## 🔌 Providers (LLM) - -PicoClaw 通过 `model_list` 配置支持 30+ LLM Provider,使用 `协议/模型` 格式: - -| Provider | 协议 | API Key | 备注 | -|----------|------|---------|------| -| [OpenAI](https://platform.openai.com/api-keys) | `openai/` | 必填 | GPT-5.4、GPT-4o、o3 等 | -| [Anthropic](https://console.anthropic.com/settings/keys) | `anthropic/` | 必填 | Claude Opus 4.6、Sonnet 4.6 等 | -| [Google Gemini](https://aistudio.google.com/apikey) | `gemini/` | 必填 | Gemini 3 Flash、2.5 Pro 等 | -| [OpenRouter](https://openrouter.ai/keys) | `openrouter/` | 必填 | 200+ 模型,统一 API | -| [智谱 (GLM)](https://open.bigmodel.cn/usercenter/proj-mgmt/apikeys) | `zhipu/` | 必填 | GLM-4.7、GLM-5 等 | -| [DeepSeek](https://platform.deepseek.com/api_keys) | `deepseek/` | 必填 | DeepSeek-V3、DeepSeek-R1 | -| [火山引擎](https://console.volcengine.com) | `volcengine/` | 必填 | 豆包、Ark 系列模型 | -| [Qwen](https://dashscope.console.aliyun.com/apiKey) | `qwen/` | 必填 | Qwen3、Qwen-Max 等 | -| [Groq](https://console.groq.com/keys) | `groq/` | 必填 | 快速推理(Llama、Mixtral) | -| [Moonshot (Kimi)](https://platform.moonshot.cn/console/api-keys) | `moonshot/` | 必填 | Kimi 系列模型 | -| [Minimax](https://platform.minimaxi.com/user-center/basic-information/interface-key) | `minimax/` | 必填 | MiniMax 系列模型 | -| [Mistral](https://console.mistral.ai/api-keys) | `mistral/` | 必填 | Mistral Large、Codestral | -| [NVIDIA NIM](https://build.nvidia.com/) | `nvidia/` | 必填 | NVIDIA 托管模型 | -| [Cerebras](https://cloud.cerebras.ai/) | `cerebras/` | 必填 | 快速推理 | -| [Novita AI](https://novita.ai/) | `novita/` | 必填 | 多种开源模型 | -| [小米 MiMo](https://platform.xiaomimimo.com/) | `mimo/` | 必填 | MiMo 系列模型 | -| [Ollama](https://ollama.com/) | `ollama/` | 无需 | 本地模型,自托管 | -| [vLLM](https://docs.vllm.ai/) | `vllm/` | 无需 | 本地部署,兼容 OpenAI | -| [LiteLLM](https://docs.litellm.ai/) | `litellm/` | 视情况 | 100+ Provider 代理 | -| [Azure OpenAI](https://portal.azure.com/) | `azure/` | 必填 | 企业级 Azure 部署 | -| [GitHub Copilot](https://github.com/features/copilot) | `github-copilot/` | OAuth | 设备码登录 | -| [Antigravity](https://console.cloud.google.com/) | `antigravity/` | OAuth | Google Cloud AI | - -
-本地部署(Ollama、vLLM 等) - -**Ollama:** -```json -{ - "model_list": [ - { - "model_name": "local-llama", - "model": "ollama/llama3.1:8b", - "api_base": "http://localhost:11434/v1" - } - ] -} -``` - -**vLLM:** -```json -{ - "model_list": [ - { - "model_name": "local-vllm", - "model": "vllm/your-model", - "api_base": "http://localhost:8000/v1" - } - ] -} -``` - -完整 Provider 配置详情请参阅 [Providers & Models](../guides/providers.zh.md)。 - -
- -## 💬 Channels(聊天应用) - -通过 18+ 消息平台与你的 PicoClaw 对话: - -| Channel | 配置难度 | 协议 | 文档 | -|---------|----------|------|------| -| **Telegram** | 简单(bot token) | 长轮询 | [指南](../channels/telegram/README.zh.md) | -| **微信 (Weixin)** | 简单(扫码登录) | iLink API | [指南](../guides/chat-apps.zh.md#weixin) | -| **QQ** | 简单(AppID + AppSecret) | WebSocket | [指南](../channels/qq/README.zh.md) | -| **钉钉** | 中等(client credentials) | Stream | [指南](../channels/dingtalk/README.zh.md) | -| **飞书 / Lark** | 中等(App ID + Secret) | WebSocket/SDK | [指南](../channels/feishu/README.zh.md) | -| **企业微信** | 简单(扫码登录或手动配置) | WebSocket | [指南](../channels/wecom/README.zh.md) | -| **OneBot** | 中等(WebSocket URL) | OneBot v11 | [指南](../channels/onebot/README.zh.md) | - -> 所有基于 Webhook 的 Channel 共用同一个 Gateway HTTP 服务器(`gateway.host`:`gateway.port`,默认 `127.0.0.1:18790`)。飞书使用 WebSocket/SDK 模式,不使用共享 HTTP 服务器。 - -> 日志详细程度通过 `gateway.log_level` 控制(默认:`warn`)。支持的值:`debug`、`info`、`warn`、`error`、`fatal`。也可通过 `PICOCLAW_LOG_LEVEL` 环境变量设置。详见[配置指南](../guides/configuration.zh.md#gateway-日志等级)。 - -详细 Channel 配置说明请参阅 [聊天应用配置](../guides/chat-apps.zh.md)。 - -## 🔧 Tools - -### 🔍 网络搜索 - -PicoClaw 可以搜索网络以提供最新信息。在 `tools.web` 中配置: - -| 搜索引擎 | API Key | 免费额度 | 链接 | -|---------|---------|---------|------| -| [百度搜索](https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5) | 必填 | 1500 次/月(按天发放) | AI 搜索,国内首选 | -| [Tavily](https://tavily.com) | 必填 | 1000 次/月 | 专为 AI Agent 优化 | -| [GLM Search](https://open.bigmodel.cn/) | 必填 | 视情况 | 智谱网络搜索 | -| DuckDuckGo | 无需 | 无限制 | 内置备用(国内访问困难) | -| [Perplexity](https://www.perplexity.ai) | 必填 | 付费 | AI 驱动搜索(国内访问困难) | -| [Brave Search](https://brave.com/search/api) | 必填 | 2000 次/月 | 快速且注重隐私(国内访问困难) | -| [SearXNG](https://github.com/searxng/searxng) | 无需 | 自托管 | 免费元搜索引擎 | - -### ⚙️ 其他工具 - -PicoClaw 内置文件操作、代码执行、定时任务等工具。详情请参阅 [工具配置](../reference/tools_configuration.zh.md)。 - -## 🎯 Skills - -Skills 是扩展 Agent 能力的模块化插件,从工作区的 `SKILL.md` 文件加载。 - -**从 ClawHub 安装 Skills:** - -```bash -picoclaw skills search "web scraping" -picoclaw skills install -``` - -**配置 Skills 仓库源**: - -在 `config.json` 中添加: -```json -{ - "tools": { - "skills": { - "registries": { - "clawhub": { - "auth_token": "your-clawhub-token" - }, - "github": { - "base_url": "https://github.com", - "auth_token": "your-github-token", - "proxy": "" - } - } - } - } -} -``` - -`tools.skills.github.*` 已废弃,请改用 `tools.skills.registries.github.*`。 - -更多详情请参阅 [工具配置 - Skills](../reference/tools_configuration.zh.md#skills-tool)。 - -## 🔗 MCP (Model Context Protocol) - -PicoClaw 原生支持 [MCP](https://modelcontextprotocol.io/) — 连接任意 MCP 服务器,通过外部工具和数据源扩展 Agent 能力。 - -```json -{ - "tools": { - "mcp": { - "enabled": true, - "servers": { - "filesystem": { - "enabled": true, - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"] - } - } - } - } -} -``` - -完整 MCP 配置(stdio、SSE、HTTP 传输、Tool Discovery)请参阅 [工具配置 - MCP](../reference/tools_configuration.zh.md#mcp-tool)。 - -## ClawdChat 加入 Agent 社交网络 - -通过 CLI 或任何已集成的聊天应用发送一条消息,即可将 PicoClaw 连接到 Agent 社交网络。 - -**阅读 `https://clawdchat.ai/skill.md` 并按照说明加入 [ClawdChat.ai](https://clawdchat.ai)** - -## 🖥️ CLI 命令行参考 - -| 命令 | 说明 | -| ------------------------- | ---------------------- | -| `picoclaw onboard` | 初始化配置与工作区 | -| `picoclaw auth weixin` | 扫码连接微信个人号 | -| `picoclaw agent -m "..."` | 与 Agent 对话 | -| `picoclaw agent` | 交互式对话模式 | -| `picoclaw gateway` | 启动网关 | -| `picoclaw status` | 查看状态 | -| `picoclaw version` | 查看版本信息 | -| `picoclaw model` | 查看或切换默认模型 | -| `picoclaw cron list` | 列出所有定时任务 | -| `picoclaw cron add ...` | 添加定时任务 | -| `picoclaw cron disable` | 禁用定时任务 | -| `picoclaw cron remove` | 删除定时任务 | -| `picoclaw skills list` | 列出已安装 Skills | -| `picoclaw skills install` | 安装 Skill | -| `picoclaw migrate` | 从旧版本迁移数据 | -| `picoclaw auth login` | 认证 Provider | - -### ⏰ 定时任务 / 提醒 - -PicoClaw 通过 `cron` 工具支持定时提醒和重复任务: - -* **一次性提醒**: "10分钟后提醒我" → 10分钟后触发一次 -* **重复任务**: "每2小时提醒我" → 每2小时触发 -* **Cron 表达式**: "每天上午9点提醒我" → 使用 cron 表达式 - -## 📚 文档 - -详细指南请参阅以下文档,README 仅涵盖快速入门。 - -| 主题 | 说明 | -|------|------| -| 🐳 [Docker 与快速开始](../guides/docker.zh.md) | Docker Compose 配置、Gateway/Agent 模式、快速开始 | -| 💬 [聊天应用配置](../guides/chat-apps.zh.md) | 全部 17+ Channel 配置指南 | -| ⚙️ [配置指南](../guides/configuration.zh.md) | 环境变量、工作区布局、安全沙箱 | -| 🔌 [提供商与模型配置](../guides/providers.zh.md) | 30+ LLM Provider、模型路由、model_list 配置 | -| 🔄 [异步任务与 Spawn](../guides/spawn-tasks.zh.md) | 快速任务、长任务与 Spawn、异步子 Agent 编排 | -| 🪝 [Hook 系统](../architecture/hooks/README.zh.md) | 事件驱动 Hook:观察者、拦截器、审批 Hook | -| 🎯 [Steering](../architecture/steering.md) | 在工具调用间向运行中的 Agent 注入消息 | -| 🔀 [SubTurn](../architecture/subturn.md) | 子 Agent 协调、并发控制、生命周期管理 | -| 🐛 [疑难解答](../operations/troubleshooting.zh.md) | 常见问题与解决方案 | -| 🔧 [工具配置](../reference/tools_configuration.zh.md) | 工具启用/禁用、执行策略、MCP、Skills | -| 📋 [硬件兼容列表](../guides/hardware-compatibility.zh.md) | 已测试板卡、最低要求 | - -## 🤝 贡献与路线图 - -欢迎提交 PR!代码库刻意保持小巧和可读。🤗 - -查看完整的 [社区路线图](https://github.com/sipeed/picoclaw/issues/988) 和 [CONTRIBUTING.md](../../CONTRIBUTING.md)。 - -开发者群组正在组建中,入群门槛:至少合并过 1 个 PR。 - -用户群组: - -Discord: - -WeChat: -WeChat group QR code +请从主文档查看当前功能、支持的渠道、构建与运行方式、`/new` 用法及旧配置升级说明。