> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a plugin

> See how Quivr finds a plugin, verifies its manifest and calls its handler.

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](https://docs.quivr.thevibecompany.co/build/contributions.md).

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.](https://mintcdn.com/thevibecompany/fW2ieDyt_gerbEcV/images/diagrams/plugin-call.png?fit=max\&auto=format\&n=fW2ieDyt_gerbEcV\&q=85\&s=96329a36dcf9b459072c8c6cfb2d26c7)

* **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](https://docs.quivr.thevibecompany.co/reference/plugin-protocol.md#signed-engine-requests) for the key format and rotation procedure.

## Next

* [Build your first plugin](https://docs.quivr.thevibecompany.co/build/first-plugin.md) in Python or Go.
* [Choose a Contribution](https://docs.quivr.thevibecompany.co/build/contributions.md) based on where you want your code to run.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.