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.3.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.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coderoute-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 75b3a063162259198556c0b190f9b74395a457a159124d0d31280679e753ec02
MD5 c2722a683a5625dba6044f0ef57c3233
BLAKE2b-256 1c3e5a948a9b5f7ab41a80897f3dec0555f90f7b88fe991cce0cc033de85da9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coderoute-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 444e537c82f0397c0782f4c2aac696e126252249b97d8a3c8321e92eacc23a85
MD5 f279f074a88845b45baab5302ebf5814
BLAKE2b-256 229f66d681145c45560ef34550bff6810084652e49bb9facc26f3c1bd8fe5d6b

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