面向树莓派零2W和低端VPS的轻量级AI代理运行时。基于文件的内存、MCP工具支持、Telegram集成——全部集中在一个二进制文件中。
概览
面向树莓派零2W和低端VPS的轻量级AI代理运行时。基于文件的内存、MCP工具支持、Telegram集成——全部集中在一个二进制文件中。 默认安装到 ~/.local/bin。用 NEKO_INSTALL_DIR 覆盖: 配置地址为 ~/.neko/config.toml。关键部分: 环境变量通过 ${VAR_NAME} 语法替换。 可与任何暴露POST /v1/response的提供商合作——OpenAI、Anthropic(通过代理)、Ollama或自托管模型。 没有数据库。没有嵌入。没有矢量存储。内存只是可读取、可编辑、可由人类和代理控制版本的文件。 - (核心内存)——长期事实和用户偏好,始终注入系统提示符中。限制在2000字符,并在代理需要压缩时自动警告,迫使代理自我整理而非积累陈旧上下文。- (每日日志)——临时会话笔记。
概述(AI 翻译)
面向树莓派零2W和低端VPS的轻量级AI代理运行时。基于文件的内存、MCP工具支持、Telegram集成——全部集中在一个二进制文件中。
安装
Shell(Linux / macOS):
默认安装到 ~/.local/bin。通过 NEKO_INSTALL_DIR 覆盖:
来源:
快速开始
配置
配置位于~/.neko/config.toml。关键部分:
环境变量通过 ${VAR_NAME} 语法替换。
CLI
特色
兼容 OpenResponses 的大型语言模型
可与任何暴露POST /v1/responses的供应商合作——OpenAI、Anthropic(通过代理)、Ollama或自托管模型。
基于文件的内存
没有数据库。没有嵌入。没有矢量存储。内存只是可读取、可编辑、可由人类和代理控制版本的文件。
该系统采用两层架构:
memory/MEMORY.md(核心内存)——长期事实和用户偏好,始终注入系统提示符中。限制在2000字符,并在代理需要压缩时自动警告,迫使代理自我策划而非积累陈旧上下文。memory/YYYY-MM-DD.md(每日日志)——临时会话笔记。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
neko
Lightweight AI agent runtime targeting Raspberry Pi Zero 2W and low-end VPS. File-based memory, MCP tool support, Telegram integration — all in a single binary.
Install
Shell (Linux / macOS):
curl -fsSL https://raw.githubusercontent.com/superhq-ai/neko/main/install.sh | sh
Installs to ~/.local/bin by default. Override with NEKO_INSTALL_DIR:
NEKO_INSTALL_DIR=/usr/local/bin curl -fsSL https://raw.githubusercontent.com/superhq-ai/neko/main/install.sh | sh
From source:
git clone https://github.com/superhq-ai/neko.git
cd neko
cargo build --release
# binary at target/release/neko
Quick start
# Create default config and workspace
neko init
# Or run interactive setup
neko init --interactive
# Edit config (defaults to ~/.neko/config.toml)
neko config edit
# Start the agent gateway
neko start
# Send a test message
neko message "Hello, what can you do?"
Configuration
Config lives at ~/.neko/config.toml. Key sections:
[gateway]
bind = "127.0.0.1:3000"
workspace = "~/.neko/workspace"
[agent]
model = "gpt-5-mini"
provider = "openai"
max_tokens = 4096
tools = ["read_file", "write_file", "list_files", "exec", "http_request", "memory_write"]
[providers.openai]
api_key = "${OPENAI_API_KEY}"
base_url = "https://api.openai.com"
[tools]
sandbox = false
exec_timeout_secs = 1800
# MCP servers
[mcp.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
Environment variables are substituted via ${VAR_NAME} syntax.
CLI
neko init Initialize config and workspace
neko init -i Interactive setup
neko start Start the gateway server
neko stop Stop the running gateway
neko status Show gateway status
neko logs [-l N] Show recent logs
neko message Send a message to the agent
neko config show Print current config
neko config edit Open config in $EDITOR
neko sessions list List active sessions
neko sessions clear Clear all sessions
neko memory list List memory files
neko memory search Q Search memory files
neko skills list List installed skills
neko skills install P Install a skill from path
neko skills remove N Remove a skill by name
neko cron list List all cron jobs
neko cron add Add a scheduled job
neko cron edit Edit a cron job
neko cron remove Remove a cron job
neko cron history Show execution history
Features
OpenResponses-compatible LLM
Works with any provider exposing POST /v1/responses — OpenAI, Anthropic (via proxy), Ollama, or self-hosted models.
File-based memory
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →