开源终端编程助手

运行在终端中的轻量级编程助手

Memo 理解你的项目结构,安全地运行工具,帮助你在不离开 shell 的情况下从提示词到代码补丁。

为真实工程工作流打造

保持技术栈简洁:清晰的输出、明确的步骤,以及适合日常开发的工具。

终端原生

在你常用的终端环境中工作,直接集成到你的终端工作流中。

Web 控制台

在浏览器中管理多 workspace 项目与并发实时会话。

安全

工具审批与受控执行让高风险操作保持显式且可控。

MCP

通过模型上下文协议连接外部能力。

Skills

使用基于 Markdown 的 skills,并在 CLI 与 Web 中控制激活状态。

内置丰富工具

文件 I/O、grep、命令执行和代码补丁开箱即用。

架构

系统架构设计

Memo CLI 内部的清晰分层架构图

tui to core (direct)web to serverserver to corecore to toolsall model calls in core
Clients
TUI Client
memo / slash commands
Web Client
chat + workspace UI
Other Entrypoints
scripts / CI / API
Gateway
Web Server API Gateway
REST + WebSocket RPC
Session Stream / Router
web requests -> core runtime
Core
Session State Machine
turn lifecycle + history
Prompt & Context Builder
skills + memory + agents
Workspace Runtime
project/session orchestration
Core is Memo's heart: orchestrates tools and ALL LLM calls
providers are OpenAI-compatible; model invocation happens only here
Tools
Built-in Tools
exec/read/list/grep/webfetch/apply_patch
MCP Tools
stdio + streamable_http adapters
Tool Router
dispatch and result shaping
Approval Guard
once / session / deny
Sandbox Policy
permission and writable roots
Parallel Dispatch
concurrent tool calls
Skills
markdown SKILL.md runtime injection
MCP Config
active servers + auth status
Data
~/.memo/config.toml
~/.memo/server.yaml
~/.memo/sessions/*.jsonl
Project/User SKILL.md
Models
OpenAI-compatible endpoint
OpenAI / Azure / DeepSeek
Ollama / custom gateway
Core owns every model request and response normalization.
Runtime
Node.js Process
Local Filesystem + Env
Logs
Auth
快速开始

一分钟内提高工作效率

安装、配置提供商,启动交互式 CLI。

01

安装

一次安装,随处运行。

02

配置

使用兼容 OpenAI API 格式的提供商。

03

启动

启动交互式 TUI 会话。

终端

# 安装

$ npm install -g @memo-code/memo

# 配置

$ export OPENAI_API_KEY=sk-...

# 启动

$ memo

准备好试用 Memo CLI 了吗?

安装 Memo,开始使用一个始终运行在终端中的助手。