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
muster cloud login # once per machine
cd my-project
muster ask "why did api fail?" # or just `muster ask` after a failed deployThe 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.
muster settings --global assistant off # turn it off on this machinemuster explain engine and the MCP server are free.Ask about a fleet server
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 --jsonfrom 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.
| Tool | Runs on the server |
|---|---|
muster_status | muster status --json |
muster_logs | muster fleet logs <server> <svc> --tail N |
muster_history | muster history --json [svc] |
muster_hooks_status | muster hooks status --json |
muster_diagnose | Status, last failed event and an 80-line log tail, combined |
muster_deploy | muster deploy [svcs] (dry run is read-only; a real deploy needs approval) |
muster_rollback | muster rollback <svc>, after approval |
muster_restart | muster 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.
| Provider | Key | Default model |
|---|---|---|
anthropic | ANTHROPIC_API_KEY | claude-opus-5-5 |
openai | OPENAI_API_KEY | gpt-5 |
openai-compatible | MUSTER_AI_API_KEY (optional) | none; --model is required |
ollama | none | llama3.1 |
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 plainhttp://except to localhost. --provider musteruses the hosted assistant for one run even whenai.provideris set.