Documentation

Quickstart

Register an agent. Make a governance call. Get a proof receipt. Five minutes.

Install

npm install @vorionsys/sdk

Option A: Local Mode (no server needed)

import { Vorion } from '@vorionsys/sdk';

const vorion = new Vorion({ localMode: true });

// 1. Register an agent
const agent = await vorion.registerAgent({
  agentId: 'my-agent-001',
  name: 'My First Agent',
  capabilities: ['read:*', 'write:documents'],
});

console.log(`Registered: ${agent.getName()} (${agent.getId()})`);

// 2. Check trust score
const trust = await agent.getTrustInfo();
console.log(`Trust: ${trust.score}/1000 — Tier T${trust.tierNumber}`);

// 3. Request a governed action
const result = await agent.requestAction({
  type: 'read',
  resource: 'documents/report.pdf',
});

console.log(`Allowed: ${result.allowed}`);
console.log(`Proof ID: ${result.proofId}`);

// 4. Report outcome to build trust
if (result.allowed) {
  await agent.reportSuccess('read');
}

Option B: Remote Mode (against cognigate-api)

Start the API

# With Docker
docker compose -f apps/cognigate-api/docker-compose.yml up --build

# Or run locally
cd apps/cognigate-api && npm run dev

The API starts at http://localhost:3000. Verify with:

curl http://localhost:3000/health

Connect the SDK

import { Vorion } from '@vorionsys/sdk';

const vorion = new Vorion({
  apiEndpoint: 'http://localhost:3000',
});

// Same API as local mode
const agent = await vorion.registerAgent({
  agentId: 'my-agent-001',
  name: 'My First Agent',
  capabilities: ['read:*', 'write:documents'],
});

Or use the REST API directly

# Register an agent
curl -X POST http://localhost:3000/api/v1/agents \
  -H 'Content-Type: application/json' \
  -d '{"agentId":"my-agent-001","name":"My First Agent","capabilities":["read:*"]}'

# Check trust
curl http://localhost:3000/api/v1/trust/my-agent-001

# Submit a governance intent
curl -X POST http://localhost:3000/api/v1/intents \
  -H 'Content-Type: application/json' \
  -d '{"agentId":"my-agent-001","action":"read","resource":"documents/report.pdf"}'

# Get proof receipt
curl http://localhost:3000/api/v1/proofs/latest?agentId=my-agent-001

Run the Example

git clone https://github.com/vorionsys/vorion.git
cd vorion
npm install
npx tsx examples/quickstart.ts

What Just Happened?

  1. Registered an agent with the Vorion governance engine
  2. Checked trust — new agents start at T0 (Sandbox) with a score of 0-50
  3. Requested an action — the engine evaluated trust, capabilities, and policy
  4. Got a proof receipt — a cryptographic record of the governance decision
  5. Reported success — building trust history for future evaluations

Key Concepts

ConceptDescription
AgentAny AI system registered with Vorion
Trust Score0-1000 score reflecting an agent's behavioral reliability
Trust TierT0 (Sandbox) through T7 (Sovereign) — determines permissions
IntentA request from an agent to perform an action
ProofCryptographic receipt of a governance decision
CARCanonical Agent Record — unique identity for each agent

Next Steps