Skip to main content
This guide uses the ProvenanceKit SDK against a self-hosted or cloud API instance. You’ll create an entity, record an action, and query the result.

Prerequisites

1. Install the SDK

2. Create a client

3. Register entities

Entities represent participants. Register them once and reuse their IDs.

4. Record an action

When your AI pipeline runs, record what happened:

5. Query the provenance

What you built

In five steps you:
  1. Created typed entities (human + AI)
  2. Recorded a provenance action with AI metadata extension
  3. Linked the human as “prompter” via an attribution
  4. Queried the full bundle for the output CID
This data is now queryable, renderable in the ProvenanceGraph UI component, and (optionally) anchorable on-chain.

Next steps

Recording Provenance

Deeper dive into the file(), entity(), and attribution APIs.

AI Extension

Capture full AI metadata: model, tokens, prompt hash, session.

Extensions overview

All 15 built-in extensions and when to use them.

On-chain anchoring

Anchor provenance records on an EVM chain.

Self-hosting

To run the API locally:
The API runs on http://localhost:3001 by default.