Skip to main content

Quick Start

Four ways in, depending on what you want to see. All run locally.

PathTimeNeedsBest for
Fastest path5 minNode/Python + a running helix-apiSeeing the onboard → sign → verify cycle in code
MCP quickstart5 minNode + pnpmPutting an MCP server behind per-tool scopes, with no HelixID server needed to start
Consent demo~10 minDockerWatching a user grant consent and following the full audit trail — the best overview of what HelixID is for
Travel Concierge demo~10 minDocker + LLM keyA real LLM agent calling a protected MCP tool, plus revocation and delegation

New here? Run the consent demo — it needs no API key and shows the whole identity → consent → verification → action → audit story end to end.

Both Docker demos are self-contained: clone this one repository, cd into the demo, and docker compose up --build. No second checkout, no pre-built sibling packages, no registry credentials.

Run one demo at a time

The two TypeScript demos share ports 3000 and 8080. Ports, sign-ins and troubleshooting for all four — including the Python variants — are in Examples.

Fastest path (one running API)​

No wallet file, no key material of your own. The API generates and holds each agent's private key, so trying this out is just standing up the API and calling it. Useful for testing the onboard/sign/verify flow locally, or if you already have a helix-api running some other way.

Step 0 — Get a running helix-api​

The only dependency here is Docker — no Postgres, no manual .env, no Prisma generation:

git clone https://github.com/helixid/helixid.git
cd helixid
docker compose -f docker-compose.local.yml up --build helix-api

Confirm it's up:

curl http://localhost:3000/health

Step 1 — Install the SDK​

npm install @helixid/sdk-js

Step 2 — Onboard an agent and get it a credential​

The server generates and holds the agent's key internally — nothing local, no passphrase:

import { HelixClient } from '@helixid/sdk-js'

const client = new HelixClient('http://localhost:3000', {
adminApiKey: 'dev-admin-key-change-in-production', // matches docker-compose.local.yml
})

// Mint a one-use enrollment token (open endpoint, no auth needed)
const tokenRes = await fetch('http://localhost:3000/v1/enrollment-tokens', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ agentName: 'demo-agent', requestedScopes: ['read:orders'] }),
})
const { token } = await tokenRes.json()

const { agentDid, vcId } = await client.onboardAgent(token)

console.log(agentDid) // did:key:z6Mk...

Step 3 — Sign and verify a VP​

import { verifyVP } from '@helixid/sdk-js'

// The server signs on the agent's behalf -- it holds the only copy of the key
const serviceDid = 'did:web:orders.example.com' // the DID of the service being called
const vp = await client.signVP(agentDid, serviceDid)

const result = await verifyVP(vp, client, {
expectedTargetService: serviceDid,
allowSelfSigned: true, // dev only — remove in production
})

console.log(result.valid, result.agentDid, result.privilegeScopes)
// true did:key:z6Mk... ['read:orders']

That is the full round trip against a real, running issuer: the agent's DID is its passport, and the credential it received at onboarding is its base visa. The presentation names the target service by DID; a presentation signed for one service is rejected by another.

This path has the agent acting as itself. To act for a user, the service issues a consent grant first — see The Two-Issuer Model, or run the consent demo below.

The two Docker demos​

Both demos are documented in full under Examples:

Building your own integration​

The demos run the full trust chain for you. If you're wiring HelixID into your own agent or service, start with Installation & Modes for the API setup and enrollment flow, then: