Skip to main content

System Overview

A HelixID deployment has a small number of moving parts.

ComponentWhat it isRequired?
HelixID server (helixid, built on @helixid/core)The issuer and verifier API — onboarding, key custody, credential lifecycle, presentation signing and verification, status list, did:web hosting, audit log, session bridgeYes
SDK — @helixid/sdk-js or helixid-sdk-pyA typed client for that API, inside the agent and inside the service it callsYes
Framework adapters@helixid/mcp-middleware, LangChain, CrewAI, @helixid/widget for consent pagesOptional
ConsoleOperator web UI — agents, onboarding, audit trailOptional
@helixid/cli / @helixid/mcp-serverOperator tooling for issuer keys, status lists and low-volume issuanceOptional

@helixid/core owns everything that makes a trust decision — DID resolution and caching, Ed25519 signing and verification, presentation verification, canonical JSON, key custody. The SDKs do not re-implement it; they call the API.

Agent lifecycle, end to end​

1. Agent onboarded
└── Operator mints an enrollment token (scopes, delegation depth)
└── Server generates the agent's keypair, keeps it encrypted in custody,
creates its DID (the passport) and issues a HelixAgentCredential
(the base visa: privilegeScopes = the agent's ceiling)
└── The agent receives { agentDid, vcId } — no key, no wallet file

2. User consents (only when the agent acts for a user)
└── The service shows its own consent page
└── The service issues a DelegationGrantCredential (the service visa)
under its own DID, for this agent and this user

3. Agent requests a presentation
└── signVP(agentDid, serviceDid, { userDid? })
└── Server gathers the agent's active credentials and matching grants
and signs with the agent's custodial key. Valid for 5 minutes,
bound to that one service.

4. Agent calls the service, presentation attached
└── HTTP header (Authorization: HelixVP …) or MCP _meta

5. Service verifies — verifyVP() / MCP middleware → POST /v1/vp/verify
├── Presentation signature and expiry, target service
├── Each credential: signature, validity window, revocation
├── Delegation chain — linkage, scope subsetting, depth
└── Consent rules → effectiveScopes

6. Decision → the service checks the scope the call needs:
allowed (action executed) or denied (error + reason code)

7. Audit → issuance, consent, signing, verification, authorization and
action are recorded — refusals included

Step 5 is a call from the service to the HelixID API it verifies with. It is never a call to the agent's issuer asking whether this particular request is allowed; see What "Offline Verification" Actually Means.

The trust boundaries​

Three separations do the real work:

  • The operator owns issuance policy. Only the operator decides an agent's scopes and delegation depth, by minting the enrollment token and holding the admin key. An agent cannot grant itself authority.
  • The service owns consent and its own scope catalog. A user's approval is recorded as a grant under the service's DID, valid only at that service. See The Two-Issuer Model.
  • The verifier owns the decision. Verification returns facts — who, with what scopes, for which user. Whether that is enough for this call is the service's rule.

One boundary is deliberately not there: agents and services do not hold their own private keys. The HelixID server holds them in custody and signs on request, so whoever controls that server and its admin key can sign as any agent it onboarded. That is the central thing to protect in a deployment — see Security Model.

Major flows​

Each of these maps to concrete surfaces in the SDK, HTTP API, and CLI references.

1. Onboarding → presentation → verification​

StepSurfaces
Create enrollment tokenPOST /v1/enrollment-tokens
Onboard agentPOST /v1/onboard, HelixClient.onboardAgent(), helix agent onboard
Sign a presentationPOST /v1/agents/:did/vp, HelixClient.signVP(), attachHelixVP(), HelixIDToolWrapper()
VerifyPOST /v1/vp/verify, verifyVP(), helixidMCPMiddleware()
Enforce scoperequireScope(), checkScope(), filterToolsByScope(), MCP toolScopes / requiredScopes
Optional sessionPOST /v1/vp/verify with session: true, GET /v1/sessions/public-key, HelixClient.fetchSessionPublicKey(), HelixClient.verifySessionToken()
StepSurfaces
Enroll a servicePOST /v1/services
List the scopes a consent may offerGET /v1/service-delegation-grants/agent-scopes, HelixClient.getAgentScopes(), resolveConsentScopes()
Issue the grantPOST /v1/service-delegation-grants, HelixClient.issueServiceDelegationGrant()
Sign a presentation for a userHelixClient.signVP(agentDid, serviceDid, { userDid })
Revoke the grantPOST /v1/vcs/:vcId/revoke, HelixClient.revokeVC()

3. Delegation​

StepSurfaces
Allow delegationmaxDelegationDepth on the enrollment token
DelegatePOST /v1/agents/:did/delegate, HelixClient.delegateAuthority()
Present and verifySame as flow 1 — the delegated credential and its chain are included automatically
Revoke a delegationPOST /v1/vcs/:vcId/revoke

4. Revocation​

StepSurfaces
RevokePOST /v1/vcs/:vcId/revoke, HelixClient.revokeVC(), helix revoke
Check statusGET /v1/vcs/:vcId/status, HelixClient.checkVCStatus()
Publish/read status listGET /v1/status-list/:listId, POST /v1/status-list, HelixClient.getStatusList(), helix status-list create
Verification after revokeverifyVP(), POST /v1/vp/verify, helixidMCPMiddleware()

5. DID lifecycle​

StepSurfaces
Create DIDPOST /v1/dids, HelixClient.createDID(), helix did create
Resolve DIDGET /v1/dids/:did, HelixClient.resolveDID()
Add / remove service endpointPOST /v1/dids/:did/services, DELETE /v1/dids/:did/services/:endpointId
Deactivate DIDPOST /v1/dids/:did/deactivate, HelixClient.deactivateDID()

6. Credential issuance and renewal​

POST /v1/vcs (HelixClient.issueVC()) issues a credential directly; POST /v1/vcs/:vcId/renew (HelixClient.renewVC()) issues a renewed one from an existing credential.

7. User DID challenge verification​

POST /v1/challenges issues a challenge for a user DID; the user signs it; POST /v1/challenges/:challengeId/verify confirms the signature. SDK: HelixClient.requestUserChallenge() and verifyUserChallenge().

8. Session bridge​

Verify a VP once, optionally receive a short-lived token, and reuse it. POST /v1/vp/verify with session: true, then GET /v1/sessions/public-key and HelixClient.verifySessionToken(). See Hybrid 3-Layer Design.

Standards foundation​

StandardWhat it does
W3C DID Core 1.0Decentralized identifiers — structure, resolution, control
W3C VC Data Model 2.0Verifiable credentials — structure, proofs
Verifiable PresentationsPackaging and presenting credentials for verification
W3C Bitstring Status ListCredential revocation