Answer

Ask a question, get a cited answer.

marmot answer <query> [flags…]

Providers

brave, exa, tavily.

ProviderHow it works
BraveChained: web/search?summary=1summarizer/search. Requires Brave Pro plan.
ExaSingle /answer call.
TavilyInline via /search with include_answer=advanced.

Flags

FlagDescription
--provider <slug>One of the three. Falls back to defaults.answer.provider.
--api-key <key>Override the env var.
--max-citations <n>Cap citations included (default 8).
--include-searchAlso return the underlying search results alongside the answer.
--rawEmit the provider's native response under raw.
--jsonEmit the structured envelope (default).
--no-cacheBypass the response cache for this call. Skip read and skip write.
--refreshSkip cache read but write the fresh response, overwriting any cached entry.
--retries <n>Retry retryable provider errors up to N times with exponential backoff. Default 0, max 10.
--timeout <seconds>Per-attempt request timeout. Default 120.

Cache flags only apply when caching is enabled for this provider via providers.<slug>.cache.enabled. See Caching.

Presets

answer-mode presets accept query (concat), maxCitations, includeSearch, cache, refresh, output, raw, retries, timeout, session. New negation flags: --cache, --no-include-search, --no-refresh, --no-raw. See Presets — Merge rules.

marmot preset create cited --mode answer --provider tavily \
  --query "Cite reputable sources for" --include-search
marmot @cited "the origins of the marmot"

Config keys

{ "defaults": { "answer": { "provider": "tavily" } } }