oimi分享美好数字生活 oimi分享美好数字生活
  • 首页
  • AI
  • Lab
  • Apple
  • 生活方式
  • 硬件
首页 › AI › nanobot超轻量级个人AI助手
  • 0
  • 0

nanobot超轻量级个人AI助手

OIMI
5 2 月, 2026
11 views

🐈 纳米机器人是一款超轻量级个人人工智能助手,灵感来源于Clawdbot

⚡️ 只需 ~4,000 行代码即可实现核心代理功能——比 Clawdbot 的 430k+ 行小了 99%。

📢 新闻

 

  • 2026-02-01 🎉 纳米机器人发射!欢迎尝试🐈纳米机器人!

纳米机器人的关键特性:

 

🪶 超轻量级:仅约4000行代码——比Clawdbot核心功能小99%。

🔬 研究准备:简洁易读的代码,易于理解、修改和扩展,便于研究。

⚡️ 极快:最小的占用意味着启动更快,资源消耗更低,迭代更快。

💎 易用:一键解除多元硅,准备就绪。

🏗️ 建筑

 

nanobot超轻量级个人AI助手-oimi分享美好数字生活

✨ 特色

 

📈 全天候实时市场分析

🚀 全栈软件工程师

📅 智能日常管理

📚 个人知识助理

nanobot超轻量级个人AI助手-oimi分享美好数字生活

nanobot超轻量级个人AI助手-oimi分享美好数字生活

nanobot超轻量级个人AI助手-oimi分享美好数字生活

nanobot超轻量级个人AI助手-oimi分享美好数字生活

发现 • 洞见 • 趋势 开发 • 部署 • 扩展 计划 • 自动化 • 组织 学习 • 记忆 • 推理

📦 安装

 

从源码安装(最新功能,推荐开发)

git clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -e .

用UV安装(稳定,快速)

uv tool install nanobot-ai

从 PyPI(稳定版)安装

pip install nanobot-ai

🚀 快速入门

 

提示

将你的API密钥设置为 。 获取API密钥:OpenRouter(LLM)·勇者搜索(可选,用于网页搜索) 你也可以把型号换成更低成本。~/.nanobot/config.jsonminimax/minimax-m2

1. 初始化

nanobot onboard

2. 配置 (~/.nanobot/config.json)

{
  "providers": {
    "openrouter": {
      "apiKey": "sk-or-v1-xxx"
    }
  },
  "agents": {
    "defaults": {
      "model": "anthropic/claude-opus-4-5"
    }
  },
  "tools": {
    "web": {
      "search": {
        "apiKey": "BSA-xxx"
      }
    }
  }
}

3. 聊天

nanobot agent -m "What is 2+2?"

就是这样!你两分钟内就能有个可用的AI助手。

🖥️ 局部模型(vLLM)

 

用vLLM或任何兼容OpenAI的服务器,用自己的本地模型运行纳米机器人。

1. 启动你的虚拟语言语言模型服务器

vllm serve meta-llama/Llama-3.1-8B-Instruct --port 8000

2. 配置 (~/.nanobot/config.json)

{
  "providers": {
    "vllm": {
      "apiKey": "dummy",
      "apiBase": "http://localhost:8000/v1"
    }
  },
  "agents": {
    "defaults": {
      "model": "meta-llama/Llama-3.1-8B-Instruct"
    }
  }
}

3. 聊天

nanobot agent -m "Hello from my local LLM!"

提示

对于不需要认证的本地服务器来说,可以是任何非空字符串。apiKey

💬 聊天应用

 

通过Telegram或WhatsApp与你的纳米机器人交流——随时随地。

频道 设置
电报 简单(只是个代币)
WhatsApp 中等(扫描QR)
Telegram(推荐)

1. 创建一个机器人

  • 打开电报,搜索@BotFather
  • 发送,跟随提示/newbot
  • 复制令牌

2. 配置

{
  "channels": {
    "telegram": {
      "enabled": true,
      "token": "YOUR_BOT_TOKEN",
      "allowFrom": ["YOUR_USER_ID"]
    }
  }
}

从Telegram上获取用户ID。@userinfobot

3. 跑

nanobot gateway
WhatsApp

需要Node.js ≥18。

1. 连接设备

nanobot channels login
# Scan QR with WhatsApp → Settings → Linked Devices

2. 配置

{
  "channels": {
    "whatsapp": {
      "enabled": true,
      "allowFrom": ["+1234567890"]
    }
  }
}

3. 运行(两个端子)

# Terminal 1
nanobot channels login

# Terminal 2
nanobot gateway

⚙️ 配置

 

配置文件:~/.nanobot/config.json

提供者

 

注释

Groq 通过 Whisper 提供免费的语音转录服务。如果已配置,Telegram语音消息将自动转录。

