Muse Code

Meta's coding agent for the terminal and CI, built for Meta's Muse models, with approval checks and an operating-system sandbox on by default. Run it in EnvHaven from any browser, signed in once with your own account, and keep it working 24/7; or install it on your own machine.

Updated November 23, 2026 · Checked against Muse Code 1.4.13 in EnvHaven v1.9.0

At a glance
Made byMeta
Commandmuse
Version checked1.4.13, in EnvHaven v1.9.0
Documentationdev.meta.ai/docs/muse-code

Use Muse Code in EnvHaven

  1. Open your workspace in any browser, on a laptop, a tablet or a phone.
  2. Tap Launch, choose Muse Code and tap Sign in: it runs muse login for you in the terminal. For an API key, choose Set key instead and paste META_API_KEY; the workspace keeps it write-only.
  3. Start it with one tap: signed in, Muse Code gets a green dot in the Launch menu and an icon in the workspace’s top bar. Support is built in (1.4.13), so there is nothing to install or update.
  4. Give it a task. The image launches a bare muse with --disable-approval; explicit arguments pass through unchanged, so muse --yolo works too.
  5. Close the tab whenever you like. The workspace is an always-on Linux machine, so Muse Code keeps working, and every device you open it from shows the same session.

Every agent signs in with your own account: EnvHaven never resells tokens or adds a markup.

Install Muse Code on another machine

macOS, Linux:

curl -fsSL https://dev.meta.ai/install.sh | bash

Windows (PowerShell):

irm https://dev.meta.ai/install.ps1 | iex

Sign in from the terminal

In a workspace the Launch menu does this for you. On any other machine, or when you would rather type it:

  • Run muse and sign in in the browser (again later with /login).
  • For CI and non-interactive runs, set META_API_KEY, or store one with muse auth set; an API key always wins over a browser session.
  • Muse Code’s own subscription plans work through the CLI when signed in with a Meta Model API account; other API keys bill pay-as-you-go. Subscriptions start in Contributor mode, in which Meta may train on your content, and the docs say each new machine turns it back on.

Run Muse Code without permission prompts

No approvals and no sandbox, for one run:

muse --yolo

No approvals, sandbox kept:

muse --disable-approval

--yolo drops approval and the sandbox and trusts the workspace, the posture Meta’s docs name for a container that is already isolated. --disable-approval skips prompts but keeps the operating-system sandbox, which on Linux needs a working bubblewrap.

In EnvHaven: The image launches a bare muse with --disable-approval; explicit arguments pass through unchanged, so muse --yolo works too. The details, and when full access is safe, are on the Muse Code full-access page.

Instructions file

Muse Code reads AGENTS.md, CLAUDE.md, .agents/AGENTS.md, .claude/CLAUDE.md.

Add MCP servers

In ~/.config/muse/settings.json (the file needs “schema_version”: 1):

{
  "schema_version": 1,
  "mcp_servers": {
    "my-tools": { "transport": "stdio", "command": "my-mcp-server", "args": [] }
  }
}

muse mcp handles OAuth sign-in to a server. Trusted projects can also use a .mcp.json.

The MCP config converter writes the same server for every agent at once.

Run it from scripts

muse exec "<prompt>"

Headless runs cannot stop to ask, so they need the full-access setting above.

Muse Code away from your desk

Muse Code keeps working only while the machine it runs on is awake. In EnvHaven that machine is the workspace, which never sleeps: start a task, close the laptop and check on it from a phone.

Meta’s own options:

  • A Muse desktop app for macOS and Windows, which can hand conversations to and from the terminal.

Compare Muse Code

When Muse Code misbehaves