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

使用

coderoute login                 # 在控制台建一个 API Key,粘贴进来(一次即可)
cd 你的项目
coderoute                       # 启动,默认 deepseek(最便宜)
coderoute --model openai/glm-4.7 ...     # 换强一点的模型
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.1.0.tar.gz (4.5 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.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for coderoute-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9952d78dcc442b2142be16db9e09e8383b8e267795187a400b5446c457052883
MD5 de59491ac2a7653f654091554c4eacf8
BLAKE2b-256 8158dbe00898b63b6e489a87e6be5cbc647dd5baae07c37416724f85d6d41fa3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for coderoute-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c59cc3aaa627c2999205c1ec0b98569d089895cff0e9e7bdd5c1d5efda81544
MD5 2f66f1d0cefb2ea7ac347ce2450a431e
BLAKE2b-256 c82fda8243862c4985ec5c2400b3df99df5bd2bdebf218ef9e3d16b33f13400f

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