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
- Node.js 18+
- A running
provenancekit-apiinstance (see self-hosting) — or a project API key from app.provenancekit.com
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:- Created typed entities (human + AI)
- Recorded a provenance action with AI metadata extension
- Linked the human as “prompter” via an attribution
- Queried the full bundle for the output CID
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:http://localhost:3001 by default.