CodeRoute CLI
用便宜的国产模型(DeepSeek / GLM / Kimi)写代码的命令行编程助手。基于 aider,默认跑在 CodeRoute 网关上,人民币计费、国内直连。
安装
pip install coderoute
国内推荐用清华源(连同 aider 依赖一起,秒装、免超时):
pip install coderoute -i https://pypi.tuna.tsinghua.edu.cn/simple
使用
coderoute login # 浏览器一键登录授权(一次即可)
cd 你的项目
coderoute # 启动,默认 deepseek-fast(最便宜、最快)
coderoute --model openai/deepseek-pro # 更强:复杂推理 / 多步任务
coderoute --model openai/glm-5 # 旗舰
coderoute --model openai/glm-5.2 # 旗舰 · 1M 超长上下文
coderoute --model openai/kimi-k2-code # 长上下文编程
其余参数原样透传给 aider(--message、--yes-always 等)。
它做了什么
这是 aider 的一层薄包装,启动时锁定:
- base URL = CodeRoute 网关
- 默认模型 =
deepseek-fast - 各模型的兼容性怪癖(如 kimi 强制
temperature=1)
核心编程能力来自 aider(Apache-2.0)。本包仅做品牌与默认配置。
配置
- 本地 key 存于
~/.config/coderoute/config.json - 临时改网关地址(测试用):环境变量
CODEROUTE_BASE_URL、CODEROUTE_API_KEY
Metadata
Release files for coderoute 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coderoute-0.2.5.tar.gz | 8.3 kB | Without provenance | Details for coderoute-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coderoute-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for coderoute-0.2.5-py3-none-any.whl |
Total release size: 17.2 kB
Release files / coderoute-0.2.5.tar.gz
| Download URL | coderoute-0.2.5.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ebe7531b9c4cc338fb9a2bdfd6d24910c25e62783b5d0b86d61046559ed3825
|
|
BLAKE2b-256 checksum How to use checksums |
5bf1a2aee87cd14a3601a4734ebabe5f93d9259394a1684e9926144b6ec7dd9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / coderoute-0.2.5-py3-none-any.whl
| Download URL | coderoute-0.2.5-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22aaff7f10d1115f4f67b26291e036b01a7be884ee060c9ce8a2b5aa92b78375
|
|
BLAKE2b-256 checksum How to use checksums |
2c0dd0be5c10136c955a7f85e6355b250fb46eb0ae6f8c1145c48156bd38bdbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for coderoute 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.