Mozg CLI
An agent on the command line: run mozg in your project folder and describe the task in words. For macOS, Linux and Windows. Based on the open-source OpenCode project.
Mozg reads your project, writes and edits code, runs commands and tests — and asks for permission before risky actions. It runs on the models in your Mozg AI subscription: no API keys and no separate payment.
An agent on the command line: run mozg in your project folder and describe the task in words. For macOS, Linux and Windows. Based on the open-source OpenCode project.
The same agent in your editor's sidebar: it sees the open project, proposes edits and applies them with your permission. Based on the open-source Cline project.
Install in your editor →You set the task — the agent figures out the code, makes changes and checks the result.
Studies the structure and code before changing anything: finds the right files and works out how they connect.
Creates new files and edits existing ones — from a single function to changes across several modules.
Builds the project, runs tests and linters, reads the output and fixes whatever failed.
Before risky actions — running commands, editing files — the agent shows what it is about to do and waits for your decision.
The models are the ones included in your plan. Usage is deducted from your subscription allowance just like in chat: no API keys or separate payment needed.
The script downloads the latest release from GitHub, verifies its SHA-256 checksum and installs mozg without administrator rights. The former mori command remains as an alias.
Open a terminal and run:
$ curl -fsSL https://mozg.world/code/install.sh | bashThe script detects your OS and processor (Apple Silicon or Intel, x64 or ARM64), puts mozg in ~/.local/bin (next to mori, the old command name) and checks that it runs. It does not modify your shell profile: if ~/.local/bin is not in PATH, it prints a ready-made command to add it to ~/.zshrc or ~/.bashrc.
Open a new terminal window and check:
$ mozg --versionOpen PowerShell (no administrator rights needed) and run:
> irm https://mozg.world/code/install.ps1 | iexThe script puts mozg.exe (and mori.exe, the old command name) in %LOCALAPPDATA%\mozg\bin and adds that folder to your user PATH. If Mozg was already installed under its former name Mori Code, the script updates it in place, in %LOCALAPPDATA%\mori\bin.
Open a new terminal window and check:
> mozg --versionOpen the latest release on GitHub and download the archive for your system — the end of the name shows the OS and processor: …-darwin-arm64.tar.gz (Mac with Apple Silicon), …-darwin-x64.tar.gz (Mac with Intel), …-linux-x64.tar.gz / …-linux-arm64.tar.gz (Linux), …-windows-x64.zip (Windows). Next to them is SHA256SUMS.txt with the checksums.
Compare the archive's checksum with the line in SHA256SUMS.txt:
$ shasum -a 256 *.tar.gzOn Windows: Get-FileHash .\*.zip.
Unpack the archive and put mozg (mozg.exe on Windows) in a folder that is in PATH, such as ~/.local/bin. In archives of versions before 0.2.0 this file is named mori (mori.exe).
$ xattr -d com.apple.quarantine ./mozg./mori instead of ./mozg. You don't need to do this when installing with the script.The extension is installed from a .vsix file — the same way in all three editors.
The mori-code.vsix file from the latest release.
Open the Extensions panel: Ctrl+Shift+X (on Mac, Cmd+Shift+X).
Click “…” at the top of the panel and choose Install from VSIX….
Select the downloaded mori-code.vsix.
In the folder where you downloaded the file, run your editor's command:
$ code --install-extension mori-code.vsix$ cursor --install-extension mori-code.vsix$ windsurf --install-extension mori-code.vsixOpen the agent panel in the editor sidebar and click the sign-in button.
Mozg AI will open in your browser: sign in to your account and click “Allow”.
If the editor asks whether to open the link, confirm. The panel will switch to the chat with the agent.
$ mozg loginA browser will open at app.mozg.world — confirm the sign-in. On a server without a browser (for example, over SSH), use mozg login --device: the agent will show a code to confirm at app.mozg.world from any device.
$ cd ~/projects/my-app $ mozg
Describe the task in words — for example, “find out why the auth test is failing and fix it”. The agent's terminal interface is currently in English; you can also give tasks in Russian.
$ mozg trustPlugins, MCP servers and other settings stored in the repository itself are not loaded by default: this is someone else's code, and it would run on your computer. Running mozg trust in the project folder allows them for that folder. Only do this for your own repositories and those whose author you trust.
It comes out of your Mozg AI subscription allowance, just like chat messages. There are no separate payments, API keys or bills from model providers. The editor extension does not display amounts. Mozg is available on paid plans; the agent does not work on the free plan.
The agent asks for permission before risky actions — running commands and editing files — and you decide whether to go ahead. Plugins and MCP servers from a repository don't run until you run mozg trust in its folder. Still, keep an eye on what the agent proposes, especially in other people's projects.
Your code and project files are sent to the model provider through Mozg AI servers — and only when you give the agent a task. Without a task from you, the agent sends nothing. Learn more about data processing in our Privacy Policy.
CLI: run the installer again (curl -fsSL https://mozg.world/code/install.sh | bash or irm https://mozg.world/code/install.ps1 | iex) — it installs the latest version over the current one. Extension: download a fresh mori-code.vsix and install it the same way as the first time.
macOS and Linux: mozg logout (for installs made before 0.2.0, mori logout), then rm ~/.local/bin/mozg ~/.local/bin/mori. The agent's data and settings live in mozg folders (for installs made before 0.2.0, mori-code) inside ~/.local/share, ~/.config, ~/.cache and ~/.local/state — you can delete them if you no longer need them. If you added ~/.local/bin to PATH for the agent, remove that line from your shell profile.
Windows: mozg logout (or mori logout), then delete the %LOCALAPPDATA%\mozg folder (or %LOCALAPPDATA%\mori if the agent was installed under its former name) and remove it from your user PATH (Settings → “Edit environment variables for your account”).
Extension: click “Uninstall” on the agent's extension in the Extensions panel, or run code --uninstall-extension mori-ai.mori-code.
No, Mozg is in beta: expect bugs, and things will change. Report problems to support via the Telegram bot @aimorisupportbot.
Yes, through the Mozg AI extension for Chrome (also Edge, Chromium and Yandex Browser; macOS and Linux for now). Run mozg browser install once and click “Allow Mozg Code” in the extension. The agent will open your site on localhost, check the layout, console errors and failed requests, fix the code and check again. Reading pages is allowed, while clicks, typing and navigating to other sites happen only with your permission. Console and network access are available only for pages on your computer.
Black models from Mozg are available starting with the PRO plan