Three clients
Work in the terminal, open the local web UI, or build an Electron desktop client for Windows or macOS.
Long runs on your machine, with terminal, web and desktop clients. Connect an OpenAI-compatible model and follow file edits and Bash commands as they happen.
No hosted account required by Long. Your model provider may require an account and charge for API usage.
Work in the terminal, open the local web UI, or build an Electron desktop client for Windows or macOS.
Use a tool-capable provider supporting OpenAI Chat Completions. Model adapters are separate from the agent loop.
Inspect file reads, edits and command output. Add instructions during a run or request cancellation.
Keep session history on your machine and continue across projects. Older context can be summarized by your model.
Load workspace-root AGENTS.md instructions, with CLAUDE.md as a fallback when AGENTS.md is absent.
Explore separate TypeScript packages for model interfaces, the agent loop, runtime coordination and coding tools.
Install Git, Node.js 22.18+ and npm. Command execution requires Bash; on Windows, install Git for Windows.
git clone https://github.com/yululiangcmr222-del/long.git
cd long
npm ci
npm run chat
http://127.0.0.1:3210 in your browser.Prefer a terminal? Run npm run cli from the repository root.
Configuration reference · Build desktop and portable clients
Local-first does not mean offline inference. Conversations, tool results and images may be sent to your configured provider. Long is for trusted projects, not an OS sandbox. Tools run without per-call approval; do not expose the local service publicly.
在终端、浏览器或桌面客户端中使用 AI 读代码、修改文件、运行命令。支持兼容 OpenAI Chat Completions 的工具调用模型,会话记录保存在本机,核心使用 TypeScript 构建。
先用上面的命令启动,再在「模型设置」中配置服务。建议从“解释这个项目的目录结构”这样的只读任务开始。本地优先不代表模型离线运行;请仅打开可信项目,不要公开本地服务或提交密钥。
阅读中文上手指南Reproducible bug reports, model compatibility feedback, documentation improvements and pull requests are welcome. Remove API keys and sensitive project content before sharing logs.
Report an issue · Contributing guide