Skip to main content
okra chat asks a question about a single processed document and returns a cited answer. It requires a document ID via --doc.
okra chat is the ergonomic alias for the canonical grounded command okra context ask. Both answer from bounded, cited context for one document.

Flags

Streaming

With --stream, tokens print as they arrive. In --json mode the streamed answer is collected and returned as a single JSON payload.

Machine-readable output

When stdout is not a TTY (or with --json), okra chat returns the standard envelope with the answer and any citations:

Asking across multiple documents

To ask one question across several documents, group them into a collection and use okra collections query:
For general questions that aren’t about a specific document, use a chat client connected via MCP rather than okra chat, which always operates on one document.