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.4.tar.gz (8.0 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.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coderoute-0.2.4.tar.gz
  • Upload date:
  • Size: 8.0 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.4.tar.gz
Algorithm Hash digest
SHA256 6aa7599b44bdcd2aad59c970735df78d95e63167fbdf1c194438bc80d2b13023
MD5 70a4b6d3637e6007bddc6a38789e5209
BLAKE2b-256 d6d695ad0bb82b65fe6de85959f1d13cc1832976e2dcb324a8153bfdf8a585d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coderoute-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 10c621dfa0ae22380c7ad6e5e6ed9ca3957f6c982a539c8b0551d938c0652e79
MD5 70aecf7569caa47bdf00837977b8a0a9
BLAKE2b-256 bd853d1c88ccc81b272af0ff7e99da047a801c4acf2c690c20841458376a0d4d

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