Skip to main content
Write a plugin when you need Quivr to read a new file format, collect from a source, or change how it indexes, searches or matches alerts. Your plugin runs as an HTTP service, and Quivr calls it with JSON.

How Quivr calls your plugin

A manifest named quivr-plugin.yaml describes your plugin. It gives Quivr an ID, a version, compatibility ranges and the jobs the plugin can do. Each job is a Contribution. Quivr calls a plugin only after it has checked that discovery matches the manifest it selected.
A readiness probe checks health. Quivr checks discovery against the pinned manifest before sending a contribution request.A readiness probe checks health. Quivr checks discovery against the pinned manifest before sending a contribution request.
  • Health. A readiness probe sends GET /v0/health and expects 200 with {"status":"ok"}. The local tools check this before discovery when they launch a plugin.
  • Discovery. Quivr uses GET /v0/discovery to verify the plugin’s identity, supported API version, declared jobs and the digest of the exact manifest bytes. It can reuse a recent successful check within its cache window.
  • Contribution call. Quivr sends a POST to the job’s route. Your handler returns JSON, which Quivr checks against the job’s output contract. If discovery disagrees with the pinned manifest, Quivr treats the plugin as unavailable before calling the handler.

Signed calls

Starting with Plugin API 0.14.0, Quivr signs discovery and contribution calls. Both SDKs verify the bearer token before dispatching the request. The token binds the call to the plugin ID, HTTP method, path and query string, and request body. Health stays public for readiness probes. The local CLI supplies temporary signing keys when it starts your plugin. For a deployed service, give Quivr the map in QUIVR_ENGINE_PLUGIN_KEYS and the plugin its own key ring in QUIVR_PLUGIN_SIGNING_KEYS. See signed engine requests for the key format and rotation procedure.

Next