recommend-model (rmodel)
探测商用大模型可用性,并一键把千问免费额度模型写入 OpenClaw / Codex。
可用性探测 ≠ 账单状态。
qwen-free以 千问 CLIusage free-tier为准。
安装(PyPI)
pip install recommend-model
rmodel --help
升级:
pip install -U recommend-model
开发安装:
git clone <your-repo>
cd recommend-model
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
只需本机有 Node.js / npm(>=18)。rmodel qwen-free 会在需要时自动:
npm install -g @qianwenai/qianwen-cli- 拉起
qianwen auth login(浏览器授权) - 拉取免费额度模型并写入 OpenClaw / Codex
一键配置千问免费模型
rmodel qwen-free
可选:
rmodel qwen-free --dry-run
rmodel qwen-free --set-primary --agent main
rmodel qwen-free --api-key sk-xxx
rmodel qwen-free --no-install
rmodel qwen-free --no-login
rmodel qwen-free --yes
| 场景 | 行为 |
|---|---|
| 已有 DashScope/千问 API provider | 复用 Key,补充最多 5 个仍有免费额度的模型选项 |
| 没有 API provider | 引导创建/填写 API Key,新建 dashscope provider 并写入 |
订阅 Plan(qianwen-plan 等) |
不当作 API 配置复用 |
qianwen auth login(CLI 会话)与 DashScope API Key 是两套凭证。
API Key 控制台:https://bailian.console.aliyun.com/?tab=model#/api-key
通用探测
rmodel probe --source openclaw
rmodel apply --target openclaw --agent main --to dashscope/qwen-plus
发布到 PyPI(维护者)
pip install -e ".[dev]"
python -m build
twine check dist/*
TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-... twine upload dist/*
开发
pytest
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recommend_model-0.1.0.tar.gz
(29.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
File details
Details for the file recommend_model-0.1.0.tar.gz.
File metadata
- Download URL: recommend_model-0.1.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9f3299c86ff4b1d4bf1fa0f2b8475d5c6eaeecb0b3efdb03758e73061759e66
|
|
| MD5 |
d7d055163e31dc76efd32b7d0db8dc4c
|
|
| BLAKE2b-256 |
f34d1256341d10849e4d83a70c7204ca2612389fb17d187615b74c150a30a09e
|
File details
Details for the file recommend_model-0.1.0-py3-none-any.whl.
File metadata
- Download URL: recommend_model-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e28b0856fdc4d87c3b3326d95478f121c6380f1d65b4d8b2b32033cab93ad4
|
|
| MD5 |
899e1229ac62ca857234aa146f9adba0
|
|
| BLAKE2b-256 |
2aceaa8ece644bee7aab2d85a43bfcceb0d06666904e43cbf327b3a215d9738f
|