Skip to main content

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 bind 绑定已安装的 NA 实例到管理列表
na-tools remove 卸载并移除指定的 NA 实例
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

# 绑定已安装的 NA 实例(适用于从其他方式安装的或迁移的 NA)
na-tools bind --data-dir /path/to/nekro_data

# 配置模型 API
na-tools config model

# 添加管理员
na-tools config admin --add 12345678

# 更新到最新版
na-tools update

# 备份数据
na-tools backup

# 恢复备份(交互式选择)
na-tools restore

# 移除 NA 实例(保留数据目录)
na-tools remove --keep-data

# 查看多开或所有安装实例
na-tools list

# 切换到另一个安装实例
na-tools use 1

# 查看状态
na-tools status

跨平台支持

功能 Linux macOS
Docker 安装 ✅ 自动 ⚠️ 引导
服务部署
备份恢复
配置管理

Project details


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.3.0.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

na_tools-1.3.0-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

File details

Details for the file na_tools-1.3.0.tar.gz.

File metadata

  • Download URL: na_tools-1.3.0.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for na_tools-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1cc7c9415a9ba9554b3b4f8b3f5fa9d0ffe2bcf3ccab1839eb7bf94f0a5509b9
MD5 ec9ce9612896f8e5cc11158e6a84b410
BLAKE2b-256 26ae35fbfb1d0ba5cc10a3314af37a3a60b67fb0e954107fff2f47b3dfd18502

See more details on using hashes here.

File details

Details for the file na_tools-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: na_tools-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 46.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for na_tools-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbbbe0665ec829192f15947b0c08dd40724b0535b71fffa657c656c8cc969099
MD5 859b087d85c572a9a8b22138975cc3d9
BLAKE2b-256 3f2c08d11c9cfff3f815f0cc83a9f66854de2353f6f82a00d9e1b48e2cfe230b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page