ZL

zofrasca/lightclaw

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

229 stars 质量 44 趋势 18

zofrasca/lightclaw 是从 https://github.com/zofrasca/lightclaw. 导入的特工技能候选人。

概览

zofrasca/lightclaw 是从 https://github.com/zofrasca/lightclaw. 导入的特工技能候选人。

概述(AI 翻译)

LightClaw:真正的轻量级AI助手

LightClaw 是一款快速、本地优先的人工智能助手,灵感来自 OpenClaw 和纳米机器人,以单一的 Rust 二进制形式包装。

如果你想要代理工具、内存和Telegram/Discord集成,但运行时间不长,Lightclaw就是为此设计的。

为什么是光爪

公制 开爪 纳米机器人 光爪
分布 复仓库 Python + venv 单一二进制
磁盘开销 重 ~350MB 环境 ~总计15MB
运行时占用 高 ~100MB+ 低占用
启动 慢 ~0.5秒 几乎瞬间

60秒快速入门

支持的平台:

  • Linux x86_64
  • Linux ARM64(树莓派4/5,ARM服务器)
  • Linux ARMv7(例如较旧的ARM设备/电子阅读器)
  • macOS x86_64
  • macOS ARM64(苹果硅片)

注意:存在Windows二进制文件,但目前稳定性较差,支持也不如其他二进制文件。

你得到了什么

  • 单二进制部署:提供一个可执行文件,不包含 Python 运行时。
  • 具备工具支持的代理:文件、壳、网页和调度操作。
  • Telegram/Discord原生接口:内置高性能轮询功能。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

LightClaw is a fast, local-first AI assistant inspired by OpenClaw and nanobot, packaged as a single Rust binary.

If you want agentic tooling, memory, and Telegram/Discord integration without a heavy runtime, lightclaw is built for that.

Why lightclaw

Metric OpenClaw Nanobot LightClaw
Distribution Complex repo Python + venv Single binary
Disk overhead Heavy ~350MB env ~15MB total
Runtime footprint High ~100MB+ Low footprint
Startup Slow ~0.5s Near-instant

60-Second Quickstart

curl -fsSL https://lightclaw.dev/install.sh | bash
lightclaw configure

Supported platforms:

  • Linux x86_64
  • Linux ARM64 (Raspberry Pi 4/5, ARM servers)
  • Linux ARMv7 (e.g. older ARM devices / e-readers)
  • macOS x86_64
  • macOS ARM64 (Apple Silicon)

Note: A Windows binary exists, but it is currently less stable and not as well-supported as the others.

What You Get

  • Single-binary deploy: ship one executable, no Python runtime.
  • Tool-capable agent: file, shell, web, and scheduling actions.
  • Telegram/Discord-native interface: high-performance polling built in.
  • Local-first memory: vectors + metadata stored locally with SQLite.
  • Rust reliability: strong typing, memory safety, and concurrency.
  • Skills support: OpenClaw-style SKILL.md skills via activate_skill.

Memory System

LightClaw includes long-term memory:

  • Short-term chat history per session.
  • Periodic summarization of recent conversation chunks.
  • Semantic retrieval over stored memories.
  • Privacy-first local storage (no external vector DB required).

Configuration

Create ~/.lightclaw/config.json:

{
  "agents": {
    "defaults": {
      "provider": "openrouter",
      "model": "anthropic/claude-opus-4-5",
      "model_fallbacks": [
        "openai/gpt-4o-mini",
        "ollama/llama3.2"
      ]
    }
  },
  "providers": {
    "openrouter": {
      "apiKey": "sk-or-..."
    },
    "openai": {
      "apiKey": "sk-..."
    },
    "ollama": {
      "apiBase": "http://127.0.0.1:11434/v1"
    },
    "mistral": {
      "apiKey": "..."
    }
  },
  "channels": {
    "telegram": {
      "token": "YOUR_BOT_TOKEN",
      "allow_from": ["123456789"],
      "transcription": {
        "enabled": true,
        "provider": "openai",
        "model": "whisper-1",
        "language": "en",
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add zofrasca/lightclaw
新手?先看 mcpskill.org 教程 →