AI Native 桌面 IDE

自带 API 用量统计的 AI IDE

每次 AI 调用消耗了多少 Tokens、花了多少钱界面上一目了然
接入 DeepSeek、GPT、mimo 等大模型,开箱即用,编程和办公好助手!

本地运行,数据不上传 自备 API Key,开箱即用 无需注册,打开即用
26+
支持多种大模型接入
DeepSeek / mimo / openai 等
6
Agent 工具
读写文件 / 搜索代码 / 执行命令
7
服务商预设
一键切换,也可自定义接入
500+
中英同义词对
RAG 代码搜索,理解中文语义

看得见的 AI 成本 每一分钱都清楚

Cipher 内置完整的 API 用量追踪系统。每次 AI 调用结束后,自动记录 Prompt Tokens、Completion Tokens 和费用。支持 26 种以上模型的精确计价,包括 DeepSeek、GPT-4o、Claude 3.5、Gemini 等。

  • 累计统计:总调用次数、总 Tokens、总费用一目了然
  • 会话统计:当前会话实时用量追踪
  • 用量浮窗:随时查看,不中断工作流
API 用量面板
Prompt
1,284
Completion
856
总费用
¥0.082
调用次数12
当前模型DeepSeek-Chat

自动读写代码 写完后自己修 Bug

Cipher Agent 有 Plan 和 Auto 两种模式。Plan 模式先生成执行方案,等你确认后再动手。Auto 模式直接执行。支持 6 个工具:读写文件、编辑代码、运行命令、搜索代码、浏览目录。写完代码自动跑类型检查,检测到错误自动修复,最多重复 3 轮。

  • Plan / Auto 双模式:先出方案再执行,或者全自动
  • Auto-Heal:写代码 → 跑检测 → 发现错误 → 自动修复
  • Agent 循环最多 15 轮,思考 → 执行 → 观察 → 再思考
Agent 执行计划
1 read_file: 分析当前组件代码
2 search_code: 查找相关类型定义
3 edit_file: 修改组件实现
4 run_command: tsc 类型检查
5 edit_file: 修复类型错误

中文也能搜 理解你的代码库

基于 TF-IDF 相似度算法的代码搜索引擎,内置 500 多组中英同义词对。搜「登录」也能匹配 login、auth、authenticate。代码按函数和类边界自动分块,文件变更后自动重建索引。

  • 500+ 中英同义词自动扩展,中文搜索无障碍
  • 智能代码分块,按函数 / 类边界分割
  • 文件变更自动重建索引,始终最新
RAG 搜索结果
src/lib/usage.ts0.87
src/components/ai/UsagePopover.tsx0.72
src/lib/store.ts0.65
src/lib/tools.ts0.58
src/lib/codebase.ts0.51

Glassmorphism 设计 沉浸体验

从 ActivityBar 到 AI Panel,超细边框、精致打磨用的顺眼。

Cipher 文件 编辑 视图 帮助
EXPLORER
fonts
index.js
index.css
index.html
agent.ts
agent.ts
import { ToolExecutor } from './tools';
// Cipher AI Agent - 智能代码助手
export async function runAgent(prompt: string) {
const executor = new ToolExecutor();
// 1. 分析需求并生成执行计划
const plan = await analyzeRequirements(prompt);
// 2. 执行工具链:读写文件、运行命令
for (const step of plan.steps) {
switch (step.tool) {
case 'read_file':
await executor.readFile(step.path);
break;
case 'write_file':
await executor.writeFile(
step.path,
step.content
);
break;
case 'run_command':
const result = await executor.runCommand(
step.command
);
console.log(`执行结果: ${result.stdout}`);
break;
}
}
// 3. 自动修复类型错误
await autoHeal(executor.modifiedFiles);
return { success: true, filesChanged: 3 };
}

开始和 AI 对话

Chat
聊天
聊天
Chat
编程
Cipher
小说
Novel
办公
PPT
Excel
内测
Images
输入消息... (Shift+Enter 换行)
openai/gpt-4o...
行 1,列 1 UTF-8 Ln
Cipher AI IDE Powered by Cipher

Electron + React + TypeScript

Monaco Editor 编辑器内核,xterm.js 终端模拟,Framer Motion 动效,TailwindCSS 样式。

Electron
React
TypeScript
Monaco
xterm.js
TailwindCSS
Framer Motion
Zustand