
仓库:https://github.com/OpenInterpreter/OpenInterpreter 官方文档:https://www.openinterpreter.com/docs/terminal 许可证:Apache-2.0 运行形态:终端 CLI(
i/interpreter),无 Web 端口
1. 项目简介
Open Interpreter 是一个面向低成本模型优化的终端编码 Agent。当前版本用 Rust 重写,基于 OpenAI Codex harness,目标是把各家模型的"推荐 harness"(Kimi Code、Claude Code、DeepSeek TUI 等)都模拟出来,让你在同一个 TUI 里跑不同模型。
1.1 核心信息一览
| 项目 | 内容 |
|---|---|
| 仓库 | OpenInterpreter/OpenInterpreter |
| 定位 | 终端里的低成本模型编码 Agent(Codex 衍生) |
| 许可证 | Apache-2.0 |
| 运行形态 | 命令行 interpreter / i |
| 支持平台 | macOS、Linux、Windows |
| Harness 数量 | 10 种(native / claude-code / kimi-code / deepseek-tui 等) |
| 协议兼容 | ACP、Codex exec 协议 |
1.2 适用场景
- 想在终端里跑编码 Agent,又不想被单一厂商锁定;
- 想用低成本模型(Kimi、DeepSeek、Qwen、GLM 等)跑出接近旗舰模型的效果;
- 想在支持 ACP 的编辑器里把它当后端 agent;
- 已经在用 OpenAI Codex SDK,想一行切换到 interpreter 二进制。
1.3 能力边界(官方口径)
- 这是新的 Rust 版本,基于 Codex;原版 Python 项目由社区 fork endolith/open-interpreter 维护;
- 内置 QA skill 可以驱动浏览器(agent-browser)或原生应用(trycua),但需要相应依赖;
- 产品化数据尽量走共享标准(
AGENTS.md、.agents/skills、MCP、ACP),产品自身配置只放在~/.openinterpreter。
2. 功能特性
- 原生沙箱:在 macOS / Linux / Windows 上以原生沙箱执行命令;
- Harness 模拟:
/harness在 10 种 harness 之间切换(native、claude-code、claude-code-bare、zcode、kimi-code、kimi-cli、qwen-code、deepseek-tui、swe-agent、minimal); - 多 Provider:TUI 里
/model切换 provider 与模型;interpreter --chat-completions走任意 OpenAI 兼容端点; - ACP 兼容:
interpreter acp作为 ACP agent 给编辑器用; - Codex SDK 兼容:一行
codexPathOverride: "interpreter"即可替换; - 可移植目录:复用
AGENTS.md、共享.agents/skills、MCP,不锁产品格式; - Computer Use:内置 QA skill 操作浏览器与原生 App。
3. 官方界面预览

