AI Skill Hub 强烈推荐:AI编程编辑器 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
基于LLM的聊天式编程编辑器,智能代码生成
AI编程编辑器 是一款基于 Go 开发的开源工具,专注于 ai、cli、genai 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
基于LLM的聊天式编程编辑器,智能代码生成
AI编程编辑器 是一款基于 Go 开发的开源工具,专注于 ai、cli、genai 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/spachava753/cpe@latest # 方式二:从源码编译 git clone https://github.com/spachava753/cpe cd cpe go build -o cpe . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/spachava753/cpe/releases
# 查看帮助 cpe --help # 基本运行 cpe [options] <input> # 详细使用说明请查阅文档 # https://github.com/spachava753/cpe
# cpe 配置说明 # 查看配置选项 cpe --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CPE_CONFIG="/path/to/config.yml"
<p align="center"> <strong>A powerful CLI that brings AI directly to your terminal for code analysis, editing, and automation.</strong> </p>
<p align="center"> <a href="#installation">Installation</a> • <a href="#quick-start">Quick Start</a> • <a href="#features">Features</a> • <a href="#configuration">Configuration</a> • <a href="#troubleshooting">Troubleshooting</a> </p>
---
CPE connects your local development workflow to multiple AI providers through a single, unified interface. Write natural language prompts, and CPE handles the rest—whether you're analyzing code, making edits, or automating complex tasks.
cpe --model sonnet mcp info editor
cpe --model sonnet mcp code-desc ```
Note: CPE requires a configuration file to define which models and tools to use. There's no zero-config mode—you'll need to set up at least one model before getting started.
cpe account usage openai
cpe account usage openai --watch
cpe account usage openai --base-url https://chatgpt.com/backend-api
```yaml
skills/
└── github-issue/
└── SKILL.md
Create a cpe.yaml in your project directory or in your user config directory: - macOS: ~/Library/Application Support/cpe/cpe.yaml - Linux: ~/.config/cpe/cpe.yaml - Windows: %AppData%\cpe\cpe.yaml
version: "1.0"
models:
- ref: sonnet
display_name: "Claude Sonnet"
id: claude-sonnet-4-5-20250929
type: anthropic
api_key_env: ANTHROPIC_API_KEY # You choose the env var name
context_window: 200000
max_output: 64000
timeout: 5m
generationParams:
temperature: 0.2
Tip: You can quickly add models from the models.dev registry:> # Add a model from the registry > cpe config add anthropic/claude-sonnet-4-20250514 --ref sonnet >
export ANTHROPIC_API_KEY="your-api-key" ```
CPE searches for configuration in this order: 1. --config flag (explicit path) 2. ./cpe.yaml (current directory) 3. User config directory: - macOS: ~/Library/Application Support/cpe/cpe.yaml - Linux: ~/.config/cpe/cpe.yaml - Windows: %AppData%\cpe\cpe.yaml
version: "1.0"
| Variable | Description |
|---|---|
CPE_MODEL | Model profile to use when --model is not passed |
CPE_DB_PATH | Conversation SQLite database path when --db-path is not passed |
Note: API keys are configured per-model via theapi_key_envfield. You choose the environment variable name—there are no hardcoded defaults. For example, you could useMY_ANTHROPIC_KEY,OPENAI_API_KEY, or any name you prefer.
cpe model list
Skills locations are user-defined in your system prompt template using the {{ skills }} function. There are no hardcoded defaults—you specify exactly which directories to scan:
{{- $skills := skills "./skills" "~/my-custom-skills" "/shared/team-skills" -}}
{{- if $skills }}
<skills>
{{- range $skill := $skills }}
<skill name={{ printf "%q" $skill.Name }}>
<description>{{ $skill.Description }}</description>
<path>{{ $skill.Path }}</path>
</skill>
{{- end }}
</skills>
{{- end }}
The skills function: - Accepts any number of directory paths - Scans each for subdirectories containing SKILL.md - Returns a list of skill objects (name, description, path) so your template controls the output format (XML, JSON, CSV, etc.)
```bash
cpe [flags] [prompt]
Core Flags:
-m, --model string Specify the model profile to use (required unless CPE_MODEL is set)
-i, --input strings Input files or URLs to process
-n, --new Start a new conversation
-c, --continue string Continue from a specific conversation ID
-G, --incognito Don't save conversation to storage
--config string Path to YAML configuration file
--db-path string Path to conversation SQLite database
--skip-stdin Skip reading from stdin
-v, --version Print version and exit
Generation Parameters:
-t, --temperature float Sampling temperature (0.0 - 1.0)
-x, --max-tokens int Maximum tokens to generate
-b, --thinking-budget string Budget for reasoning capabilities
--top-p float Nucleus sampling parameter (0.0 - 1.0)
--top-k uint Top-k sampling parameter
--frequency-penalty float Frequency penalty (-2.0 - 2.0)
--presence-penalty float Presence penalty (-2.0 - 2.0)
--number-of-responses uint Number of responses to generate
--timeout string Request timeout (e.g., '5m', '30s')
Advanced:
--custom-url string Custom base URL for the model provider API
Commands:
account Manage AI provider accounts (login, logout, usage)
config Manage configuration (add, remove models)
conversation Manage conversation history [aliases: convo, conv]
├─ list List conversations [alias: ls]
├─ print Print a conversation [aliases: show, view]
└─ delete Delete conversations [aliases: rm, remove]
model List and inspect models [alias: models]
├─ list List models [alias: ls]
├─ info Show model details
└─ system-prompt Show rendered system prompt
mcp MCP tools
├─ list-servers List servers [alias: ls-servers]
├─ list-tools List tools [alias: ls-tools]
├─ call-tool Call a tool
├─ info Server info
└─ code-desc Show code mode description
completion Generate shell autocompletion scripts (bash, zsh, fish, powershell)
Connect external tools via the Model Context Protocol. CPE supports three MCP server types:
| Type | Description | Use Case |
|---|---|---|
stdio | Local process via stdin/stdout | Local tools, CLIs |
http | HTTP/HTTPS endpoint | Remote APIs, cloud services |
sse | Server-Sent Events | Streaming, real-time tools |
The bundled text_edit file editing tool is registered directly by CPE and does not require MCP configuration. It is enabled by default; set disable_edit_tool: true on a model profile to omit it.
```yaml
cpe --model sonnet "Explain what this project does"
创新性AI编程工具,开发效率提升
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
总体来看,AI编程编辑器 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | cpe |
| Topics | aicligenaigenerative-aigo |
| GitHub | https://github.com/spachava753/cpe |
| 语言 | Go |
收录时间:2026-05-31 · 更新时间:2026-05-31 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。