DocsOpen Moon AI
Browse the docs

Moon CLI

Moon AI’s coding agent in your terminal. It reads and edits your project with your account’s models, and masks your secrets before anything is sent.

On this page

Moon CLI is Moon AI’s command-line coding agent. Start it in a project folder and it reads your files, proposes and applies changes, runs commands, and asks for your approval before it acts. It uses the models and the usage limit of your Moon AI account.

Current version: 0.6.1. What changed in each version is in the release notes.

What Moon CLI doesLink to the What Moon CLI does section

  • It works in your project. The agent starts from the folder where you launch it, inside the Git repository that contains it, and never loads configuration located above the repository root.
  • It goes through your account. Same models as on chat.realmoon.ai, same usage limit, shown as a percentage. No prices are displayed.
  • It asks before acting. By default, every file change, every command and every web access waits for your approval. Two other modes reduce these prompts when you decide to.
  • It masks your secrets on your machine. Moon Blur replaces keys, tokens and passwords with placeholders before anything is sent to the model, then puts the real values back in the answers.
  • It protects your session. The sign-in token is stored in the system keychain and is never passed to the agent. Moon CLI only talks to Moon AI: no other model provider, and no session sharing with a third-party service.
  • It is careful with cloned repositories. A repository’s agent configuration (plugins, MCP servers, skills) is only loaded once you approve it.
  • It updates itself. Every update is signed and verified before it is activated.

What you needLink to the What you need section

ItemDetails
A Moon AI accountThe one you use on chat.realmoon.ai.
A plan that includes Moon CLIMoon CLI is included from the Étoile plan up, on the workspace Moon CLI uses. Lune and the Free plan do not include it. See the plans.
A supported systemWindows 10 and 11, macOS (Apple Silicon and Intel), Linux (x64 and ARM, glibc or musl) and WSL. Details in Installation.

Nothing else to install: Moon CLI is a standalone binary.

Get startedLink to the Get started section

Install Moon CLI:

Windows (PowerShell)
irm https://realmoon.ai/install.ps1 | iex
macOS, Linux, WSL
curl -fsSL https://realmoon.ai/install.sh | sh

Open a new terminal, go to your project, then sign in:

Terminal
cd my-project
moon login

moon login opens the “Connect Moon CLI.” page in your browser. Click “Authorize”: the agent starts right away in the current folder. After that, moon is all you need.

Moon CLI and the web chatLink to the Moon CLI and the web chat section

TopicWeb chatMoon CLI
Account and modelsYour account and its catalogThe same account and its models, listed by moon models
Usage limitThe one of the open workspaceThe one of the Moon CLI session’s workspace
WorkspaceChosen in the appSpecific to the Moon CLI session, with no effect on the web
Moon BlurApplied by Moon AIApplied on your machine, with an adjustable mode

In this section

Getting started

Using it

Protection

Reference

See alsoLink to the See also section

Moon AI

Moon AI in action

0:00

Explore

Screenshots of chat.realmoon.ai taken on October 29, 2026, with fictional data.

Moon AI

Your preferences

Visits counted without cookies.

Our server counts visits without cookies or trackers. Your theme and your answer about ad measurement are remembered on this device.

Ad measurement

With your consent, our ad networks’ trackers (Google) measure our ads, from the visit to the sign-up and then to the first subscription and its amount, and may show you our ads. Your answer is valid for 13 months; you can change it here at any time.

No answer saved on this device.

After you decline, no tag is loaded anymore and the site deletes the cookies they had set on realmoon.ai. Those on the ad networks’ own domains are managed with them or in your browser.

The Moon AI app has its own privacy settings.