Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
Claude Code on your laptop and remote dev boxes, in one web page. Sessions keep running when SSH drops (no tmux), each session's changes get their own diff, plus tasks, notes, and memory. Self-hosted.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Open Walnut runs Claude Code on your laptop and on your remote dev boxes, and shows
every session in one web page. A small daemon on each host owns the claude
processes, so a session on a dev box keeps working when your SSH connection drops or
your laptop sleeps. No tmux. Walnut installs that daemon over SSH for you, and each session gets
its own diff of every file it changed.
Next to the sessions sit your tasks, notes, and long-term memory, and a personal AI
that can plan work, find context, and start sessions for you. Open Walnut is
self-hosted, local-first, and has no telemetry.查看完整 README ↗Replace Notion and your Claude Code terminals with one open-source app where AI agents run your work like a small company. You talk to one CEO agent (Main, in the app), and each project gets its own lead that runs Claude Code sessions and workers for it.
Install on macOS or Linux with one line (it needs nothing else, not even Node), then open localhost:3456:
curl -fsSL https://github.com/EvanZhang008/open-walnut/releases/latest/download/install.sh | sh
~/.local/bin/walnut web
Or with Homebrew, brew install evanzhang008/tap/open-walnut && walnut web, or get the Mac app:
Apple silicon ·
Intel.
Walnut runs its agents on Claude Code, signed in once.
Next to the org sit your tasks, Markdown notes, calendar, and long-term memory, and every coding session in one web page: Claude Code, Codex, Gemini, OpenCode, and Goose, on your laptop or on a remote dev box over SSH. Plugins add your own apps. Open Walnut is self-hosted, local-first, MIT licensed, and has no telemetry.
Project -> Folder -> Task -> Subtask, with an Inbox
for tasks that do not belong to a project.~/.open-walnut/ in JSON, YAML,
Markdown, and SQLite files.apk add libstdc++ libgcc.xcode-select --install on macOS, sudo apt install git on Ubuntu; Bun: curl -fsSL https://bun.sh/install | bash)curl -fsSL https://claude.ai/install.sh | bash, then run claude)That is the whole AI setup. Every AI turn Walnut runs is a Claude Code session: Ask Walnut (the Walnut agent), your coding sessions, scheduled routines, and the agents a session hook dispatches all use the claude you already have, however it signs in (Anthropic account, Bedrock, or Vertex). An Anthropic API key or AWS Bedrock credentials are optional, and they change only where the small single calls go (session titles, summaries, voice cleanup, quick parses): by default those also go through your Claude Code login, and Settings › Advanced › API provider points them at a provider instead.
One command on macOS or Linux. It needs nothing installed first, not even Node:
curl -fsSL https://github.com/EvanZhang008/open-walnut/releases/latest/download/install.sh | sh
~/.local/bin/walnut web
When ~/.local/bin is not on your PATH yet (it is not by default on macOS), the script adds
it in your shell's rc file (~/.zshrc, ~/.bash_profile or ~/.bashrc, fish's conf.d,
else ~/.profile) and says so, so a new terminal runs plain walnut web. The terminal you
installed from keeps its old PATH, which is why the command above names the full path.
OPEN_WALNUT_MODIFY_PATH=0 leaves your rc files alone.
It downloads the newest release's archive for your machine, checks it against the release's
SHA256SUMS, unpacks it into ~/.local/share/open-walnut/app (0.6.19 carries its own Node
there), and links walnut into ~/.local/bin. Running it again replaces that install with
the newest release. From the release after 0.6.19, each version gets its own folder and the
one before stays for a rollback
(Getting Started).
With Homebrew:
brew install evanzhang008/tap/open-walnut
walnut web
On a Mac, the app: download it for
Apple silicon
or Intel,
or install it with brew install --cask evanzhang008/tap/walnut. It carries Walnut inside, so
its first launch sets Walnut up in ~/.local/share/open-walnut with no download, and it keeps
itself up to date: a new release downloads in the background and installs on "Restart to update".
With npm (Node 22 or newer):
npm install -g open-walnut
open-walnut web
To work on Walnut itself, run it from a checkout instead:
git clone https://github.com/EvanZhang008/open-walnut.git
cd open-walnut
bun install
bun run start
Open http://localhost:3456. Walnut runs your sessions with Claude Code: when it is installed and signed in, you can start right away; otherwise System attention, at the bottom of the task panel, offers to install it and says how to sign in. The first start downloads the default local embedding model, Qwen3-Embedding-0.6B (approximately 640 MB), and on Apple silicon and Linux the local voice model, Qwen3-ASR (about 1 to 2.5 GB, sized to the machine), in the background.
For provider options, remote hosts, and troubleshooting, see Getting Started.
Walnut checks npm once a day for a newer release and shows it in the notification panel
(System) and at the bottom of Settings, with the one command that updates your install.
Restarting applies it: walnut web installs a newer published version before it starts,
the way it was installed (the one-line installer's next version goes beside the current
one, an npm install updates through npm), and Settings > General > Install updates on start, updates.auto: false in config.yaml, or WALNUT_NO_AUTO_UPDATE=1 turn that off. A
new version that cannot start is gone back from on its own, and skipped until a newer one.
walnut update does the same right away, walnut update --check only reports, and
walnut doctor carries the same line. Homebrew updates with brew upgrade open-walnut, the
Mac app with its own "Restart to update". A checkout you run from source is never asked to
update (pull and build it yourself), and WALNUT_NO_UPDATE_CHECK=1 turns the check off.
Two channels are published: nightly is the newest commit on main that CI passed, every six
hours, and latest is a tagged release, promoted each day from a nightly that has been out a
day. npm install -g open-walnut@nightly switches an install to the nightly channel; it then
follows nightly until you install @latest again.
If Claude Code is already configured on your machine, you can ask it to install and verify Open Walnut. Paste this into an authenticated Claude Code session:
Set up Open Walnut for me: read and run the skill at
https://github.com/EvanZhang008/open-walnut/blob/main/skills/setup-walnut/SKILL.md
The skill mirrors your existing provider setup, installs Walnut, starts it, and verifies the connection with a real model request. Review the setup skill for the exact steps.
The Org page is where you run the company. Main is pinned on top with every lead under it; each lead's row says what it is working on or what it asks you. The org chart shows every project's lead and the workers under it, and dragging a task onto another makes it that task's worker.
Rich mode is on by default: a session can answer with a diagram, a table, or a laid-out page instead of a wall of text, and it draws in as the answer streams.
Choose a working directory, describe the work, and start a Claude Code session. The task stays attached to the session while its output streams in the browser.
Chat with Claude Code, change its mode or model, open a terminal, browse files, inspect history, and fork the session without leaving the page.
The home page combines tasks, Walnut, and Claude Code session columns. You can move between planning, execution, and review without rebuilding context in another app.
Move pinned tasks between Focus, Satellite, and Parked to show what needs attention now, what can run in parallel, and what is waiting.
Write Markdown notes with wiki links and backlinks. Walnut can search notes and memory through local keyword and vector indexes.
Open the Changed view to inspect the files edited by one session. Select code or leave line comments, then send the review back to that session.
Open Walnut uses the same session system for local and remote work. A small daemon on each host owns the long-running Claude Code processes, while the web app connects to those daemons.
Add remote hosts to ~/.open-walnut/config.yaml:
hosts:
my-server:
hostname: dev.example.com
user: myuser
# Optional: identity_file, port, shell_setup
See Remote sessions via SSH for the full setup.
The Changed view reconstructs a diff from the selected session's own history rather than the repository's current Git state. This keeps edits attributed to the correct session when several sessions share a repository.
Open Walnut also displays dynamic Claude Code workflows as a live graph. Each node shows a subagent's status, model, token use, and duration. Select a node to read its transcript or inspect the script that created the workflow.
The graph is restored from its on-disk manifest after a reload or reconnect.
Tasks are the main unit of work in Open Walnut.
The notes workspace supports Markdown, [[wiki-links]], backlinks, folders,
attachments, slash commands, and rich editing. Notes remain ordinary files under
~/.open-walnut/notes/.
Walnut can search your notes, and notes/AGENTS.md can provide shared instructions to
Claude Code sessions.
Walnut records useful context in daily logs, project memory, repository memory, and session summaries. A background consolidation job updates topic pages so important context remains easy to find without loading every old conversation.
Search combines BM25 keyword matching, local vector embeddings, optional reranking, and freshness weighting. Memory, notes, tasks, and sessions use separate indexes so one source does not overwhelm the others.
A plugin App joins the same App Registry as Walnut's own screens, so one walnut.ui.app registration gives it a Sidebar entry, the route /apps/<plugin-id>~<app-id>, deep links, a badge, and a Command Palette entry. Installing a plugin means trusting its code: a server entry runs as full code inside Walnut, and a native web entry shares the console's React tree.
The first authoring loop is one command, which scaffolds, links into the running console, and reloads on every save. The author packages are not on npm yet, so run it from a checkout of this repository:
bun run build:plugins
bun packages/plugin-cli/dist/cli.js new my-plugin --dev --no-install
Once the packages are published, the same loop will be npx @open-walnut/plugin-cli new my-plugin --dev.
Read Plugin development for the full guide, and examples/plugins/walnut-demo (the Walnut Plugin Demo) for a runnable example of every public capability. The console also ships a guided onboarding page at /plugins/new.
The beta SwiftUI app provides access to tasks, notes, and live sessions from an iPhone.
It is not on the App Store yet: build it with Xcode from ios-native/.
It pairs with the web app by QR code, and the QR carries the device token every
request from the phone sends. The phone can reach your machine three ways, and one
pairing covers all of them: the same Wi-Fi, a Tailscale tailnet
(Settings › Phones & Cloud walks you through installing Tailscale on the machine and the
phone, step by step, and offers a Tailscale QR; this works from anywhere while the machine
is on, with no server to run), or an optional
self-hosted cloud companion that also answers while the machine sleeps. The app learns
every address after it connects once and switches to the best one that answers.
See Phone connection routes for how the switching works, and Cloud sync for the companion.
~/.open-walnut/.ssh -L 3456:localhost:3456 <host>). A reverse
proxy in front of Walnut must send X-Forwarded-For.| Route | Purpose |
|---|---|
/ | Walnut, tasks, and Claude Code session columns |
/org | Main and the project leads, with the org chart |
/tasks | Project and task workspace |
/tasks/:id | Task details, subtasks, sessions, notes, and dependencies |
/notes | Markdown notes workspace |
/memory | Memory browser |
/calendar | Calendar view |
/routines | Scheduled routines and automation |
/agents | Custom agents and their conversations |
/commands | Claude Code commands |
/skills | Claude Code and Walnut skills |
/settings | Provider, tasks, sessions, voice, integrations, usage, and app settings |
/apps/<plugin-id>~<app-id> | A plugin App, mounted by the App Registry |
Sessions open as columns on the home page. Legacy /sessions?id=... links redirect
there automatically.
Walnut's own screens and every plugin App live in one App Registry, so they share the same Sidebar order, visibility, badges, and navigation. Home's Chat, Todo, and Agenda are Dock controls inside Home rather than separate apps.
Both walnut and open-walnut invoke the same CLI.
walnut web [--port 3456] # Start the web app
walnut add "Task title" --project X # Create a task
walnut tasks [--status todo] # List tasks
walnut projects # List projects
walnut done <id> # Complete a task
walnut sessions # List sessions
walnut start <task_id> # Start a Claude Code session
walnut recall "query" # Search memory and tasks
walnut tools list # List the operations sessions and agents call
walnut tools call <op> '{json}' # Run one operation and print its JSON result
walnut logs [-f] [--json] # Read structured logs
There is no chat subcommand: claude is the terminal REPL, and walnut tools call
is the one-shot.
Use walnut --help for all commands and options.
Configuration is stored in ~/.open-walnut/config.yaml. The Settings page covers model
providers, search, integrations, repositories, session hosts, usage, and other app
options.
Open Walnut supports Anthropic, AWS Bedrock, OpenAI-compatible APIs, Google Generative AI, and Ollama. See Getting Started for provider examples.
src/
model/ # Single model calls, provider adapters, and the model catalog
ops/ # The operation registry sessions and the CLI both call
commands/ # CLI commands
core/ # Tasks, memory, search, sessions, routines, and config
integrations/ # Built-in task integrations
logging/ # Structured logging and redaction
providers/ # Claude Code sessions, daemons, and subagents
web/ # Express server, REST API, and WebSocket handlers
web/ # React web app
ios-native/ # SwiftUI companion app
infra/ # Optional cloud companion infrastructure
docs/ # Design, decisions, investigations, and references
tests/ # Unit, integration, end-to-end, and browser tests
Read Architecture for the system design and the documentation index for deeper technical documentation.
A checkout installs with Bun: bun install installs the exact versions in bun.lock
(and web/bun.lock) and applies patches/. Commit a changed bun.lock with the
package.json change that made it.
bun install # Install dependencies (root and web/)
bun run build # Build the server and session daemon
cd web && bun x vite build # Build the web app
bun run dev # Watch the server
cd web && bun x vite # Run the web app with hot reload
bun run test:quick # Run the default fast test suite
bun run test:focus -- <test-path> # Run focused tests
bun run lint # Type-check the server
The backend development server and Vite can also be started together with:
bun run web:dev
Contributions are welcome. Read CONTRIBUTING.md before opening a pull request.