Skip to main content
The invoke command is the primary way to make authenticated API calls through aivault. The broker validates the request, injects auth, and returns the response — the caller never sees the secret.

invoke

Execute a proxied request and print the raw upstream response.
This is a top-level shortcut for aivault capability invoke.

Examples

Use --timeout-ms for long-running upstream calls, including streamed responses. The value is in milliseconds and applies to the upstream request duration.

json

Invoke and print the response as parsed JSON.
Same as aivault capability json.

markdown

Invoke and print the response converted to markdown. Useful for LLM-friendly output.
Alias: md

Invoke options

Response handling

  • Raw mode (invoke): prints the response body as-is
  • JSON mode (json): parses and pretty-prints as JSON
  • Markdown mode (markdown): converts JSON response to markdown with optional namespace wrapping, field exclusion, and field wrapping
In all modes, upstream response headers are intentionally stripped. In untrusted execution environments, headers can carry identifiers or cookies that leak through agent context. Next: OAuth