Install and update#
Everything Get started skips: platforms, manual downloads, running as a service, updates, the app builds and uninstalling.
What you need#
- Linux
amd64/arm64, WSL2, an Apple Silicon Mac, or Windows 10 (version 1809 or later) or 11 on x64 (beta) curl,tar, andsha256sum(Linux) orshasum(macOS); on Windows, PowerShell- At least one agent CLI on
PATHand already signed in:claude,codex,grok,pi,agy(Antigravity) oropencode(OpenCode 2;mewla doctornames the upgrade command when it finds OpenCode 1). One is enough. On Linux and macOS,mewlaoffers Claude Code and Codex when none is ready; on Windows, install one yourself.mewlaasks which one Brain uses when several are ready.
Install the daemon#
If you already use the Mac CLI, keep your installation and open a paired phone when you switch to Mewla for Mac. Use version 0.4.24 or later.
On an Apple Silicon Mac, Mewla for Mac is the app and the daemon in one download, with no terminal step. Everywhere else, and on a Mac you reach only through a terminal:
curl -fsSL https://mewla.ai/install.sh | sh
https://mewla.ai/install.sh serves the same file as
https://raw.githubusercontent.com/daoleno/mewla/main/install.sh, which keeps working.
The installer follows GitHub's releases/latest redirect to the newest stable
release (no GitHub API call, so API rate limits don't apply), downloads the
archive for your platform and its SHA256SUMS, verifies the checksum, and
installs mewla into a user-owned directory on your PATH (or
~/.local/bin) without sudo. Mewla sends anonymous usage counts unless you
turn them off: --no-telemetry here (MEWLA_NO_TELEMETRY=1 for install.ps1)
turns them off before Mewla first starts; see
Usage counts.
The last line is the command that starts Mewla: mewla, or its full path
when the current shell cannot find it yet. New terminals find mewla once the
installer has added its directory to your shell profile.
If mewla is already installed, install.sh runs mewla update instead,
unless you set MEWLA_VERSION or MEWLA_INSTALL_DIR.
Options, set as environment variables on sh:
| Variable | Effect |
|---|---|
MEWLA_VERSION=v0.4.50 |
Install this exact release tag, beta included, instead of the newest stable |
MEWLA_INSTALL_DIR="$HOME/bin" |
Install into this user-owned directory |
MEWLA_NO_PATH_UPDATE=1 |
Do not add the install directory to your shell profile |
MEWLA_DRY_RUN=1 |
Print the platform, version and destination; change nothing |
curl -fsSL https://mewla.ai/install.sh | MEWLA_INSTALL_DIR="$HOME/bin" sh
Windows#
In PowerShell, as yourself (not as Administrator):
irm https://mewla.ai/install.ps1 | iex
Windows PowerShell (built into Windows 10 and 11) and PowerShell 7 both work; PowerShell is the one Windows shell Mewla's instructions use.
It finds the newest stable release the same way, verifies
mewla-windows-amd64.zip against SHA256SUMS, and installs mewla.exe into
%LOCALAPPDATA%\Programs\Mewla. It adds that folder to your user PATH, then
runs mewla boot install: Mewla starts now and each time
you log in. Nothing needs administrator rights. Running it again installs over
the existing copy, even while Mewla is running, but the running Mewla keeps its
old version until it restarts; the next mewla command you type restarts it.
It waits a few seconds for a program holding mewla.exe (an antivirus scan);
if the new copy still cannot take its place, or does not run there, the
installed one is put back exactly as it was and the installer says why.
To update, use mewla update.
Install an agent the same way, in PowerShell, with its own installer:
irm https://claude.ai/install.ps1 | iex for Claude Code,
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
for Codex. Then run it once in a new PowerShell window to sign in and finish
its first-run questions. Claude Code's installer does not add
%USERPROFILE%\.local\bin to your PATH; Mewla finds claude.exe there
anyway, also when you install it after Mewla, and in your own terminal you can run it as
& "$env:USERPROFILE\.local\bin\claude.exe". A Claude Code that never ran
opens on a theme picker and a security note; Mewla answers both for Brain and
for Sessions it delivers a message to (the highlighted theme; /theme changes
it). Its other first-run screens show in the Session's Chat as a card you
answer there, on the phone too: how to sign in (the card opens the sign-in page
and takes the code it gives you), Codex's sign-in, and whether you trust a
folder.
Mewla starts once at login, but each new Session gets your environment as it
is now, as a new PowerShell window does: an agent installed, a PATH entry or
a variable such as HTTPS_PROXY set with setx or System Properties after
Mewla started reaches the next Session without logging in again. A Shell
Session runs PowerShell 7 (pwsh) when it is installed, from the Microsoft
Store too, and Windows PowerShell otherwise. Installed from an Administrator PowerShell, which starts in
C:\Windows\System32, Sessions still start in your home folder.
An agent installed with npm or pnpm (npm i -g @anthropic-ai/claude-code
puts a claude.cmd in %APPDATA%\npm) works like the official installer's:
Mewla starts the program the .cmd names, so Brain's and Workers' launch
options reach it as written. Another kind of .cmd or .bat runs through
cmd.exe, which cannot be given an argument holding % or "; such a
launch stops with an error that names the file.
Windows is in beta. Tell us how it went, good or bad:
open an issue with your Windows version and the
output of mewla version and mewla doctor.
irm | iex takes no arguments, so options are environment variables set
before it:
| Variable | Effect |
|---|---|
MEWLA_VERSION=vX.Y.Z |
Install this exact release tag (-beta.N too) |
MEWLA_INSTALL_DIR=<path> |
Install into this folder (not a system folder) |
MEWLA_NO_PATH_UPDATE=1 |
Do not change your user PATH |
MEWLA_NO_START=1 |
Do not start Mewla or register it to start at login |
MEWLA_DRY_RUN=1 |
Print the plan; change nothing |
MEWLA_INSTALL_FROM=<folder> |
Use mewla-windows-amd64.zip and SHA256SUMS from this folder instead of downloading |
$env:MEWLA_NO_START = '1'; irm https://mewla.ai/install.ps1 | iex
Manual download#
Download the archive for your host and SHA256SUMS from the
GitHub Releases, then verify and install:
# Linux (use mewla-linux-arm64.tar.gz on ARM)
grep 'mewla-linux-amd64.tar.gz$' SHA256SUMS | sha256sum -c -
tar -xzf mewla-linux-amd64.tar.gz
# macOS
grep 'mewla-darwin-arm64.tar.gz$' SHA256SUMS | shasum -a 256 -c -
tar -xzf mewla-darwin-arm64.tar.gz
mkdir -p ~/.local/bin
install -m 755 mewla ~/.local/bin/mewla
~/.local/bin/mewla doctor
On Windows, compare the hash with the mewla-windows-amd64.zip line of
SHA256SUMS, then unpack mewla.exe into a folder on your PATH:
(Get-FileHash mewla-windows-amd64.zip -Algorithm SHA256).Hash.ToLower()
If macOS blocks the binary,
confirm it came from an official Mewla release, then run
xattr -d com.apple.quarantine ~/.local/bin/mewla.
Set up a computer over SSH#
For a Linux box or Mac mini you reach only through a terminal, one command installs Mewla, keeps it running and pairs your phone, with no browser on that computer and nothing to copy between devices:
curl -fsSL https://mewla.ai/install.sh | sh -s -- --remote
After the usual install it runs mewla setup remote, which you can also run
yourself any time:
- Sign in. It prints an address and a short code. Open the address on your phone or any device, enter the code and sign in. No port is opened on the computer and nothing is pasted back.
- Run in the background. It starts Mewla as a user service that starts
with the computer (
mewla boot install). Where there is no service manager, such as a container, it starts Mewla detached from your SSH session and says that it will not survive a restart. - Pair your phone. It draws the QR code and prints the same link to paste into the app (on the welcome screen, or the computer page's Pair a computer).
- Wait. It waits up to 15 minutes, until the code expires, for the phone, then says so.
If no agent CLI is signed in on that computer yet, it ends by naming the step:
mewla deps. Brain cannot answer until one is.
It is safe to run again: a computer already signed in skips step 1, and a
running Mewla is left alone. With -lan it skips the sign-in and pairs over
the computer's Wi-Fi/LAN (plain HTTP, trusted networks only). -no-wait
returns after printing the code, and -address https://… pairs through an
address you set up yourself. The installer never reads the terminal, so it
works from a script. An older release without setup remote falls back to the
usual "Next, start Mewla" line.
Supported platforms#
| Host | Archive | Status |
|---|---|---|
Linux amd64 / x86_64 |
mewla-linux-amd64.tar.gz |
Supported |
Linux arm64 / aarch64 |
mewla-linux-arm64.tar.gz |
Supported |
| WSL2 on either architecture | The matching Linux archive | Supported |
| Apple Silicon macOS, the app | Mewla-macos-arm64.dmg (Mewla for Mac) |
Supported, since 0.4.23 |
| Apple Silicon macOS, the CLI | mewla-darwin-arm64.tar.gz |
Supported |
| Windows 10 (1809 or later) and 11, x64 | mewla-windows-amd64.zip |
Beta, since 0.3.0 |
| Windows on ARM | None | Not supported |
| Intel macOS | None | Not supported |
Both installers stop on an unsupported platform before downloading anything.
On Windows, use install.ps1; install.sh is for Linux, WSL2 and macOS.
Check the host#
mewla doctor # platform, state directory, listen port, agent CLIs
mewla doctor --json
mewla doctor exits nonzero when the host is not ready and says why. It never
installs packages or prints credentials.
To write an executor configuration interactively, run mewla setup. See
Agents and models.
Update#
mewla update --check # is there a newer release?
mewla update # verify and install it
mewla update finds the newest stable release the way the install script
does, from GitHub's releases/latest redirect, so it needs no GitHub API call
and API rate limits don't apply. Betas are not offered; install one with
MEWLA_VERSION. It checks the release's signed manifest and the archive
checksum before it replaces the binary, then restarts the running Mewla onto
it: through the logon task on Windows, on macOS by replacing Mewla.app and
restarting its service, and on Linux in place (below), under the systemd user
service too, keeping your address, directories and PATH. Your Sessions and
agents keep running: they live in the session host, not in the daemon.
A restart never cuts an agent's model reply. Agents reach their model through
Mewla, so before it restarts, Mewla lets every reply in progress finish (for up
to five minutes) while it keeps running, and keeps its model listeners open
across the restart: a request an agent makes meanwhile waits for the new Mewla
instead of failing, and a mewla command waits too instead of saying Mewla is
not running. Ctrl+C during that wait stops Mewla at once. A plain stop (Ctrl+C,
systemctl --user stop) waits up to 15 seconds for replies. On Windows the
listeners close for the few seconds a restart takes, and agents retry.
A Mewla you started yourself, in a terminal or detached, restarts itself in
place: it checks that the new binary runs as the new version, shuts down as it
does for Ctrl+C, and runs the new binary with the same arguments, environment
and directory. On Linux and macOS it keeps its PID and its terminal, so its
output stays in that window and Ctrl+C still stops it. Windows cannot replace
a running program, so the new version runs in the same console as a child of
the old process, which waits for it and exits with it. If the restart cannot
happen, mewla update says why; the update stays installed. A Mewla from
0.4.9 or earlier cannot restart itself, and mewla update says so: stop it
once with Ctrl+C and run mewla again. If Mewla is still on an older version for any other reason (installed
over, or updated by an older mewla update), the next command you type
(mewla, mewla web, mewla pair and the others that talk to it) restarts it
first. Run outside a terminal (from a script, or over SSH without one), that
command only says so. mewla restart restarts it at any time.
Automatic updates#
A released mewla on Linux and Windows, and Mewla for Mac
as a whole app, checks every hour, downloads a newer stable release, and
installs it without waiting for Workers or Brain to finish: they keep running
in the session host while Mewla restarts, and an agent's model request made
during the restart is retried until Mewla answers again. It waits only for a
moment when the restart cuts nothing Mewla itself carries. A permission
question an agent is waiting on, a message being typed into Brain, a Screen or
display view open on a device, and an agent using the computer's screen are
waited for as long as they last; a model reply passing through Mewla at most
an hour, after which it is let finish as on any restart. While it waits,
Brain's Chat says so, Update to 0.4.40 waiting for a Screen view, with
Update now.
Mewla 0.4.14 and older install only once no Worker is running, so a computer
that is always busy stays on its version; with an app from 0.4.15 on, Brain's
Chat shows Update to … waiting for Workers to finish with Update now, which
installs it at once. When a newer
release exists, the cat on home carries a small ink dot and the computer page
(tap the cat) shows an update row with Update, which does the same right
away; once you have seen that row, the cat's dot goes until the next release.
The computer's details show the version it runs. When the app and the computer no longer fit together,
Needs fixing reads Update required with Update, and the cat
carries the red dot instead.
On Windows, the updated daemon checks Git repositories and agent sign-in status in the background without opening a terminal window or taking keyboard focus. You can keep typing in an open Session while these checks run.
An update never leaves the computer without a working Mewla. The running
process shuts down, then starts the new binary itself and replaces the
installed one only after the new daemon answers on its health endpoint as the
new version. If it exits, hangs or never answers, the old process kills it, puts
the databases back and starts the old version again; that version is not tried
again. The previous binary stays next to the installed one as mewla.prev.
A power cut in the middle leaves the old binary in place, and the next start
puts the databases back. Mewla for Mac keeps the previous app beside the new
one until the new daemon answers, and puts it back if it does not
(Mewla for Mac).
What's new after an update#
After Mewla changes version, on the computer (an automatic update too) or in the app, the first quiet moment on Brain home (nothing typed, nothing open, nothing asking for you) brings up a sheet of what is new: one to three pages, each the feature in use with Try it, which opens it. It shows once: seen on the phone, it does not show again on the web, and several missed releases share one sheet. A release with fixes only brings no sheet. Every update also leaves a line in Brain's chat, Updated to 0.4.9 · What's new, which opens its notes; Settings › About › What's new opens the latest ones any time. A new install starts quiet: what came before it is not news.
Terminals after an update#
Agents survive an update because their terminals live in the session host, which keeps running across every Mewla update and so keeps its own version. Most releases leave it alone. When a release needs a newer session host, Mewla restarts it on its own the first time that ends nothing: no Worker or terminal of yours open, and Brain between turns. Brain comes back in the same conversation. Until then Brain's Chat shows Restart terminals to finish updating with how many terminals it would end, and Restart does it now.
Development builds, betas and the macOS CLI do not update themselves; Mewla
for Mac updates from its app (Updates). MEWLA_NO_AUTOUPDATE=1 turns a CLI daemon's automatic updates off. Updating from
a version that predates this (0.2.87 and older) is still the manual
mewla update.
Keep it running#
mewla is the whole runtime. Run it in a terminal, or let
Mewla start it for you: a user service on Linux with systemd, a LaunchAgent on
macOS, a scheduled task for your user on Windows.
mewla boot install # this binary, default state and address
mewla boot install -lan # same, listening on the private network
mewla boot install -dry-run # print the service without installing it
mewla boot status
mewla boot uninstall
On Windows each person who uses the computer gets their own Mewla: the task is
called "Mewla (your user name)". When another person's Mewla already listens on
127.0.0.1:9876, yours starts on the next free port, and mewla boot install
prints the address it uses.
On Linux and macOS, the first mewla asks Start Mewla automatically when
this computer starts? after the connect choice and runs mewla boot install
(with -lan if you chose the same Wi-Fi) when you press Enter. Without systemd
user services, as in many containers and WSL setups, it says so and keeps
running in the terminal. On Windows the installer runs mewla boot install
itself.
mewla boot install refuses to run as root and refuses to start a second daemon
on a state directory that is already in use; stop the running mewla first.
Restarting the service never stops your Sessions or agents.
When the computer runs out of memory, Mewla is the last thing to go and comes back by itself:
- Linux: the service restarts after any failure (5 seconds), and its unit
has
OOMPolicy=continue, so the kernel's out-of-memory kill of one process Mewla started (a browser, a display) no longer stops Mewla with it. A unit an earlier version installed gets that line by itself: when Mewla starts (after every update too) it rewrites its own unit and reloads systemd, without restarting. A unit you edited by hand is left as it is and the daemon log says what it would add;mewla boot installwrites the current one (and replaces your edits). Settings of your own belong in a drop-in (systemctl --user edit mewla), which Mewla never touches. Amewlarun in a terminal or tmux pane moves itself into a systemd scope of its own that keeps going the same way. Mewla lowers its ownoom_score_adjas far as the kernel allows an unprivileged process (the value its login session started with, usually 0) and puts what it starts 200 above it, so the kernel picks those first. - macOS: launchd starts Mewla again after any exit.
A Mewla that comes back after it was killed tells Brain once: when it was down, why if the system says (an out-of-memory kill), and which Workers resumed by themselves and which did not. A Worker whose model call was refused while Mewla was away is continued automatically once Mewla answers again.
- Linux: to start it before you log in, enable lingering with
loginctl enable-linger(the command tells you when this is needed). - macOS: it starts when you log in and runs in your login session, the one
that owns the screen and the privacy permissions. After a restart, log in
once for Mewla to start. Output goes to
~/.mewla/logs/launchd.log, readable only by you. A service never writes a pairing code there; runmewla pairto show one. The service runs a copy of the binary in~/Applications/Mewla.app, so System Settings and permission prompts show Mewla's name and icon. The command you type stays where you installed it.
mewla boot install signs Mewla.app with a code-signing identity that it
creates on this Mac the first time, so you grant Screen Recording and
Accessibility once and they stay granted after updates. No Apple account
is involved, and nothing asks you anything. The private key never leaves
this Mac: it lives in its own keychain,
~/Library/Keychains/mewla-signing.keychain-db, with a random password in
~/Library/Application Support/Mewla/signing/. mewla boot status shows
how Mewla.app is signed. If the identity can't be used, Mewla signs ad hoc
instead, and macOS asks for the permissions again after each update.
- Windows: a Task Scheduler task named Mewla for your user only, which
starts Mewla when you log in, with no window and no administrator rights.
Installed over SSH with nobody logged in at the desktop, Mewla starts now,
the way the task starts it, and the task takes over from your next login;
mewla update and mewla restart restart it over SSH too. Output goes to
logs\daemon.log in the state directory.
Do not run the daemon as root.
Defaults#
| Setting | Value |
|---|---|
| Listen address | 127.0.0.1:9876 (mewla --lan uses 0.0.0.0:9876) |
| State directory | ~/.mewla (on Windows, %USERPROFILE%\.mewla) |
| Executor configuration | ~/.mewla/executors.toml (optional) |
| Brain workspace | ~/.mewla/brain |
To use another state directory, pass the same -state-dir to every command:
mewla -state-dir /path/to/state
mewla pair -state-dir /path/to/state
Install the app#
Android#
Download mewla-android-arm64-v<version>.apk and SHA256SUMS from the
GitHub Releases and verify the APK:
sha256sum -c SHA256SUMS --ignore-missing
The APK supports 64-bit ARM phones (arm64-v8a) only. Android asks you to
allow installs from your browser or file manager, and Play Protect may warn
because Mewla is not on the Play Store. The official signing certificate's SHA-256
fingerprint is:
C2:FC:5B:09:B3:86:92:EE:70:59:71:1F:E7:ED:B8:79:
4C:E3:65:FE:1C:7A:06:AB:95:4E:5D:D1:BD:CD:A4:FD
Update the app#
Mewla looks for a newer release on its own, at launch and when you come back to it (at most every six hours). Settings › About shows the version and an update row under it: Check for updates says Up to date and checks again when you tap it, and offers Retry if it can't reach GitHub. When a newer release exists, the cat on home carries a small ink dot; tap the cat and Settings opens with the update first: Update available, the version and an Update button. Once you have seen that row the cat's dot goes until the next release, and the computer page's Settings row keeps a small dot until the update is installed.
Tap Update to download the APK, with progress in the row. Mewla checks the release's signed manifest and the APK's SHA-256, then opens the Android installer. The first time, Android asks you to let Mewla install apps: the row reads Allow app installs with Continue. Allow it, come back, and the installer opens. If you close the installer, the row offers Install again; if a download fails, it offers Retry.
Only the GitHub APK updates itself. A Play Store build (-Pmewla.channel=play)
leaves updates to the store and shows the version only.
iOS#
Install Mewla Preview from TestFlight: open the link on your iPhone, install Apple's TestFlight app if asked, then tap Accept and Install. TestFlight delivers new builds once Apple's beta review passes. When a newer build is in TestFlight, the row at the top of Settings reads Update available, and Update opens it in TestFlight; the cat and the computer page's Settings row carry the same dot as on Android.
You can also build the app from source on an Apple Silicon Mac.
Build the iOS app from source#
You need full Xcode, an iOS Simulator runtime or a signed device target, xcodegen, and network access for the first native build. Installing on a physical iPhone also needs an Apple development team.
Clone the source, then from the repository root:
git clone https://github.com/daoleno/mewla.git && cd mewla
./scripts/build-libghostty-ios.sh # builds the pinned terminal library
./scripts/verify-libghostty-ios.sh
client/scripts/fetch-nsh.sh --ios # NSH and its iOS framework
client/scripts/ios-project.sh # generates client/ios/Mewla.xcodeproj
open client/ios/Mewla.xcodeproj
Build and run the Mewla scheme from Xcode. The app asks for local-network access (to reach your daemon) and camera access (to scan pairing codes and to take a photo you attach).
Web UI#
The daemon also serves the app as a web page for a browser on the same computer or behind HTTPS. See In a browser.
Build the daemon from source#
With the Go version named in daemon/go.mod and Bun installed, from the
repository root:
bun install
bun run daemon:build # writes bin/mewla
./bin/mewla doctor
A source build serves a placeholder instead of the web UI unless you first run
bun run web:build.
Uninstall#
- Run
mewla boot uninstallif you installed the service, and stopmewla. It gives Codex and Claude Code back the settings they had before Mewla's gateway. On macOS this also removes~/Applications/Mewla.app. It keeps the signing identity, so a later install keeps your permissions. To remove the identity too, runsecurity delete-keychain ~/Library/Keychains/mewla-signing.keychain-dbandrm -r ~/Library/Application\ Support/Mewla/signing, then remove Mewla from Screen & System Audio Recording and Accessibility in System Settings → Privacy & Security. - Delete the binary (
command -v mewlashows where it is). - Optionally delete
~/.mewla. It holds the daemon's identity, paired devices, Work and Brain data; deleting it unpairs every phone.
On Windows:
- Run
mewla boot uninstall. It stops Mewla, removes the scheduled task and gives Codex and Claude Code back the settings they had before Mewla's gateway. Your Sessions keep running in the session host until you sign out or restart, and Windows can't deletemewla.exewhile they do. - After signing out or restarting, delete
%LOCALAPPDATA%\Programs\Mewlaand remove that folder from your userPATH. - Optionally delete
%USERPROFILE%\.mewla.