Nekro Agent 跨平台自动部署 CLI 工具
Project description
NA-Tools
Nekro Agent 跨平台自动部署 CLI 工具
支持 macOS / Linux,提供一键安装、更新、备份、恢复和配置管理。
安装
# 需要 Python 3.10+
pip install -e .
# 或使用 uv
uv sync
命令
| 命令 | 说明 |
|---|---|
na-tools install |
安装 Nekro Agent(Docker 检测 → 配置 → 部署) |
na-tools update |
更新服务到最新版本 |
na-tools backup |
备份数据和配置 |
na-tools restore [file] |
从备份恢复(不指定文件则从列表选择) |
na-tools config |
快捷配置 nekro-agent.yaml |
na-tools status |
查看服务状态 |
na-tools logs [service] |
查看服务日志 |
na-tools list |
列出所有已安装的 Nekro Agent 及序号 |
na-tools use <id/path> |
切换当前激活的数据目录 |
快速开始
# 一键安装
na-tools install
# 配置模型 API
na-tools config model
# 添加管理员
na-tools config admin --add 12345678
# 更新到最新版
na-tools update
# 备份数据
na-tools backup
# 恢复备份(交互式选择)
na-tools restore
# 查看多开或所有安装实例
na-tools list
# 切换到另一个安装实例
na-tools use 1
# 查看状态
na-tools status
跨平台支持
| 功能 | Linux | macOS |
|---|---|---|
| Docker 安装 | ✅ 自动 | ⚠️ 引导 |
| 服务部署 | ✅ | ✅ |
| 备份恢复 | ✅ | ✅ |
| 配置管理 | ✅ | ✅ |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
na_tools-1.0.6.tar.gz
(34.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
na_tools-1.0.6-py3-none-any.whl
(34.6 kB
view details)
File details
Details for the file na_tools-1.0.6.tar.gz.
File metadata
- Download URL: na_tools-1.0.6.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2639f3ef3cd170c886bd97ed1662228cd2923c198b292f6aef605c88c3efcbd5
|
|
| MD5 |
fc425ab9df80f6b362c24c42ab1b85b2
|
|
| BLAKE2b-256 |
1f4c8d393eb33115aa1f9a4fb1740d63fb8e32fc416545e71b1a2ed78afc07cf
|
File details
Details for the file na_tools-1.0.6-py3-none-any.whl.
File metadata
- Download URL: na_tools-1.0.6-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de75becd85ff853adf7b54d4be223992122834bb47b2a775dc2789a1402a278d
|
|
| MD5 |
1ee14ee1c162ffb069e74312049ca030
|
|
| BLAKE2b-256 |
3ecbc6b6f54ccd19d243a401a3dfdde69a8c5058f4b18b068ec383de88ad6804
|