← 返回命令列表

Linux command

nanobot 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Initialize

nanobot onboard

Start an interactive

nanobot agent

Start the multi-channel gateway

nanobot gateway

Send a single message

nanobot agent [-m|--message] "[Hello!]"

Authenticate

nanobot channels login

Show current configuration

nanobot status

说明

nanobot is an ultra-lightweight personal AI assistant that delivers core agent functionality in approximately 4,000 lines of Python code. It connects closed and open-source LLMs to a local coding agent that can run commands, read logs, execute scripts, and search files on your machine. Nanobot supports multiple LLM providers including OpenRouter, Anthropic (Claude), OpenAI (GPT), DeepSeek, Google Gemini, Groq, and custom OpenAI-compatible endpoints. It integrates with chat platforms such as Telegram, Discord, WhatsApp, Feishu, Slack, Email, QQ, DingTalk, and Mochat, allowing the agent to be accessed from various messaging services via the gateway command. The tool uses MCP (Model Context Protocol) for extending capabilities with external tools and services.

参数

onboard
Initialize configuration and set up the environment for first-time use. Creates config at ~/.nanobot/config.json.
agent _options_
Start an interactive CLI chat session with the AI agent. Use -m for single message mode.
gateway _options_
Run the multi-channel gateway to connect chat platforms such as Telegram, Discord, WhatsApp, Slack, and others. Use -p for custom port.
status
Display current configuration paths, workspace location, selected model, and API key status.
channels login
Authenticate with chat platforms, primarily used for WhatsApp QR-code linking.
channels status
Show enabled/disabled state for all supported platforms.
cron list _options_
List scheduled jobs. Use -a to include disabled jobs.
cron add _options_
Create a scheduled task with -n name, -m message, and schedule options.
provider login _provider_
OAuth authentication for supported providers (openai-codex, github-copilot).

FAQ

What is the nanobot command used for?

nanobot is an ultra-lightweight personal AI assistant that delivers core agent functionality in approximately 4,000 lines of Python code. It connects closed and open-source LLMs to a local coding agent that can run commands, read logs, execute scripts, and search files on your machine. Nanobot supports multiple LLM providers including OpenRouter, Anthropic (Claude), OpenAI (GPT), DeepSeek, Google Gemini, Groq, and custom OpenAI-compatible endpoints. It integrates with chat platforms such as Telegram, Discord, WhatsApp, Feishu, Slack, Email, QQ, DingTalk, and Mochat, allowing the agent to be accessed from various messaging services via the gateway command. The tool uses MCP (Model Context Protocol) for extending capabilities with external tools and services.

How do I run a basic nanobot example?

Run `nanobot onboard` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does onboard do in nanobot?

Initialize configuration and set up the environment for first-time use. Creates config at ~/.nanobot/config.json.