MOZG FOR CODE beta

An AI agent for code

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.

Terminal

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.

Install in the terminal →
VS Code · Cursor · Windsurf

Mozg for your editor

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 →
01 — WHAT IT DOES
Works
with your project

You set the task — the agent figures out the code, makes changes and checks the result.

01

Reads the project

Studies the structure and code before changing anything: finds the right files and works out how they connect.

02

Writes and edits code

Creates new files and edits existing ones — from a single function to changes across several modules.

03

Runs commands and tests

Builds the project, runs tests and linters, reads the output and fixes whatever failed.

04

Asks for permission

Before risky actions — running commands, editing files — the agent shows what it is about to do and waits for your decision.

05

Runs on your Mozg AI subscription

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.

02 — TERMINAL INSTALL
Mozg CLI —
one command

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.

macOS · Linux

Using the terminal

  1. Open a terminal and run:

    $ curl -fsSL https://mozg.world/code/install.sh | bash
  2. The 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.

  3. Open a new terminal window and check:

    $ mozg --version
Windows

Using PowerShell

  1. Open PowerShell (no administrator rights needed) and run:

    > irm https://mozg.world/code/install.ps1 | iex
  2. The 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.

  3. Open a new terminal window and check:

    > mozg --version
Without the script

Download manually

  1. Open 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.

  2. Compare the archive's checksum with the line in SHA256SUMS.txt:

    $ shasum -a 256 *.tar.gz

    On Windows: Get-FileHash .\*.zip.

  3. 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).

macOS: if the system won't let you run a manually downloaded file (Gatekeeper warns that it can't verify the developer), remove its quarantine flag in the folder where it is located:
$ xattr -d com.apple.quarantine ./mozg
For a file from an archive of a version before 0.2.0, use ./mori instead of ./mozg. You don't need to do this when installing with the script.
03 — EDITOR INSTALL
VS Code · Cursor
· Windsurf

The extension is installed from a .vsix file — the same way in all three editors.

Step 1

Download the extension

The mori-code.vsix file from the latest release.

Download mori-code.vsix
Step 2 · via the UI

Install from VSIX

  1. Open the Extensions panel: Ctrl+Shift+X (on Mac, Cmd+Shift+X).

  2. Click “…” at the top of the panel and choose Install from VSIX….

  3. Select the downloaded mori-code.vsix.

Step 2 · or with a command

From the terminal

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.vsix
Step 3

Sign in to Mozg AI

  1. Open the agent panel in the editor sidebar and click the sign-in button.

  2. Mozg AI will open in your browser: sign in to your account and click “Allow”.

  3. If the editor asks whether to open the link, confirm. The panel will switch to the chat with the agent.

04 — FIRST RUN
Sign-in and your first
task in the terminal
Step 1

Sign in

$ mozg login

A 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.

Step 2

Run it in your project

$ 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.

Step 3 · only for projects you trust

Allow project settings

$ mozg trust

Plugins, 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.

05 — REQUIREMENTS
What you need
Subscription
  • A paid Mozg AI plan — Start or higher
  • Mozg for code is not available on the free plan
  • Subscribe in your Mozg AI account
Terminal (CLI)
  • macOS — Apple Silicon or Intel
  • glibc-based Linux — x64 or ARM64 (Alpine and other musl-based distributions are not supported yet)
  • Windows — x64; on Windows 11 for ARM, the x64 build is installed and runs under emulation
  • Linux and Windows builds are in beta
Editor
  • VS Code 1.101 or later
  • Cursor or Windsurf
  • Internet access
06 — FAQ
Frequently asked
questions
01

How is Mozg paid for?

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.

02

Is it safe to give the agent access to my project?

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.

03

Where does my code go?

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.

04

How do I update?

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.

05

How do I uninstall?

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.

06

Is this a finished product?

No, Mozg is in beta: expect bugs, and things will change. Report problems to support via the Telegram bot @aimorisupportbot.

07

Can the agent check a website in the browser by itself?

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.

Give the agent a task

Black models from Mozg are available starting with the PRO plan