muster ask
Ask the Muster Assistant why a deploy failed, what a log means, or how to fix a hook.
Synopsis
muster ask [flags] [question]
muster ask --server <name> [flags] [question]Description
The assistant can read status, logs, history and hooks on this machine, and propose actions (deploy, rollback, restart, promote/abort, hook edits) that run only after you approve them. With --server it reads a fleet server instead, from any directory; config, hook files and doctor aren't available remotely.
The hosted assistant needs a Fleet Cloud login (muster cloud login). With --provider it runs against your own AI with no login. Keys come from MUSTER_AI_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY or the keychain (muster settings --global ai.api_key set). Logs, config and hook contents are redacted on this machine before anything is sent. Turn it off on this machine with muster settings --global assistant off.
Flags
| Flag | Description |
|---|---|
--provider <p> | Your own AI: anthropic, openai, openai-compatible or ollama (default: the ai.provider setting; muster = hosted). |
--model <name> | Model for --provider (default per provider, or ai.model). |
--base-url <url> | API base URL (required for openai-compatible). |
--server <name> | Ask about a fleet server (see muster fleet list). |
--yes, -y | Consent to sending redacted project data (non-interactive). |
--allow-actions | Without a terminal, approve action tools automatically. |
--read-only | Decline every action tool (only read tools run). |
--json | NDJSON events on stdout. Approvals come from stdin lines {"approve":"<tool_use_id>"} / {"decline":"<id>"}, follow-ups as {"message":"…"}. |
-h, --help | Show help. |
Examples
muster ask "why did api fail?"
muster ask # interactive, uses the last failed deploy
muster ask --server prod-1 "why is web slow?"
muster ask --provider anthropic "why did api fail?" # ANTHROPIC_API_KEY
muster ask --provider openai --model gpt-5-mini # OPENAI_API_KEY
muster ask --provider ollama --model qwen3 # local, offline
muster ask --provider openai-compatible \
--base-url https://openrouter.ai/api/v1 \
--model anthropic/claude-sonnet-5.5 # MUSTER_AI_API_KEY