# 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 by | Meta |
| Command | `muse` |
| Version checked | 1.4.13, in EnvHaven v1.9.0 |
| Documentation | [dev.meta.ai/docs/muse-code](https://dev.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:

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

Windows (PowerShell):

```bash
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:

```bash
muse --yolo
```

No approvals, sandbox kept:

```bash
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](https://envhaven.com/yolo/muse-code).

## 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):

```json
{
  "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](https://envhaven.com/mcp-config) writes the same server for every agent at once.

## Run it from scripts

```bash
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.

- [Muse Code in the browser](https://envhaven.com/agents/muse-code/browser)
- [Muse Code on iPhone](https://envhaven.com/agents/muse-code/iphone)
- [Muse Code on iPad](https://envhaven.com/agents/muse-code/ipad)
- [Muse Code on Android](https://envhaven.com/agents/muse-code/android)
- [Muse Code on a Chromebook](https://envhaven.com/agents/muse-code/chromebook)
- [Muse Code on Windows](https://envhaven.com/agents/muse-code/windows)
- [Muse Code on a VPS](https://envhaven.com/agents/muse-code/vps)
- [Muse Code in Docker](https://envhaven.com/agents/muse-code/docker)
- [Muse Code on a Raspberry Pi](https://envhaven.com/agents/muse-code/raspberry-pi)
- [Muse Code 24/7](https://envhaven.com/agents/muse-code/24-7)

Meta's own options:

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

## Compare Muse Code

- [Muse Code vs OpenClaw](https://envhaven.com/compare/openclaw-vs-muse-code)
- [Muse Code vs Claude Code](https://envhaven.com/compare/muse-code-vs-claude-code)

## When Muse Code misbehaves

- [Is Muse Code down?](https://envhaven.com/status/muse-code) Live status of the providers it depends on.

## Keep reading

- [Muse Code full-access mode](https://envhaven.com/yolo/muse-code)
- [Muse Code in the browser](https://envhaven.com/agents/muse-code/browser)
- [Muse Code on iPhone](https://envhaven.com/agents/muse-code/iphone)
- [Muse Code on iPad](https://envhaven.com/agents/muse-code/ipad)
- [Muse Code vs OpenClaw](https://envhaven.com/compare/openclaw-vs-muse-code)
- [Muse Code vs Claude Code](https://envhaven.com/compare/muse-code-vs-claude-code)

Source: https://envhaven.com/agents/muse-code
