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

Uploaded Python 3

File details

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

File metadata

  • Download URL: coderoute-0.2.2.tar.gz
  • Upload date:
  • Size: 7.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.2.tar.gz
Algorithm Hash digest
SHA256 e279a81497186adda21d380e732cba70277f7d1380e8c27f6c959fd20d9eda95
MD5 668b8f3e501ac549c08a7f406f1e3fa3
BLAKE2b-256 49d8d8e323821bef21b4ded5c96895c17a3a5e4f4337e1b6a2f082935b4051f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coderoute-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8dbff4d83dbd55bb08a4748ad8e0bc3c1a5204e40a9a8939781e4bdc1d0f4e
MD5 1de8d6a402aa2bb855b18fed6bd01571
BLAKE2b-256 b1b8acba90d8b8be77702fe54b4c2a9cec961749013dbb6fbb101a6f4c27c458

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