Muster Assistant

Muster Assistant

Ask why a deploy failed and get an explanation and proposed fixes that run only after you approve them. Use the hosted assistant or your own AI.

How it works

The assistant reads status, logs, history and hooks through tools that run on your machine; only their redacted results are sent. The hosted assistant is a Fleet Cloud feature. With --provider the same assistant runs against Anthropic, OpenAI, any OpenAI-compatible API or a local Ollama, without a login.

Quickstart

Terminal
muster cloud login                 # once per machine
cd my-project
muster ask "why did api fail?"     # or just `muster ask` after a failed deploy

The first time in a project, muster asks for consent to send redacted logs and config. The answer is stored per person and machine in .muster/assistant.json (gitignored). In CI, pass --yes.

Approvals

  • Read tools run right away, each shown as a dim line.
  • Action tools show a summary and ask Run this? [y/N]. Without a terminal they are declined unless you pass --allow-actions.
  • Hook edits show a coloured diff and are written only if you approve; that approval also re-approves the hook on this machine.

Privacy and redaction

Before anything is sent, muster replaces secret-looking values, bearer credentials, known token formats, PEM blocks, URL passwords and values from the project's .env with ‹redacted›. Redaction fails closed: if it can't run, nothing is sent.

Terminal
muster settings --global assistant off   # turn it off on this machine
The assistant needs a Fleet Cloud login. Free accounts get a 5-session trial; Pro is $10 a month per workspace for 100 sessions. With your own provider (above) there is no allowance at all. The offline muster explain engine and the MCP server are free.

Ask about a fleet server

Terminal
muster ask --server byricky "why is web slow?"     # from any directory
  • Works outside any project. The server must be in muster mode (muster installed there), over Fleet Cloud or SSH; push-mode servers are refused.
  • Before a session starts, muster fetches muster status --json from the server. If it can't be reached, no session is used.
  • Consent is asked once per server and stored in ~/.muster/assistant/servers.json (0600).
  • Every result still goes through local redaction before it is sent.
ToolRuns on the server
muster_statusmuster status --json
muster_logsmuster fleet logs <server> <svc> --tail N
muster_historymuster history --json [svc]
muster_hooks_statusmuster hooks status --json
muster_diagnoseStatus, last failed event and an 80-line log tail, combined
muster_deploymuster deploy [svcs] (dry run is read-only; a real deploy needs approval)
muster_rollbackmuster rollback <svc>, after approval
muster_restartmuster fleet restart <server> <svc> --yes, after approval

read_config, read_hook, muster_doctor and propose_hook_edit aren't available for remote servers yet. Hooks must already be approved on the server; muster never passes --yes to a remote deploy or rollback.

Bring your own AI

muster ask --provider runs the same assistant against your own provider: the same tools, approvals, redaction, --server mode and --json events. The agent loop runs on your machine, so there's no Fleet Cloud login and no session allowance. You pay your provider directly, or nothing at all with a local model.

ProviderKeyDefault model
anthropicANTHROPIC_API_KEYclaude-opus-5-5
openaiOPENAI_API_KEYgpt-5
openai-compatibleMUSTER_AI_API_KEY (optional)none; --model is required
ollamanonellama3.1
Terminal
muster ask --provider anthropic "why did api fail?"
muster ask --provider openai --model gpt-5-mini
muster ask --provider ollama --model qwen3            # local, nothing leaves the machine

# OpenRouter, LM Studio, vLLM, Groq, llama.cpp server…
muster ask --provider openai-compatible \
  --base-url https://openrouter.ai/api/v1 --model anthropic/claude-sonnet-5.5

# Make it the default
muster settings --global ai.provider anthropic
muster settings --global ai.api_key set               # keychain, prompts without echo
muster settings --global ai.provider off              # back to the hosted assistant
  • Your data goes only to the provider you chose; muster's servers aren't involved. The banner says where it goes.
  • The same fail-closed redaction runs on the context, every tool result and your question.
  • Keys are read from MUSTER_AI_API_KEY, the provider's own variable, or the system keychain. They are never written to settings, passed on a command line or logged, and never sent over plain http:// except to localhost.
  • --provider muster uses the hosted assistant for one run even when ai.provider is set.