官方 README 顶部 hero 图,展示 Open Interpreter 在终端中运行的样子。
4. 官方跳转链接汇总
- 仓库主页:https://github.com/OpenInterpreter/OpenInterpreter
- 文档首页:https://www.openinterpreter.com/docs/terminal
- Quickstart:https://www.openinterpreter.com/docs/terminal/quickstart
- 安装指南:https://www.openinterpreter.com/docs/terminal/install
- 配置:https://www.openinterpreter.com/docs/terminal/config
- CLI 参考:https://www.openinterpreter.com/docs/terminal/cli-reference
- Harness 列表:https://www.openinterpreter.com/docs/terminal/harness
- Provider 指南:https://www.openinterpreter.com/docs/terminal/providers
- ACP 指南:https://www.openinterpreter.com/docs/terminal/acp
- 社区 fork(旧 Python 版):https://github.com/endolith/open-interpreter
5. 前置要求与服务器配置
- macOS / Linux / Windows 任一桌面系统;
- 一个或多个模型 Provider 凭据(Kimi、DeepSeek、OpenAI、Anthropic、Z.AI/GLM 等);
- 无 GPU 要求、无端口、无数据库;
- Windows 用 PowerShell 执行安装脚本。
6. 方式一:一键脚本安装(官方推荐)
macOS / Linux:
curl -fsSL https://www.openinterpreter.com/install | shWindows(PowerShell):
irm https://www.openinterpreter.com/install.ps1 | iex安装完成后,在终端输入:
i
# 或
interpreter进入 TUI。在 TUI 内:
> /harness # 切换 harness
> /model # 切换模型 / provider7. 方式二:源码 / 本地运行
官方 README 提供了脚本入口但未给完整源码构建步骤;从仓库构建需要 Rust
工具链。开发者可参考仓库根目录的 scripts/ 与
docs/。
想在已经基于 OpenAI Codex SDK 的项目里接入:
-const codex = new Codex();
+const codex = new Codex({ codexPathOverride: "interpreter" });想在 ACP 编辑器里使用:配置客户端启动
interpreter acp,见 ACP 指南。
8. 配置项说明
| 配置 | 说明 |
|---|---|
~/.openinterpreter |
产品自身配置与运行时状态目录 |
AGENTS.md |
仓库级 agent 指令,共享标准 |
.agents/skills / ~/.agents/skills |
共享 skills 目录 |
--chat-completions |
走任意 OpenAI 兼容 Chat Completions 端点 |
interpreter acp |
以 ACP 协议暴露给编辑器 |
--provider <provider-id> |
更新指定 provider 条目 |
Provider 凭据通过官方文档里各 provider 页面配置(Kimi K3、DeepSeek、Z.AI/GLM 等)。
9. 常用运维命令
# 启动 TUI i interpreter以 exec 模式跑一次性任务
interpreter exec --chat-completions "写一个快速排序"
以 ACP 模式给编辑器
interpreter acp
重新生成 provider catalog(开发者用)
python3 scripts/write_provider_catalog.py
本地兼容性检查
scripts/test-codex-sdk-compat.sh
10. 常见故障排查
- 安装脚本被网络拦:手动从 GitHub releases 下载二进制;
- 模型连不上:先
/model检查 provider 与 base_url,再用--chat-completions指向 OpenAI 兼容端点; - harness 切换后行为异常:回到
native或minimalharness 对比; - Windows 策略禁止 ps1:PowerShell 管理员执行
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; - 想找旧 Python 版:见 endolith/open-interpreter fork。
11. 风险与合规说明
- Apache-2.0 许可;
- Agent 会在沙箱内执行命令,建议在隔离环境 / 容器中运行不信任任务;
- 各模型 Provider 账号产生的费用由你承担;
- 本文为社区部署笔记,命令以官方文档与仓库 README 最新版本为准。
安装部署(实操步骤)
1. 前置准备
- 项目仓库:OpenInterpreter/OpenInterpreter(https://github.com/OpenInterpreter/OpenInterpreter)
- 需要本机具备 Git;按项目语言准备对应运行时(Python / Node.js / Go / Java 等)
- 建议先在本机或测试服务器上跑通,再部署到生产环境
- 遇到依赖版本问题时,以仓库 README 与 Releases 说明为准
2. 官方安装 / 启动命令(摘自项目 README,可直接复制执行)
Read more in the [harness docs](https://www.openinterpreter.com/docs/terminal/harness?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=harness_docs) and [provider setup guides](https://www.openinterpreter.com/docs/terminal/providers?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=provider_guides).
## ACP compatible, Codex compatible
Open Interpreter works in [ACP-compatible editors and clients](https://agentclientprotocol.com/get-started/clients). Configure the client to launch `interpreter acp`; see the [ACP guide](https://www.openinterpreter.com/docs/terminal/acp) for examples.
Already building with OpenAI's Codex SDK? Keep the SDK and make a one-line
binary override:3. 部署流程
- 克隆仓库:
git clone https://github.com/OpenInterpreter/OpenInterpreter - 进入目录后按上面的官方命令安装依赖
- 参考 README 的配置说明填写配置文件或环境变量
- 按官方说明启动服务,确认监听端口与访问地址
- 浏览器访问验证功能,确认无报错后再开放外网
4. 常见问题排查
- 依赖安装失败:先升级包管理器,再确认运行时版本符合 README 要求
- 启动报端口占用:修改配置中的端口或释放被占用端口
- 页面打不开:检查防火墙 / 安全组是否放行对应端口
- 功能异常:查看运行日志,对照 Issues 中同类问题处理