提供者 目的 获取API密钥
openrouter LLM(推荐,所有模型都能使用) openrouter.ai
anthropic LLM(Claude 直销) console.anthropic.com
openai LLM(GPT 直交) platform.openai.com
groq LLM + 语音转录(Whisper) console.groq.com
gemini LLM(双子座直通) aistudio.google.com
完整配置示例
{
  "agents": {
    "defaults": {
      "model": "anthropic/claude-opus-4-5"
    }
  },
  "providers": {
    "openrouter": {
      "apiKey": "sk-or-v1-xxx"
    },
    "groq": {
      "apiKey": "gsk_xxx"
    }
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "token": "123456:ABC...",
      "allowFrom": ["123456789"]
    },
    "whatsapp": {
      "enabled": false
    }
  },
  "tools": {
    "web": {
      "search": {
        "apiKey": "BSA..."
      }
    }
  }
}

CLI参考

 

指挥 描述
nanobot onboard 初始化配置和工作区
nanobot agent -m "..." 和代理聊聊
nanobot agent 互动聊天模式
nanobot gateway 启动网关
nanobot status 节目现状
nanobot channels login 链接WhatsApp(扫描二维码)
nanobot channels status 节目频道现状
定时任务(Cron)
# Add a job
nanobot cron add --name "daily" --message "Good morning!" --cron "0 9 * * *"
nanobot cron add --name "hourly" --message "Check status" --every 3600

# List jobs
nanobot cron list

# Remove a job
nanobot cron remove <job_id>

🐳 Docker

 

提示

这个标志会把你的本地配置目录挂载到容器里,这样你的配置和工作区在容器重启后都能保留。-v ~/.nanobot:/root/.nanobot

在容器中构建并运行纳米机器人:

# Build the image
docker build -t nanobot .

# Initialize config (first time only)
docker run -v ~/.nanobot:/root/.nanobot --rm nanobot onboard

# Edit config on host to add API keys
vim ~/.nanobot/config.json

# Run gateway (connects to Telegram/WhatsApp)
docker run -v ~/.nanobot:/root/.nanobot -p 18790:18790 nanobot gateway

# Or run a single command
docker run -v ~/.nanobot:/root/.nanobot --rm nanobot agent -m "Hello!"
docker run -v ~/.nanobot:/root/.nanobot --rm nanobot status

📁 项目结构

 

nanobot/
├── agent/          # 🧠 Core agent logic
│   ├── loop.py     #    Agent loop (LLM ↔ tool execution)
│   ├── context.py  #    Prompt builder
│   ├── memory.py   #    Persistent memory
│   ├── skills.py   #    Skills loader
│   ├── subagent.py #    Background task execution
│   └── tools/      #    Built-in tools (incl. spawn)
├── skills/         # 🎯 Bundled skills (github, weather, tmux...)
├── channels/       # 📱 WhatsApp integration
├── bus/            # 🚌 Message routing
├── cron/           # ⏰ Scheduled tasks
├── heartbeat/      # 💓 Proactive wake-up
├── providers/      # 🤖 LLM providers (OpenRouter, etc.)
├── session/        # 💬 Conversation sessions
├── config/         # ⚙️ Configuration
└── cli/            # 🖥️ Commands
0

beautiful-mermaid

上一篇

评论 (0)

再想想
暂无评论

聚合文章

nanobot超轻量级个人AI助手
beautiful-mermaid
BettaFish
ReviOS
Deskflow
ConsumerESU
官方原版ISO:Win10最后一个大版本更新
理想星环OS开源项目
亚马逊云科技部署DeepSeek模型
重磅发布:Windows/Office被国外大神破解,全部离线永久激活!

Android 11 Apache Apple M1 Aria2 AWS Route53 Calm CDN ChatGPT Cloudflare CloudXNS CNNIC Debian Debian 9 Debian 9 Stretch DNS DNSpod Domain Name System gdnsd Google Play HEU KMS Activator iOS 11 iOS11 Beta2 iOS11 Beta2 update1 LEMP Let’s Encrypt LNMP macOS MySQL Nginx OEM PanDownload PHP Postgres PowerDNS PowerDNS-Admin Pure DNS Spectre SQLite3 Stretch Windows 11 24H2 Youtube 公共DNS 数字许可证激活 自控力 降级iOS10

猜你喜欢

AtlasOS:专为游戏党定制的高性能Windows 10系统

AtlasOS:专为游戏党定制的高性能Windows 10系统

25 11 月, 2022
28,571 0 17
Win10,安卓子系统

Win10,安卓子系统

30 12 月, 2022
3,016 0 1
让原生 Android 更好用:Android 11 DP2 值得关注的 14+ 新变化

让原生 Android 更好用:Android 11 DP2 值得关注的 14+ 新变化

20 3 月, 2020
3,010 0 0
WhisperDesktop是一款开源的软件,比OpenAI还要快!

WhisperDesktop是一款开源的软件,比OpenAI还要快!

12 3 月, 2024
4,269 0 0

关于

OIMI(oimi.me)是分享美好数字生活的内容平台,同时还涉及 macOS、iOS 等知名系统的使用技巧。 科技 / 旅行 / 摄影 / 生活方式

社交媒体

Nicky

导航

Nicky
Copyright © 2016-2026 oimi分享美好数字生活. Designed by OIMI.
  • ChatTTS,HyperOS,HEU KMS Activator,Win10/11数字权利激活

OIMI

265
文章
1
评论
138
喜欢