╦ ╦┬┌┐┌┌┬┐┌─┐┬─┐┌┬┐┌─┐┬ ┌┬┐ ║║║││││ │ ├┤ ├┬┘││││ ││ │ ╚╩╝┴┘└┘ ┴ └─┘┴└─┴ ┴└─┘┴─┘┴One binary. Zero runtime. Every AI backend.
An autonomous AI agent CLI written entirely in Zig.
Quick Start • Features • Why Wintermolt? • Architecture
wintermolt has no token or coin. The
$WINTERMOLTtoken on Base is not affiliated with this project or its author.
$ wintermolt
Wintermolt v0.4.0 — AI Agent CLI
Backend: ollama (qwen3:0.6b)
> Refactor all error handling in src/ to use proper Zig error unions
[grep] Searching for catch unreachable patterns...
[file_edit] src/api/client.zig: replaced 4 catch unreachable with proper error returns
[file_edit] src/tools/http.zig: wrapped 2 unsafe casts in error handling
[bash] zig build — compiled successfully, 0 errors
Done. Fixed 11 error handling issues across 6 files. All tests pass.
> /schedule add deploy-check every 30m bash deploy_status.sh
[scheduler] Job "deploy-check" added — runs every 30 minutes
> /look What's on my whiteboard?
[camera] Capturing from default camera...
I can see a system architecture diagram with three boxes labeled "API",
"Worker", and "DB". There are arrows showing request flow...
> /tailscale
Tailscale peers:
dev-macbook 100.64.0.1 macOS online
prod-server 100.64.0.2 Linux online (last seen: 2m ago)
jetson-robot 100.64.0.3 Linux online (last seen: 30s ago)
Most AI coding tools ship hundreds of megabytes of Electron or Node.js runtime just to send API calls and edit files. Wintermolt compiles to a single native binary — about 6 MB on macOS Apple Silicon, 1.9 MB on Linux arm64 and 2.2 MB on Linux x86_64 (stripped), 14 MB on Windows (statically-linked HTTP/3 stack) — and builds natively on macOS, Linux and Windows, including ARM boards like Jetson and Raspberry Pi.
| Wintermolt | Claude Code | Cursor | Aider | |
|---|---|---|---|---|
| Binary size | 1.9–14 MB | ~200 MB | ~500 MB | ~50 MB |
| Runtime | None | Node.js 18+ | Electron | Python 3.8+ |
| Runs on Jetson/Pi | Yes | Barely | No | Slow |
| Runs on Windows | Yes (v0.4+) | Via WSL | Yes | Yes |
| AI backends | 8 | 1 | Multiple | Multiple |
| Camera + vision | Built-in | No | No | No |
| Browser automation | Built-in | No | No | No |
| MCP client + server | Both | Client only | Client only | No |
| Chat bridges | 16 platforms | No | No | No |
| Cron scheduler | Built-in | No | No | No |
| Mesh networking | Tailscale | No | No | No |
| Menu bar app | macOS native | No | No | No |
| License | MIT | Proprietary | Proprietary | Apache-2.0 |
Two-step setup. Download the binary, install Ollama, run. No compiler, no
npm install, no Docker. Total time: ~2 minutes.
Pick the line that matches you and paste it into a terminal. The binary
lands as ./wintermolt (or wintermolt.exe on Windows) in your current
directory.
macOS (Apple Silicon — M1/M2/M3/M4):
curl -L -o wintermolt https://github.com/lupin4/wintermolt/raw/main/prebuilt/wintermolt-macos \
&& chmod +x wintermoltLinux (ARM64 — Jetson, Raspberry Pi 5, AWS Graviton, etc.):
curl -L -o wintermolt https://github.com/lupin4/wintermolt/raw/main/prebuilt/wintermolt-linux-arm64 \
&& chmod +x wintermoltWindows (x86_64) — PowerShell:
Invoke-WebRequest `
-Uri https://github.com/lupin4/wintermolt/raw/main/prebuilt/wintermolt-windows-x86_64.exe `
-OutFile wintermolt.exeLinux (x86_64 — servers, cloud VMs):
curl -L -o wintermolt https://github.com/lupin4/wintermolt/raw/main/prebuilt/wintermolt-linux-x86_64 \
&& chmod +x wintermoltWintermolt's default backend is Ollama, which runs models locally. No API key needed.
# macOS / Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows: download installer from https://ollama.com/download/windows
# Then pull the default model (~500 MB)
ollama pull qwen3:0.6bPrefer cloud models? Skip Ollama and run ./wintermolt --keys to set
an API key for Claude, GPT, DeepSeek, Qwen, Gemini, or forAI.
./wintermolt # interactive chat (full-screen in a terminal)
./wintermolt --plain # the plain line-by-line REPL instead
./wintermolt -e "list files in pwd" # one-shot prompt
./wintermolt --keys # configure cloud API keys
./wintermolt --help # all commandsThat's it. You're running.
| Platform | Binary | Size | Notes |
|---|---|---|---|
| macOS arm64 | wintermolt-macos |
6.4 MB | Mach-O arm64, the system libcurl + sqlite3 (nothing to install), stripped. macOS 27.2+ (#5). Baseline arm64: any Apple Silicon Mac. |
| Linux arm64 | wintermolt-linux-arm64 |
1.9 MB | ELF aarch64, dynamic libcurl + sqlite3, stripped. glibc 2.34+ (Ubuntu 22.04 / JetPack 6, Debian 12 / Raspberry Pi OS Bookworm, RHEL 9 and later). Baseline aarch64: no SVE, so it runs on Raspberry Pi and older Jetsons. Not musl: on Alpine, build it. |
| Linux x86_64 | wintermolt-linux-x86_64 |
2.2 MB | ELF x86-64, dynamic libcurl + sqlite3, stripped. glibc 2.34+ (Ubuntu 22.04, Debian 12, RHEL 9 and later). x86-64-v3 CPU (Intel Haswell, AMD Zen or newer). |
| Windows x86_64 | wintermolt-windows-x86_64.exe |
14 MB | PE32+, HTTP/3 and crypto linked in statically. Imports only Windows system DLLs: nothing else to install. x86-64-v3 CPU (Intel Haswell, AMD Zen or newer). |
If you want to compile yourself.
- Zig 0.16 (one binary, no installer). 0.15.2 no longer builds wintermolt.
- libcurl + sqlite3 dev headers:
- macOS:
brew install curl sqlite3(usually preinstalled) - Linux (Debian/Ubuntu):
sudo apt-get install libcurl4-openssl-dev libsqlite3-dev - Linux (Fedora/RHEL):
sudo dnf install libcurl-devel sqlite-devel - Windows: install MSYS2 UCRT64, then
pacman -S mingw-w64-ucrt-x86_64-curl mingw-w64-ucrt-x86_64-sqlite3
- macOS:
git clone https://github.com/lupin4/wintermolt.git
cd wintermolt
zig build -Doptimize=ReleaseSmall
./zig-out/bin/wintermoltBuild each platform on a machine of that platform. -Dtarget= makes Zig treat
the build as a cross-compile, and it then stops finding the system libcurl and
sqlite3 (and, for Windows, the MSYS2 UCRT64 libraries). Set a CPU floor with
-Dcpu= instead, so the binary runs on more than the machine that built it:
zig build -Doptimize=ReleaseFast -Dcpu=baseline # aarch64 — Apple Silicon, Jetson, Pi 5, Graviton
zig build -Doptimize=ReleaseFast -Dcpu=x86_64_v3 # x86_64 — Linux, Windows (MSYS2 UCRT64)Add -Dstrip=true to leave debug info out of the binary. Crash backtraces then
lose their file and line numbers.
The glibc floor of a published Linux binary is the floor of the machine that
built it, so build the Linux releases in an Ubuntu 22.04 container (glibc
2.35) rather than on the host. Building natively on a newer host raises the
floor silently: std.Io binds arc4random_buf whenever the target glibc is
2.36 or newer, and a Thor running Ubuntu 24.04 (glibc 2.39) therefore produced
an arm64 binary that would not start on JetPack 6 (#2). The container is
native on an aarch64 host — no emulation:
docker run --rm -v "$PWD":/w -v "$(dirname "$(readlink -f "$(which zig)")")":/zig:ro \
-w /w -e OWNER="$(id -u):$(id -g)" ubuntu:22.04 bash -c '
apt-get update -qq && apt-get install -y -qq libcurl4-openssl-dev libsqlite3-dev
HOME=/tmp/zh /zig/zig build -Doptimize=ReleaseFast -Dcpu=baseline -Dstrip=true \
--cache-dir /tmp/zc --global-cache-dir /tmp/zg --prefix /tmp/out
cp /tmp/out/bin/wintermolt prebuilt/wintermolt-linux-arm64
chown "$OWNER" prebuilt/wintermolt-linux-arm64'Three things in that command are easy to get wrong, and each one did go wrong:
- One
dirname, not two. The mount has to be the directory holding both thezigbinary andlib/, because Zig finds its standard library relative to its own executable. zigup puts the binary at~/.local/share/zigup/<ver>/files/zig, so that directory isfiles. Mount one level higher and the build dies with/zig/zig: No such file or directory— before Zig runs at all, so there is no stdlib error to hint at the cause. - Copy the binary out.
--prefix /tmp/outwrites inside the container, and--rmthen deletes it. Without thecpthe build succeeds and leaves nothing behind. chownwhat you copied. Docker runs as root, so anything written into the repo lands root-owned and will not delete withoutsudo. The caches stay under/tmpfor the same reason; only the one copied file needs an owner. Running the whole container as--userinstead does not work here, becauseapt-get installneeds root.
Then verify the floor before publishing — the highest version here must be the one the platform table claims:
objdump -T prebuilt/wintermolt-linux-arm64 | grep -o 'GLIBC_[0-9.]*' | sort -uV | tail -1
objdump -T prebuilt/wintermolt-linux-arm64 | grep -c arc4random_buf # must be 0A 2.35 container yielding a 2.34 floor is correct, not a mistake to go fix: the
floor is the highest version the binary actually binds, not the container's
own glibc, and nothing in this build references a symbol versioned above 2.34.
That is why the second check matters. arc4random_buf is the symbol that would
raise the floor, so its absence is positive evidence the container did its job
— a floor that merely looks right can also come from a host build that happened
not to bind anything newer yet.
The macOS binary's minimum is likewise the macOS of the machine that built it.
Zig takes it from the host and ignores MACOSX_DEPLOYMENT_TARGET (#5). Check
it against the platform table, and check that curl is the system one, never
/opt/homebrew:
otool -l prebuilt/wintermolt-macos | grep -A3 LC_BUILD_VERSION | grep minos
otool -L prebuilt/wintermolt-macos | grep curl # /usr/lib/libcurl.4.dylibThe Linux prebuilts are glibc builds and do not start on Alpine, even with
gcompat. Build a musl binary instead. The sysroot route below cross-compiles
from any Linux host; -Dtarget= is the one place it is right, because
--search-prefix hands Zig the libcurl and sqlite3 that cross-compiling would
otherwise stop finding.
Extract Alpine's curl-dev, libcurl, sqlite-dev and sqlite-libs apks
(same Alpine release and arch as the target) into $SYSROOT, then:
PKG_CONFIG_LIBDIR=/nonexistent zig build \
-Dtarget=aarch64-linux-musl -Dcpu=cortex_a53 -Doptimize=ReleaseSmall \
--search-prefix "$SYSROOT/usr"cortex_a53 is the Pi Zero 2 W / Pi 3; -Dcpu=baseline runs on any aarch64.
Verified on a Pi Zero 2 W under Alpine 3.23: a 961 KB dynamically linked musl
binary, no preload needed.
GitHub Actions builds these musl binaries in
.github/workflows/linMusl-release.yml, natively in an alpine:3.23 container
for arm64 and x86_64. On Alpine the target is already *-linux-musl, so no
-Dtarget= or --search-prefix is needed, and the lane fails if the result
carries a GLIBC_ import.
Wintermolt doesn't just answer questions — it plans and executes multi-step tasks autonomously, calling tools in sequence until the job is done. Up to 25 tool iterations per turn.
> Find all security vulnerabilities in this Express app and fix them
[grep] Searching for SQL injection patterns...
[file_read] Reading src/routes/users.js...
[file_edit] Parameterizing raw SQL query on line 47...
[file_edit] Adding input sanitization to /api/upload...
[grep] Checking for XSS in template files...
[file_edit] Escaping user input in 3 Handlebars templates...
[bash] npm test — 47 passed, 0 failed
Fixed 5 vulnerabilities: 2 SQL injection, 2 XSS, 1 path traversal. All tests pass.
> /model ollama — Local models (Llama, Qwen, Mistral, Phi — no API key, DEFAULT)
> /model claude — Anthropic Claude (API key required)
> /model openai — OpenAI GPT-4o, GPT-4.1
> /model deepseek — DeepSeek V3/R1
> /model qwen — Qwen 2.5+ Cloud
> /model gemini — Google Gemini
All backends support streaming. Ollama runs 100% local, air-gapped, no API key. Cloud backends are optional — bring your own key via /keys.
Note on Claude: Claude was previously removed when Anthropic restricted non-API usage. It has been re-added as an optional backend for users who want Claude via the API. The default remains local (Ollama) — no API key is required to use Wintermolt. Use
/keysor--keysto configure yourANTHROPIC_API_KEYif you want Claude.
- Local GGUF inference in-process (
/model kerneltoday on Apple Silicon;/model foraion forMetal/forCUDA across macOS/Linux/Windows as engine deliveries land). Unsloth-trained GGUF exports run as-is.
Wintermolt ships with 70 skill definitions across 11 domains: the house rules and domain knowledge of the forKernels / Zortran stack, written as instructions the model loads when it works in that area.
| Domain | Skills | Default Model |
|---|---|---|
| Zortran Core | 6 | qwen3:30b |
| Fortran Kernels | 6 | qwen3:30b |
| Zig Systems | 6 | qwen3:30b |
| Physics / Simulation | 6 | qwen3:30b |
| AI / ML Kernels | 6 | qwen3:30b |
| Cybersecurity | 6 | qwen3:30b |
| Synthetic Data | 6 | qwen3:8b |
| Agent Architecture | 6 | qwen3:8b |
| Audio / Music | 8 | qwen3:8b |
| 3D / VFX | 9 | qwen3:8b |
| Engineering (kernels, release) | 5 | qwen3:30b (devops: 8b) |
Skills live in skills/ as skill.json manifests and load at startup. The model lists them with the skills tool and loads one with operation='use', which puts the skill's role_prompt into the conversation on whatever backend is running. The manifests' backend and model fields are recorded but not used. See docs/SKILLS.md.
The AI invokes these autonomously. No plugins needed.
| Tool | What it does |
|---|---|
bash |
Execute shell commands with safety guardrails |
file_read |
Read any file (text, images via multimodal) |
file_write |
Create or overwrite files |
file_edit |
Surgical find-and-replace editing |
glob |
Recursive file search by pattern |
grep |
Content search with regex |
http_request |
HTTP GET/POST/PUT/DELETE to any URL |
web_search |
DuckDuckGo search (no API key needed) |
camera_capture |
Camera snapshots, screenshots and image files the agent looks at itself, + OAK-D depth |
image_process |
Format conversion (BMP, PNG via sips/ffmpeg) |
browser_control |
Full Chrome automation via DevTools Protocol |
memory_search |
Semantic search over conversation history |
schedule |
Cron jobs — schedule recurring commands |
tailscale |
Mesh VPN — query peers, devices, connectivity |
canvas_update |
A2UI — render rich UI surfaces in terminal or web |
skills |
List skills and the built-in tool catalog |
text_to_speech |
Speech via Deepgram, OpenAI, ElevenLabs, Piper, Edge TTS or the computer's own voice |
image_generate |
DALL-E 3 image generation |
google_workspace |
Gmail, Calendar and Drive via Google APIs |
spawn_agent |
Run a subtask in a child agent with its own context |
Schedule commands to run automatically. Jobs persist across restarts via SQLite.
> /schedule add health-check every 5m bash curl -s https://myapp.com/health
[scheduler] Job "health-check" created — runs every 5 minutes
> /schedule add backup at 03:00 bash ./scripts/backup.sh
[scheduler] Job "backup" created — runs daily at 03:00
> /schedule add report cron 0 9 * * 1 bash ./generate_weekly_report.sh
[scheduler] Job "report" created — runs every Monday at 9:00 AM
> /schedule list
ID Name Schedule Next Run Status
─────────────────────────────────────────────────────────────────
a7f3b2c1 health-check every 5m 2 min from now enabled
d4e8a9f0 backup daily 03:00 in 6 hours enabled
b1c2d3e4 report 0 9 * * 1 Monday 09:00 enabled
> /schedule remove a7f3b2c1
[scheduler] Removed "health-check"
Query your Tailscale network directly from the agent. See all devices, check connectivity, coordinate across machines.
> /tailscale
Tailscale Network Status:
dev-laptop 100.64.0.1 macOS 15.3 online
build-server 100.64.0.2 Ubuntu 24.04 online (3s ago)
jetson-orin 100.64.0.3 Linux 6.1 online (12s ago)
raspberry-pi 100.64.0.4 Linux 6.6 offline (2h ago)
> Ask the AI: "Deploy the latest build to jetson-orin via Tailscale"
[tailscale] Checking connectivity to 100.64.0.3...
[bash] scp -o StrictHostKeyChecking=no ./build/app [email protected]:~/deploy/
[bash] ssh [email protected] 'systemctl restart wintermolt-agent'
Deployed and restarted on jetson-orin. Service is healthy.
A native Swift sidecar that lives in your menu bar. Send prompts, see streaming responses, get notifications — without switching windows.
wintermolt --menubar┌─────────────────────────────────────┐
│ W⚡ Wintermolt │
├─────────────────────────────────────┤
│ Wintermolt — ollama/qwen3 (1.2k) │
│ ───────────────────────────────── │
│ Quick Prompt... ⌘P │
│ New Chat ⌘N │
│ ───────────────────────────────── │
│ Last: "Deployed to prod, all..." │
│ ───────────────────────────────── │
│ Quit ⌘Q │
└─────────────────────────────────────┘
Built with AppKit NSStatusBar — no Electron, no web views. Communicates with the Zig backend via JSON lines over stdin/stdout, same battle-tested IPC pattern used by the chat and web bridges.
The AI can render rich UI surfaces — tables, layouts, code blocks — directly in your terminal using box-drawing characters, or in the browser via the web bridge.
> Show me a dashboard of my project health
┌─ Project Health ─────────────────────────────────────┐
│ │
│ ┌─ Build ────────┐ ┌─ Tests ────────┐ │
│ │ Status: passing │ │ 147 passed │ │
│ │ Time: 2.3s │ │ 0 failed │ │
│ │ Binary: 3.1 MB │ │ 3 skipped │ │
│ └─────────────────┘ └────────────────┘ │
│ │
│ ┌─ Dependencies ──────────────────────┐ │
│ │ libcurl 4.5.0 system OK │ │
│ │ sqlite3 3.45 system OK │ │
│ └─────────────────────────────────────┘ │
└───────────────────────────────────────────────────────┘
Uses Google's A2UI protocol (Agent-to-UI) — the agent describes what to render, the client decides how. Terminal gets ANSI box-drawing. Web UI gets native HTML components.
Workspace files — as in OpenClaw, Markdown files in
~/.wintermolt/workspace (or WINTERMOLT_WORKSPACE_DIR) go into the
system prompt on every turn, so an edit counts from the next one:
| File | For |
|---|---|
AGENTS.md |
How the agent should work |
SOUL.md |
Persona, tone, boundaries |
USER.md |
Who you are and what you want (first 4,000 characters) |
IDENTITY.md |
The agent's name and manner |
MEMORY.md |
What it should remember. Only in your own sessions: never a --chat group, nor a per-peer DM session |
Create the folder and whichever files you want; a missing one is left out.
Each is cut at 20,000 characters and all of them at 60,000, and the agent
is told which were cut. Ask it to remember something and it writes it into
MEMORY.md with its file tools; a small model may rewrite the whole file in
its own words, so keep your own copy of anything you cannot lose. A
spawn_agent child gets AGENTS.md only. On a
local model, keep them short: they share its context window (8,192 tokens
by default) with the conversation.
SQLite history — Every conversation persists in ~/.wintermolt/history.db. Resume any session.
Pinecone RAG — Optional semantic memory via vector search. The AI automatically indexes conversations and recalls relevant context from past sessions.
> /memory search "how did we fix the auth bug last week?"
[rag] Found 3 relevant passages from Feb 14-15 sessions...
Full bidirectional MCP support — connect to external tools AND expose yours.
As client: Add any MCP server. Configure in ~/.wintermolt/mcp.json:
{
"servers": {
"filesystem": {
"command": "npx",
"args": ["@modelcontextprotocol/server-filesystem", "/Users/me"]
},
"github": {
"command": "npx",
"args": ["@modelcontextprotocol/server-github"]
}
}
}As server: Expose all 15 tools to any MCP-compatible client:
wintermolt --mcp-server # JSON-RPC 2.0 over stdioDeploy Wintermolt as a bot on any messaging platform:
wintermolt --chat # Connects to all configured platforms simultaneously| Platform | Env Variable | Features |
|---|---|---|
| Discord | DISCORD_BOT_TOKEN |
Channels, DMs, threads |
| Telegram | TELEGRAM_BOT_TOKEN |
Private + group chats |
| Slack | SLACK_BOT_TOKEN + SLACK_APP_TOKEN |
Socket Mode, channels |
WINTERMOLT_WHATSAPP=1 |
Via whatsapp-web.js |
All platforms get the same agentic capabilities — tool use, streaming, file handling.
Nobody reaches the agent until you allow them, as in OpenClaw. An unknown
sender's direct message gets a pairing code and goes no further until you run
wintermolt --pairing approve <platform> <code>. A group needs to be listed and
the bot mentioned. The rules and their WINTERMOLT_CHAT_* settings are in
docs/DEPLOYMENT.md.
Messages that arrive during a reply wait their turn. /stop, /new,
/status, /help and /approve are answered by wintermolt itself, not the
model.
wintermolt --web # Serves http://127.0.0.1:3000 and opens itA chat page served by the binary itself: no Node, nothing to install. Replies stream in as they are written, each tool shows while it runs, and panels list past conversations, skills, the workspace files (editable) and which keys are set. Open the link it prints; the token in it keeps other sites and users out. Details and settings in docs/DEPLOYMENT.md.
CLI-Anything is a framework for wrapping software in structured CLIs that AI agents can drive. Wintermolt ships its own harness in agent-harness/: a pip-installable Python CLI (Click command groups, --json output) that runs the wintermolt binary through -e and --mcp-server and reads its SQLite history read-only, so another agent can use Wintermolt as a tool.
pip install -e agent-harness/Wintermolt has no tool that generates harnesses for other software. The cli_anything_harness skill (skills use) carries the CLI-Anything conventions for writing one by hand. Existing harnesses for Blender, Audacity, ComfyUI, CloudCompare and more are command-line programs the bash tool can run like any other.
SKILL.md skills, the format of OpenClaw, ClawHub and Anthropic's Agent
Skills, from ./skills, ./.agents/skills, the workspace, ~/.agents/skills
and ~/.wintermolt/skills: the model sees each skill's name and description
every turn and loads the instructions when a task fits, and /skill <name>
uses one on request. OpenClaw's os, requires.bins and requires.env
gates hide a skill that cannot run here. Wintermolt's own skill.json
manifests load as before, with runtime plugin discovery from
~/.wintermolt/plugins/. See docs/SKILLS.md.
Wintermolt ships with forAgent, a framework for persistent, stateful agent-to-software connections. forAgent provides session management, transport adapters (TCP, Unix socket, HTTP, subprocess), state tracking, tool registry, and MCP protocol handling.
When Wintermolt connects to external software (Blender, OBS, Docker, etc.), forAgent manages the persistent session — keeping state, tracking changes, and providing a clean tool interface that the AI can use autonomously.
Wintermolt ships with forLearn, which provides two capabilities:
Online learning kernels — unsupervised and reinforcement learning algorithms that run on-device with fixed memory budgets. All kernels are pure Zig (no Fortran dependency in Wintermolt):
| Kernel | Algorithm |
|---|---|
| Memory buffer | Circular ring buffer for streaming samples |
| Hebbian network | Associative weight learning (no backprop) |
| Online K-Means | Streaming clustering with EMA centroid update |
| Self-Organizing Map | Topology-preserving 2D Kohonen network |
| Anomaly detector | Welford's online mean/variance + pseudo-Mahalanobis |
| Online predictor | Per-feature autoregressive model |
| Q-Learning | Tabular RL with epsilon-greedy |
| Curiosity | Intrinsic motivation via forward-model prediction error |
| Mode | Command | Description |
|---|---|---|
| Chat (TUI) | wintermolt |
Full-screen chat when stdin and stdout are a terminal |
| Plain REPL | wintermolt --plain |
Line-by-line session; also what you get when input is piped |
| Single-shot | wintermolt -e "prompt" |
Run one prompt, print result, exit; status 1 if no backend answered |
| Setup | wintermolt --setup |
Interactive API key + model wizard |
| Chat | wintermolt --chat |
Multi-platform messaging bot |
| Web | wintermolt --web |
Chat in a browser, served by wintermolt on 127.0.0.1:3000 |
| Menu Bar | wintermolt --menubar |
macOS native status bar app |
| MCP Server | wintermolt --mcp-server |
Expose tools via JSON-RPC 2.0 |
Run wintermolt in a real terminal (Windows console, macOS or Linux tty) and
it opens a full-screen chat built on zortui. You
get a scrolling transcript with your lines, the model's replies and tool calls
in different colors, an input line, and a status bar showing the backend, the
model and whether a request is running.
| Key | Action |
|---|---|
| Enter | Send the line (slash commands work as in the REPL) |
| ← → Home End, Backspace, Delete | Edit the input line |
| PgUp PgDn, ↑ ↓, Ctrl+↑ Ctrl+↓ | Scroll the transcript |
| Mouse wheel | Scroll, where the terminal turns the wheel into ↑ ↓ (see below) |
| Ctrl+L | Repaint the screen |
| Esc | Stop the reply that is running; with none running, exit |
/stop |
Stop the reply that is running |
Ctrl+C, /quit |
Exit and restore the terminal (a running reply is stopped first) |
Selecting text. The full-screen view leaves the mouse to your terminal, so
click-and-drag selection and copy work as they do in any other program:
Windows Terminal, the classic Windows console (Quick Edit stays on) and POSIX
terminals. Windows Terminal turns the wheel into ↑ ↓ on a full-screen view by
default, which scrolls the transcript; other terminals may need their
"alternate scroll" setting. To give the view the mouse instead, set
WINTERMOLT_TUI_MOUSE=1: the wheel then scrolls the transcript everywhere,
and the terminal can no longer select (many terminals still select with
Shift+drag).
Themes. terminal (the default) uses your terminal's own background and
its 16 colors, so the full-screen view matches whatever scheme the terminal
has. Nine more palettes come from zortui: dark, dracula, nord,
tokyo-night, gruvbox, matrix, monochrome, high-contrast and light.
Either spelling works, in any case (tokyo-night or tokyoNight). The
full-screen view and canvas surfaces both use the theme (canvas surfaces draw
terminal as dark), taken from the first of these that names a real theme:
wintermolt --theme <name>, for that run;WINTERMOLT_THEME=<name>in the environment;- the theme
/themesaved in~/.wintermolt/.env; terminal.
A name that is not a theme is reported with the list of valid names (an
[error] line in the full-screen view) and the next source is used. /theme
alone lists the themes with the current one marked; /theme <name> switches
the running view at once and saves the choice as WINTERMOLT_THEME=<name> in
~/.wintermolt/.env, leaving everything else in that file as it was. In the
plain REPL /theme lists and saves too; the colours show in the full-screen
view and the canvas.
The plain REPL is still there, unchanged:
- Automatically when stdin or stdout is not a terminal, e.g.
printf '/stats\n/quit\n' | wintermoltorwintermolt > log.txt. - On request with
wintermolt --plain, orWINTERMOLT_PLAIN=1in the environment.
-e, --web, --gateway, --chat and --mcp-server never open the
full-screen view. /keys with no argument prompts for input, so inside the
full-screen view use /keys list, or run wintermolt --keys.
| Command | Description |
|---|---|
/help |
Show all commands |
/quit /exit |
Exit the REPL |
/clear /new |
Archive conversation and start fresh |
/stop |
Stop the running reply (full-screen view and chat; Ctrl+C does it in the plain REPL and -e) |
/model [name] |
Show or switch AI backend |
/theme [name] |
List themes, or switch the full-screen view and canvas and save it |
/look [prompt] |
Camera capture + AI vision |
/image <file> [prompt] |
Attach an image file + AI vision (drag the file in for its path) |
/screenshot [prompt] |
Screen capture + AI vision |
/listen [seconds | file] |
Speak a prompt (or give a recording); the reply is spoken (voice) |
/tts <text> |
Speak text aloud |
/skill [name] [input] |
List SKILL.md skills, or have the model use one (skills) |
/schedule |
Manage cron jobs (list, add, remove, enable, disable) |
/tailscale |
Show Tailscale network peers and status |
/mcp |
Show MCP client/server status |
/download <url> |
Download a file |
/history |
List recent conversations |
/resume [id] |
Resume a past conversation |
/search <text> |
Search message history |
/memory search <q> |
Search Pinecone RAG memory |
/stats |
Database and session statistics |
/compact |
Optimize the SQLite database |
/export [path] |
Export conversation as JSONL |
| Page | Covers |
|---|---|
| docs/BACKENDS.md | All 8 backends, default models, env vars, --keys flow. |
| docs/OPENCLAW_PARITY.md | What OpenClaw does that wintermolt does not yet, and the order it is being closed. |
| docs/TOOLS.md | The 20 built-in tools (9 core + 11 extended), triggers, safety. |
| docs/SKILLS.md | Skill manifest format, built-in catalog, custom skills. |
| docs/MCP.md | MCP client + server, ~/.wintermolt/mcp.json, Claude Desktop / Zed wiring. |
| docs/DEPLOYMENT.md | Run modes (--chat, --web, --menubar, --gateway), 16 chat platforms and who can reach the agent through them, scheduler, Tailscale, persistent storage. |
wintermolt (one native binary, 1.9–14 MB)
│
├── src/main.zig Entry point — REPL, CLI, mode dispatch
├── src/setup.zig OOBE setup wizard
│
├── src/agent/ Core AI agent
│ ├── loop.zig Agentic loop (prompt → tools → observe → repeat)
│ ├── tools.zig Tool registry + name-based dispatch
│ ├── config.zig Env vars, .env files, multi-backend config
│ ├── history.zig Context window management
│ ├── storage.zig SQLite persistence (WAL mode)
│ ├── scheduler.zig Cron/interval/daily job scheduler
│ ├── rag.zig Pinecone vector search client
│ ├── skills.zig Built-in skill catalog
│ ├── skill_loader.zig Runtime plugin discovery
│ └── export.zig History export
│
├── src/api/ Multi-backend AI clients
│ ├── client.zig (legacy, unused)
│ ├── ollama.zig Ollama local models (NDJSON streaming)
│ ├── deepseek.zig OpenAI-compatible (DeepSeek, Qwen, GPT, Gemini)
│ ├── protocol.zig Message wire types
│ ├── sse.zig Server-Sent Events parser
│ ├── openai_sse.zig OpenAI SSE parser
│ └── ndjson.zig Newline-delimited JSON parser
│
├── src/tools/ Tool implementations
│ ├── bash.zig Shell execution (safety checks)
│ ├── file.zig Read / write / edit
│ ├── glob.zig Recursive file search
│ ├── grep.zig Content search (regex)
│ ├── http.zig HTTP client (libcurl)
│ ├── search.zig DuckDuckGo web search
│ ├── camera.zig Camera + OAK-D + screenshots
│ ├── image_io.zig BMP I/O + format bridge
│ ├── browser.zig Chrome DevTools Protocol
│ ├── tailscale.zig Tailscale mesh VPN queries
│ └── canvas.zig A2UI canvas tool
│
├── src/canvas/
│ └── tui.zig Terminal A2UI renderer (ANSI box-drawing)
│
├── src/menubar/
│ └── bridge.zig macOS menu bar sidecar IPC bridge
│
├── src/mcp/ Model Context Protocol
│ ├── client.zig MCP client manager
│ ├── server.zig MCP server (JSON-RPC 2.0)
│ ├── protocol.zig MCP types
│ └── json_rpc.zig JSON-RPC 2.0 protocol
│
├── src/chat/bridge.zig Chat platform bridge (JSON lines IPC)
├── src/web/ Web UI (--web), compiled into the binary
│ ├── server.zig HTTP + WebSocket server, token check
│ ├── bridge.zig Page messages <-> the agent loop
│ └── index.html, app.js The page
│
├── prebuilt/ Prebuilt executables (committed to repo)
│ ├── wintermolt-macos macOS Apple Silicon
│ ├── wintermolt-linux-arm64 Linux ARM64 (Jetson, Pi 5)
│ ├── wintermolt-linux-x86_64 Linux x86_64
│ └── wintermolt-windows-x86_64.exe Windows x86_64
│
└── menubar/ macOS menu bar Swift sidecar
├── Package.swift Swift package manifest
└── Sources/main.swift NSStatusBar app (~270 lines)
External dependencies: libcurl (HTTPS) + sqlite3 (persistence). That's it. Pre-installed on macOS and most Linux. On Windows, install via MSYS2 UCRT64 (see Prerequisites).
Prebuilt libraries: libforagent.a and libforlearn.a are pure Zig static archives — no Fortran runtime, no gfortran needed. For kernel-accelerated inference and Fortran-backed compute, see Wintermute (proprietary).
IPC pattern: The sidecars (chat, menu bar) communicate via JSON lines over stdin/stdout pipes. The Zig binary spawns the sidecar as a child process. The web UI is the exception: --web serves its page and WebSocket from the binary itself, on loopback by default.
| Variable | Default | Description |
|---|---|---|
WINTERMOLT_OLLAMA_URL |
http://localhost:11434 |
Ollama base URL |
WINTERMOLT_OLLAMA_CTX |
8192 |
Context window cap (prevents OOM on small devices) |
WINTERMOLT_OLLAMA_KEEP_ALIVE |
5m (30m once /listen is used) |
Model unload timer (0 = unload after each response) |
WINTERMOLT_OLLAMA_THINK |
unset (Ollama decides) | 0 turns thinking off for a model that thinks (qwen3, gemma4), which is faster; 1 turns it on, and Ollama refuses it for a model that cannot think |
WINTERMOLT_BACKEND |
ollama |
Backend a run starts on (ollama, claude, openai, deepseek, qwen, gemini, kernel, forai); a backend that cannot be built exits 1. /model and wintermolt.json routing also choose one — see docs/BACKENDS.md |
WINTERMOLT_MODEL |
qwen3:0.6b |
Default model |
OPENAI_API_KEY |
— | OpenAI API key (GPT-4o, GPT-4.1) |
WINTERMOLT_OPENAI_URL |
https://api.openai.com/v1/chat/completions |
OpenAI-compatible Chat Completions URL — point it at LiteLLM, vLLM, llama.cpp server, OpenRouter |
DEEPSEEK_API_KEY |
— | DeepSeek API key (V3, R1) |
QWEN_API_KEY |
— | Qwen API key (Qwen 2.5+) |
GOOGLE_GEMINI_API_KEY |
— | Google Gemini API key |
| Variable | Default | Description |
|---|---|---|
WINTERMOLT_TOKENS |
8192 |
Max output tokens |
WINTERMOLT_NO_HISTORY |
— | Set 1 to disable SQLite persistence |
WINTERMOLT_NO_FALLBACK |
— | Set 1 so a failed request fails, instead of being answered by Ollama or OpenAI; -e then exits 1 |
WINTERMOLT_NO_TOOLS |
— | Set 1 to send no tool definitions, for models without function calling |
WINTERMOLT_MAX_ITERATIONS |
25 |
Model requests one turn may make before the agent stops; raise it for long multi-step tasks |
WINTERMOLT_BASH_APPROVAL |
off |
ask: every shell command waits for your yes first (see docs/TOOLS.md) |
WINTERMOLT_CHAT_APPROVERS |
— | Who may answer /approve from chat (platform:id,...); unset, --chat refuses every command it would ask about |
WINTERMOLT_STALL_TIMEOUT |
180 |
Seconds a model request may receive nothing before it is dropped; a stream that keeps arriving is never cut off (0 = never) |
WINTERMOLT_WORKSPACE_DIR |
~/.wintermolt/workspace |
Where AGENTS.md, SOUL.md, USER.md, IDENTITY.md and MEMORY.md are read from, every turn (see Persistent Memory) |
WINTERMOLT_WEB_PORT |
3000 |
--web port (PORT wins when both are set) |
WINTERMOLT_WEB_HOST |
127.0.0.1 |
--web listen address; anything but loopback is reachable from other machines over plain HTTP |
WINTERMOLT_WEB_TOKEN |
random each start | Fixed --web token (16+ characters), so a bookmarked link keeps working |
WINTERMOLT_GATEWAY_PORT |
8080 |
--gateway port |
WINTERMOLT_GATEWAY_HOST |
127.0.0.1 |
--gateway listen address; anything but loopback is reachable from other machines over plain HTTP |
WINTERMOLT_GATEWAY_KEY |
random each start | Fixed --gateway API key (16+ characters), so clients keep working across restarts |
TAILSCALE_API_KEY |
— | Tailscale REST API key (optional) |
PINECONE_API_KEY |
— | Pinecone API key (enables RAG memory) |
PINECONE_HOST |
— | Pinecone index host URL |
Config file: ~/.wintermolt/.env (created by wintermolt --setup)
Built with Zig.
Copyright The Fantastic Planet — By David Clabaugh
MIT License