Skip to main content

Universal coding agent for your terminal — use any OpenAI-compatible LLM

Project description

anycode

万能编程智能体 — 用 任意 OpenAI 兼容大模型 驱动你的终端 AI 编程助手。

基于 Claude Code v2.1.88 重构,完整保留所有代理能力,支持第三方模型。

安装

pip install anycode-ai

要求: Node.js >= 18(安装

快速开始

# 首次运行 — 交互式配置向导
anycode

# 非交互模式
anycode -p "解释这个代码库"

# 测试连接
anycode --test

# 查看当前配置
anycode provider-info

支持的服务商

服务商 模型 API 地址
OpenAI gpt-4o, gpt-4o-mini, o1, o3 api.openai.com
DeepSeek deepseek-chat, deepseek-reasoner (R1) api.deepseek.com
Qwen(通义千问) qwen-max, qwen-plus, qwen-turbo dashscope.aliyuncs.com
MiniMax MiniMax-M2.7, M2.5, M2.1, M2 api.minimax.io
GLM(智谱清言) glm-4-plus, glm-4 open.bigmodel.cn
SiliconFlow(硅基流动) DeepSeek-V3, Qwen2.5 api.siliconflow.cn
Kimi(月之暗面) moonshot-v1-auto api.moonshot.cn
Ollama(本地模型) llama3, codellama, mistral localhost:11434
任意 OpenAI 兼容 API 任意模型 任意端点

配置

# 环境变量(CI/CD 友好)
export ANYCODE_API_KEY="sk-..."
export ANYCODE_BASE_URL="https://api.deepseek.com/v1"
export ANYCODE_MODEL="deepseek-chat"
anycode -p "修复这个 bug"

# 或使用配置文件:~/.anycode/provider.json

核心能力

  • Bash — 执行终端命令
  • Read / Write / Edit — 文件读写编辑
  • Grep / Glob — 代码搜索
  • Agent — 子代理并行执行
  • WebFetch — 获取网页内容
  • MCP — Model Context Protocol 协议支持
  • Worktree — Git 工作区隔离

版本记录

v1.2.1

  • 修复 MiniMax M2.7 文本输出为空的问题:支持 <think> 标签格式的推理内容解析
  • 推理内容正确显示为 thinking block,正式回答正常输出

v1.2.0

  • 修复 MiniMax 服务商配置:API 端点迁移至 api.minimax.io,默认模型更新为 MiniMax-M2.7
  • 新增 Kimi(月之暗面)预设服务商
  • 更新上下文窗口配置(MiniMax: 204,800 tokens)
  • 新增详尽的中文功能支持列表与功能兼容性对照表
  • 明确标注支持/部分支持/不支持的功能

v1.1.2

  • 首个 PyPI 发行版
  • pip install 一键安装
  • 交互式供应商配置向导
  • 支持 8 个预设服务商 + 自定义端点

GitHub

github.com/ipangkang/claude-code-any

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

anycode_ai-1.2.1.tar.gz (9.3 MB view details)

Uploaded Source

Built Distribution

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

anycode_ai-1.2.1-py3-none-any.whl (12.1 MB view details)

Uploaded Python 3

File details

Details for the file anycode_ai-1.2.1.tar.gz.

File metadata

  • Download URL: anycode_ai-1.2.1.tar.gz
  • Upload date:
  • Size: 9.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for anycode_ai-1.2.1.tar.gz
Algorithm Hash digest
SHA256 d7e043d541d2cfe08d2a4b6c259a62f8d9a2315855ac7cbc5f45e1042c9470f9
MD5 0b74e6238a616686a88b3de6d3c258a9
BLAKE2b-256 a75d91b5879e791a9fdf49213fc16d4f2ce9bac7f4f7bc180c7323307b0f4bd4

See more details on using hashes here.

File details

Details for the file anycode_ai-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: anycode_ai-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for anycode_ai-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47aac69e6a12588b555dfc480fd6e20222c21c103bfc79af9bedaf13b8d7647e
MD5 0314f773e92ca8d1d5b42db1b19a761e
BLAKE2b-256 e321abfdfb98d01297c0abeaac6e1a2e43cde253599aa72e24f9da8a5164f8da

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