Metadata-Version: 2.4
Name: hengroute-cli
Version: 0.4.1
Summary: HengRoute 命令行工具：测试调用、查日志、管 Key、看预算
Author: HengRoute contributors
License: Apache-2.0
Project-URL: Homepage, https://github.com/520atp/hengroute
Project-URL: Source, https://github.com/520atp/hengroute
Keywords: llm,gateway,cli,hengroute
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: hengroute==0.4.1

# HengRoute CLI

HengRoute 命令行工具：测试调用、列模型、管 Key、查日志、看预算。

## 安装

```bash
pip install hengroute-cli
```

## 快速开始

```bash
# 1. 配置网关地址 + API Key（调用方）
hengroute configure --base-url https://gw.example.com --api-key sk-xxx

# 2. 测试调用（流式）
hengroute chat --model deepseek-chat --stream "你好"

# 3. 列出可用模型
hengroute models

# 管理后台操作（先登录，用管理账号）
hengroute login --email admin@example.com
hengroute keys --project 1
hengroute logs --project 1 --limit 20
hengroute budget --project 1
```

配置保存在 `~/.hengroute/config.json`（权限 600）。
