---
title: Muse Code CLI 헤드리스 exec와 PilotCut
description: META_API_KEY로 muse exec를 PilotCut 로컬 MCP에 대해 돌려 .pcbundle에서 배치 정리. 승인·샌드박스 플래그와 Meta 문서의 MCP 비샌드박스 경고. BYO만.
url: https://www.pilotcut.com/ko/blog/muse-code-cli-headless-exec-pilotcut
---

# Muse Code CLI 헤드리스 exec와 PilotCut

META\_API\_KEY로 muse exec를 PilotCut 로컬 MCP에 대해 돌려 .pcbundle에서 배치 정리. 승인·샌드박스 플래그와 Meta 문서의 MCP 비샌드박스 경고. BYO만.

2026년 9월 15일 6 min read

## 짧은 요약

대화형 Muse Code는 프로젝트에서 `muse`입니다. 스크립트와 배치 정리에는 Meta가 **헤드리스** 실행을 문서화합니다: 환경에 `META_API_KEY`를 둔 `muse exec "<prompt>"`([auth](https://dev.meta.ai/docs/muse-code/auth), [headless](https://dev.meta.ai/docs/muse-code/extending#headless)).

그 에이전트를 [PilotCut](https://www.pilotcut.com/?utm_source=blog\&utm_medium=cta\&utm_content=muse-code-cli-headless-exec-pilotcut)의 **로컬 MCP**로 가리켜 배치 작업이 실제 `.pcbundle`을 바꾸게 합니다: **수만 시간의 영상 편집 실무로 다듬은 83개 전용 편집 도구**. Muse AI 소비자 작업이 아닙니다.

Muse Code는 계속 **MCP/CLI 경유 BYO**입니다. PilotCut 앱 내 카탈로그 에이전트가 아닙니다. PilotCut의 featured 에이전트는 Claude Code, ChatGPT Codex, Grok Build, GitHub Copilot, OpenCode, Antigravity입니다.

Tip

**베타 동안 무료. 이미 결제 중인 에이전트를 가져오세요.** **수만 시간의 영상 편집 실무로 다듬은 83개 전용 편집 도구.** AI를 위한 가장 빠른 에디터: 수만 시간의 영상 편집 실무로 다듬은 83개 전용 도구로, 에이전트와 당신이 시간과 돈을 덜 낭비합니다. [PilotCut 사용해 보기](https://www.pilotcut.com/?utm_source=blog\&utm_medium=cta\&utm_content=muse-code-cli-headless-exec-pilotcut). 자세한 내용은 [베타 기간 PilotCut 요금](https://www.pilotcut.com/ko/pricing)에서 확인하세요.

## 한 번 설치한 뒤 exec

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

대화형 인증을 한 번(브라우저 또는 API key), 또는 자동화에서는 항상 키를 공급:

```
export META_API_KEY="<your-key>"
```

Meta에 따르면 환경 API key가 저장된 브라우저 세션보다 우선합니다([auth](https://dev.meta.ai/docs/muse-code/auth)).

## 무인 실행 전에 PilotCut MCP 연결

`.pcbundle`을 소유한 PilotCut 편집기 창이 열린 동안 Muse `mcp_servers`(`stdio` 또는 `streamable_http`)에 PilotCut을 선언([MCP](https://dev.meta.ai/docs/muse-code/extending#mcp)).

Warning

**MCP 도구는 샌드박스되지 않습니다**(Meta). 헤드리스 실행에서는 Meta 승인 플래그도 읽으세요: `--disable-approval`은 OS 샌드박스를 유지하되 승인 프롬프트를 건너뛰고, `--yolo`는 승인 **과** 샌드박스를 끄고 워크스페이스를 신뢰합니다. Meta는 일회용 격리 컨테이너의 신뢰할 코드에서만 `--yolo`를 쓰라고 합니다([headless](https://dev.meta.ai/docs/muse-code/extending#headless)).

PilotCut Core Agent 채팅 패널은 `riskTier`로 게이트합니다. 서드파티 MCP 클라이언트로서의 Muse Code는 그 게이트를 **받지 않습니다**. 무음/필러 도구에서 먼저 `confirm:false` 계획을 요구하고, `confirm:true`는 명시적 두 번째 단계로 두는 프롬프트를 선호하세요.

## 헤드리스 형태 예

```
META_API_KEY="$MUSE_KEY" muse exec \
  "On the open PilotCut .pcbundle, run edit-words cutSilences and removeDeadAir with confirm:false only. Print the plan. Do not apply."
```

```
META_API_KEY="$MUSE_KEY" muse exec --json \
  "Apply the reviewed silence plan with confirm:true, then export type=fcpxml to the path I specify."
```

```
muse exec --prompt-file ./pilotcut-batch-task.txt
```

Meta 종료 코드는 **실행이 어떻게 끝났는지**를 반영하며, 편집이 맞는지는 반영하지 않습니다(`0` 턴 완료, `1` 실패/취소, `2` 사용 오류). 실행 후 자체 검사로 게이트([headless](https://dev.meta.ai/docs/muse-code/extending#headless)).

선택: `--max-model-steps`는 걸린 루프를 제한. 후속 턴이 필요하면 `muse exec --session-id <uuid> "Continue."`로 재개.

## 배치 정리가 좋은 용도

- 토킹헤드 테이크 전반에 breath-safe 무음/필러 계획 제안
- 계획의 사람 검토 후 같은 프롬프트 파일 재실행
- 다음이 Final Cut일 때 `export type=fcpxml` 작성

**텍스트-투-비디오가 아닙니다**. **Muse AI가 아닙니다**. 로컬 미디어에서 PilotCut 도구를 호출하는 코딩 에이전트입니다.

## 자격과 가격

Meta는 Muse Code / Model API에서 Muse Spark 1.2를 **expanded global access**로 위치합니다. 인증 시 계정 자격을 확인하세요. 달러는 Meta 라이브 가격 페이지. PilotCut은 베타 동안 무료이며 BYO 에이전트 편집에 편집기 측 크레딧 미터가 없습니다.

AI를 위한 가장 빠른 에디터: 수만 시간의 영상 편집 실무로 다듬은 83개 전용 도구로, 에이전트와 당신이 시간과 돈을 덜 낭비합니다.

## 사실 (확인일 2026-09-15)

| Item            | Value                                                                         |
| --------------- | ----------------------------------------------------------------------------- |
| Headless        | `muse exec "..."`; CI via `META_API_KEY`                                      |
| Approvals       | `--disable-approval` vs `--yolo` (see Meta docs)                              |
| MCP             | Not sandboxed                                                                 |
| PilotCut        | Free during beta; BYO agent; 83 tools; `export type=fcpxml`                   |
| Featured agents | Claude Code, ChatGPT Codex, Grok Build, GitHub Copilot, OpenCode, Antigravity |
| Muse Code       | BYO only, not catalog                                                         |

## 함께 읽기

- [How to use Muse Code with PilotCut MCP](https://www.pilotcut.com/blog/how-to-use-muse-code-with-pilotcut-mcp)
- [How to use Claude Code / ChatGPT Codex MCP/CLI without Resolve Studio](https://www.pilotcut.com/blog/how-to-use-claude-codex-mcp-cli-video-editing-without-resolve-studio)
- [Edit videos with AI agents](https://www.pilotcut.com/blog/edit-videos-with-ai-agents)

## 한줄 정리

`.pcbundle`에서 배치 propose/apply 루프에 `muse exec` + `META_API_KEY`를 쓰고 Meta의 샌드박스·MCP 경고를 지키세요. Muse Code는 featured 카탈로그 목록 밖의 BYO로 남습니다. 컷은 PilotCut 로컬 타임라인에 두세요.

[PilotCut 사용해 보기](https://www.pilotcut.com/?utm_source=blog\&utm_medium=cta\&utm_content=muse-code-cli-headless-exec-pilotcut). 베타 동안 무료. 이미 결제 중인 에이전트를 가져오세요.

## Related articles

[2026년 9월 15일](https://www.pilotcut.com/ko/blog/how-to-use-muse-code-with-pilotcut-mcp)

## [Muse Code를 PilotCut MCP와 쓰는 방법](https://www.pilotcut.com/ko/blog/how-to-use-muse-code-with-pilotcut-mcp)

[Meta Muse Code를 PilotCut 로컬 MCP에 BYO: 베타 동안 무료, 무음 컷은 confirm 프로토콜, breath-safe 스냅, export type=fcpxml. Muse Code는 앱 내 카탈로그 에이전트가 아닙니다.](https://www.pilotcut.com/ko/blog/how-to-use-muse-code-with-pilotcut-mcp)

[7 min read](https://www.pilotcut.com/ko/blog/how-to-use-muse-code-with-pilotcut-mcp)

[2026년 9월 8일](https://www.pilotcut.com/ko/blog/how-to-use-claude-codex-mcp-cli-video-editing-without-resolve-studio)

## [Resolve Studio 없이 Claude / Codex MCP/CLI로 영상 편집하기](https://www.pilotcut.com/ko/blog/how-to-use-claude-codex-mcp-cli-video-editing-without-resolve-studio)

[Resolve 21.1 Claude 또는 ChatGPT Codex MCP 설정을 찾나요? Studio 경로를 짧게——이어서 PilotCut: 터미널 MCP/CLI로 BYO 에이전트, 로컬 Mac 프로젝트, 베타 무료.](https://www.pilotcut.com/ko/blog/how-to-use-claude-codex-mcp-cli-video-editing-without-resolve-studio)

[8 min read](https://www.pilotcut.com/ko/blog/how-to-use-claude-codex-mcp-cli-video-editing-without-resolve-studio)

[2026년 4월 29일](https://www.pilotcut.com/ko/blog/edit-videos-with-ai-agents)

## [AI 에이전트로 비디오 편집하는 방법](https://www.pilotcut.com/ko/blog/edit-videos-with-ai-agents)

[에이전트 지원 비디오 편집에 대한 실용적인 접근법: AI를 구조 및 반복 작업에 사용하고, 최종 단계에서는 인간의 감각을 유지하세요.](https://www.pilotcut.com/ko/blog/edit-videos-with-ai-agents)

[3 min read](https://www.pilotcut.com/ko/blog/edit-videos-with-ai-agents)
