Skip to main content

YuanBot 安装引导工具 — 一行命令部署 YuanBot AI 虚拟伴侣

Project description

yuanbot-cli

YuanBot 安装引导工具 — 一行命令部署完整的 YuanBot AI 虚拟伴侣。

pip install yuanbot-cli
yuanbot install

这是什么

yuanbot-cli 是一个轻量级安装器,只有一个任务:帮你把完整的 YuanBot 部署到本地。

你只需要安装这一个 100KB 的小包,然后 yuanbot install 就会自动完成剩下的所有事情:

  1. ✅ 检查 Python 3.12+ 环境
  2. ✅ 从 GitHub 克隆最新代码
  3. ✅ 创建虚拟环境
  4. ✅ 安装 YuanBot 及其依赖
  5. ✅ 生成初始配置
  6. ✅ 交互式配置 AI 提供商和 API Key
  7. ✅ 运行系统诊断验证
  8. ✅ 打印下一步指引

快速开始

# 1. 安装
pip install yuanbot-cli

# 2. 全自动安装 YuanBot
yuanbot install

# 3. 根据提示选择 AI 提供商并输入 API Key

# 4. 安装完成后
cd YuanBot
source .venv/bin/activate
yuanbot start

非交互式安装

适合 Docker 和自动化脚本:

pip install yuanbot-cli
yuanbot install \
  --provider deepseek \
  --api-key "sk-..." \
  --non-interactive

指定安装目录

yuanbot install --dir /opt/yuanbot

工作原理

yuanbot install
    │
    ├── git clone https://github.com/Grabrun/YuanBot.git
    ├── python -m venv .venv
    ├── pip install -e .[dev]      ← 这里安装完整的 yuanbot 包
    ├── yuanbot config init
    ├── 配置 AI 提供商 + API Key
    └── yuanbot doctor             ← 验证安装

安装完成后,完整的 yuanbot 命令(包含 start/tui/webui/doctor 等所有功能)会在虚拟环境中可用。

与完整 yuanbot 包的关系

yuanbot-cli yuanbot (完整版)
大小 ~100KB ~10MB (含依赖)
安装方式 pip install yuanbot-cli yuanbot install 自动安装
命令 install, version start, tui, doctor, config, provider, persona, ...
用途 安装引导 日常使用

发布到 PyPI

pip install build twine
cd yuanbot-cli
python -m build
twine upload dist/*

License

MIT

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

yuanbot_cli-1.0.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

yuanbot_cli-1.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file yuanbot_cli-1.0.1.tar.gz.

File metadata

  • Download URL: yuanbot_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yuanbot_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dfff1c17ef0bf2466ad2401fd6cd6d1f17684da6ed2415ebe66cb34fcb9b9d83
MD5 303cf0b2c881af4f4b776273ba95c45e
BLAKE2b-256 1bde5db50669ce3cb4823a18d140ea8b52c076bb9ac6fb98185fd518bc8a2d66

See more details on using hashes here.

File details

Details for the file yuanbot_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: yuanbot_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yuanbot_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed837fed68be3bd3bc4215654c2b648ea664b30ffef8fa532000b81f8164c41
MD5 6bdfc05daa19ee3af4f6ab4f5ab3c30b
BLAKE2b-256 2f4126eda99e1fd25abef9522268d5e4ee864ed1c034a4d3f3217bd9b28be414

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