MCPcopy Index your code
hub / github.com/TsingmaoAI/xw-cli

github.com/TsingmaoAI/xw-cli @v0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.1 ↗ · + Follow
595 symbols 1,618 edges 77 files 582 documented · 98%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

玄武CLIxw-cli

实现国产算力的大模型自由,打造国产版Ollama

为多元国产算力平台深度优化模型性能。告别繁琐的环境配置与算子适配,一条命令启动生产级服务,即刻释放大模型潜能。

里程碑

  • 2026.02.02 玄武CLI正式开源,并支持华为Ascend系列芯片。

✨ 特性

🇨🇳 国产原生

  • 深度优化国产硬件性能
  • 本地化完整支持

⚡ 低门槛,一键启动

  • 无需复杂配置,开箱即用
  • 自动硬件检测与引擎推荐

🔧 多引擎支持

  • 内置多个推理引擎适配与自动路由
  • 保证性能与模型覆盖广度

📦 安装

前置要求

极速安装

curl -o- http://xw.tsingmao.com/install.sh | bash

🚀 快速开始

1. 启动xw-cli server

xw serve

2. 拉取模型

xw pull qwen3-8b

更多模型详见 xw 模型仓库

3. 运行模型

xw run qwen3-8b

开始对话,输入 /quit 退出。

4. 查看本地模型

# 本地存储的模型
xw ls

# 正在运行的模型
xw ps

📚 文档

🐛 反馈

如遇到问题或有建议,欢迎 提交 Issue

💬 社区交流

欢迎加入 xw-cli 微信交流群,与开发者和用户一起讨论技术问题、分享使用经验:

微信群4 微信群 4 微信群5 微信群 5 微信群6 微信群 6 微信群7 微信群 7

如群二维码失效,请通过 Issue 联系我们


本项目由清昴智能团队维护。更多信息访问 清昴智能官网

Extension points exported contracts — how you extend this code

Hook (Interface)
Hook defines the interface for dependency checks and installation. Implementations should: - Check: Return nil if the d [2 …
internal/hooks/hook.go
LogStream (Interface)
LogStream provides access to instance logs. [1 implementers]
internal/runtime/types.go
ProgressFunc (FuncType)
ProgressFunc is called periodically during download to report progress. Parameters: filename, bytesDownloaded, totalByte
internal/models/modelscope.go
DeviceSandbox (Interface)
DeviceSandbox defines the interface for device-specific configuration. Each device type (Ascend NPU, Kunlun XPU, NVIDIA [1 …
internal/runtime/docker_base.go
MindIESandbox (Interface)
MindIESandbox extends the base DeviceSandbox interface with MindIE-specific methods. This interface adds MindIE-specifi [1 …
internal/runtime/mindie-docker/runtime.go
Runtime (Interface)
Runtime defines the interface for model runtime backends.
internal/runtime/types.go

Core symbols most depended-on inside this repo

Info
called by 95
internal/logger/logger.go
Debug
called by 88
internal/logger/logger.go
WriteError
called by 61
internal/server/handlers/handler.go
Warn
called by 55
internal/logger/logger.go
Close
called by 29
internal/runtime/types.go
Error
called by 27
internal/logger/logger.go
WriteJSON
called by 24
internal/server/handlers/handler.go
doRequest
called by 20
cmd/xw/client/request.go

Shape

Method 278
Function 188
Struct 116
TypeAlias 7
Interface 5
FuncType 1

Languages

Go100%

Modules by API surface

internal/runtime/docker_base.go39 symbols
internal/runtime/manager.go26 symbols
internal/logger/logger.go20 symbols
internal/config/config_version.go20 symbols
internal/runtime/types.go18 symbols
internal/config/device_config.go17 symbols
internal/api/types.go17 symbols
internal/models/registry.go16 symbols
internal/models/modelscope.go15 symbols
internal/device/allocator.go15 symbols
internal/server/handlers/models.go14 symbols
internal/hooks/docker_hook.go14 symbols

For agents

$ claude mcp add xw-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact