Muse Assistant
by joutvhu
README.md
# Muse Assistant
Connect your terminal and AI assistants (Kiro, Claude Code, Cursor, Codex, etc.) directly to your personal **Meta Muse (`muse.ai`)** cloud AI agent — no open browser window required after signing in once.
## What it can do
- **Run tasks and chat from your terminal or AI client:** Send prompts to your personal Muse agent, wait for the reply or run long tasks in the background, and filter out unrelated push notifications.
- **Auto-download generated media & attachments:** Automatically extract and save images, videos, and files returned by Muse into `~/Pictures/muse`, `~/Videos/muse`, `~/Downloads/muse`, or a folder you choose.
- **Manage persistent conversations:** Work in your main chat or separate side chats (`--new-thread`, `--alias`), inspect message history, and rename, pin, archive, unarchive, mark seen, or delete threads.
- **Access your Muse workspace:** Browse your personalized **feed**, tracked **goals**, and **idea cards**, react to feed items, or run an idea card directly in a chat session.
- **Handle permission approvals:** Review pending approval requests raised by Muse and approve or deny them directly from the CLI or your AI client.
- **Check status & wake your VM:** Check whether you are signed in, inspect unread activity, or wake up a sleeping Muse VM on demand.
## Requirements
- **Node.js 22 or newer**
- **Google Chrome** or **Microsoft Edge** (used once for initial sign-in)
- A **Meta Muse (`muse.ai`)** account
## Installation & Quick start
Install `muse-assistant` globally:
```powershell
npm install -g muse-assistant
```
Sign in to your Muse account:
```powershell
muse-assistant auth login
```
1. Sign in to `https://muse.ai/` in the Chrome or Edge window that opens.
2. Once Muse finishes loading, **close that browser window** so your encrypted session cookies can be saved locally.
3. Verify your connection and send your first prompt:
```powershell
muse-assistant status
muse-assistant ask "Summarize today's tasks in three bullet points."
```
If you prefer importing existing cookies from a file (JSON, Netscape `cookies.txt`, or a `Cookie` header):
```powershell
muse-assistant auth import --file cookies.txt
```
## CLI commands
### Account & connection
- `muse-assistant auth login` — sign in via Chrome/Edge and save encrypted session cookies
- `muse-assistant auth import` — import cookies from a file (`--file`), header string (`--cookie`), or stdin
- `muse-assistant auth logout` — clear saved cookies (add `--all` to also remove the browser profile and local aliases)
- `muse-assistant status` — check sign-in state, VM health, session count, and unread count
- `muse-assistant wake` — wake up a sleeping Muse VM
### Chat & threads
- `muse-assistant ask "<prompt>"` — send a prompt and print the reply (supports `-s <idOrAlias>`, `--new-thread`, `--title <name>`, `--alias <name>`, `--no-wait`, `--no-save-media`, `-o <dir>`)
- `muse-assistant chat [-s <idOrAlias>]` — start an interactive multi-turn chat in your terminal
- `muse-assistant threads [--all]` — list side chats (`--all` includes archived chats)
- `muse-assistant history [-s <idOrAlias>] [-l <n>]` — read main chat or side-chat message history
- `muse-assistant session start|rename|pin|unpin|archive|unarchive|seen|delete` — manage side chats
### Feed, goals, ideas & approvals
- `muse-assistant feed [status|react <unitId>]` — view your personalized feed or react to an item
- `muse-assistant goals [show <id>]` — list your goals or view details for one goal
- `muse-assistant ideas [show <id>|exec <id>]` — list idea cards, view details, or run an idea card
- `muse-assistant approvals [decide <id> approve|deny]` — list pending approval requests and approve or deny them
### MCP server
- `muse-assistant mcp` — start the MCP server for AI clients
## Connect an AI client (MCP)
Add `muse-assistant` to your AI client's MCP configuration (for example, Kiro, Claude Code, Cursor, or Codex):
```json
{
"mcpServers": {
"muse-assistant": {
"command": "muse-assistant",
"args": ["mcp"]
}
}
}
```
Once connected, your AI assistant can use Muse's cloud environment and personal workspace — for example, running browser or web tasks in Muse's cloud VM, generating media and saving it locally, reading your feed/goals/ideas, or checking pending approvals. Note that Muse runs in its own cloud VM and cannot directly access files on your computer.
### Available MCP tools
| Tool | What it does |
| --- | --- |
| `muse_status` | Checks sign-in state, VM availability/health, session count, and unread count |
| `muse_wake` | Wakes up your Muse VM when it is sleeping or temporarily unavailable |
| `muse_sessions` | Lists side chats, reads conversation history, or checks pending approval requests |
| `muse_chat` | Sends prompts to your main chat or a side chat, optionally creates a new thread, and downloads returned media |
| `muse_feed` | Reads your personalized feed, goals, or idea cards |
| `muse_manage_session` | Creates, renames, pins, archives, or marks side chats as seen; approves/denies requests; runs idea cards |
| `muse_delete_session` | Permanently deletes a side chat (requires confirmation) |
## Configuration (Environment variables)
All settings are optional:
| Variable | Default | Purpose |
| --- | --- | --- |
| `MUSE_ASSISTANT_HOME` | `%LOCALAPPDATA%\muse-assistant` (Windows) / `~/.local/share/muse-assistant` | Folder where encrypted cookies, settings, and local thread aliases are stored |
| `MUSE_IMAGES_DIR` | `~/Pictures/muse` | Default folder for downloaded images |
| `MUSE_VIDEOS_DIR` | `~/Videos/muse` | Default folder for downloaded videos |
| `MUSE_DOWNLOADS_DIR` | `~/Downloads/muse` | Default folder for other downloaded files |
| `MUSE_NO_BROWSER_REFRESH` | Unset | Set to `1` to disable automatic background cookie refresh |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues