Skip to main content

CodeRoute - AI coding agent on cheap Chinese models (DeepSeek/GLM/Kimi), billed in RMB. Built on aider.

Project description

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_URLCODEROUTE_API_KEY

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

coderoute-0.2.5.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

coderoute-0.2.5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file coderoute-0.2.5.tar.gz.

File metadata

  • Download URL: coderoute-0.2.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for coderoute-0.2.5.tar.gz
Algorithm Hash digest
SHA256 8ebe7531b9c4cc338fb9a2bdfd6d24910c25e62783b5d0b86d61046559ed3825
MD5 1df6085d7259d7b182c7e4916fe72dbc
BLAKE2b-256 5bf1a2aee87cd14a3601a4734ebabe5f93d9259394a1684e9926144b6ec7dd9c

See more details on using hashes here.

File details

Details for the file coderoute-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: coderoute-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for coderoute-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 22aaff7f10d1115f4f67b26291e036b01a7be884ee060c9ce8a2b5aa92b78375
MD5 22f39e4d76dc57116fd9cdb1ab7a83aa
BLAKE2b-256 2c0dd0be5c10136c955a7f85e6355b250fb46eb0ae6f8c1145c48156bd38bdbd

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