Developer Quickstart
From Zero to Your First HUMΛN App in 10 Minutes
What You'll Build
In this quickstart, you'll:
Create your first Passport — A cryptographic identity for a user
Grant a capability — Give an AI agent permission to act
Delegate access — Create a delegation token for secure operation
Orchestrate a workflow — Let HumanOS route a task to the right agent
By the end, you'll have a working foundation for building Human-AI Orchestration (HAIO) applications.
Prerequisites
- •API Key: Sign up at app.human.dev to get your API key
- •Development Environment: Node.js 18+, Python 3.10+, or Go 1.20+
- •5 minutes: That's all you need
Step 1: Install the SDK
Choose your language:
Step 2: Initialize the Client
Set up your API client with your key:
🔑 Pro Tip: Store your API key in .env and never commit it to source control.
Step 3: Create Your First Passport
A Passport is a cryptographic identity — think of it as a portable, verifiable ID for humans, organizations, or AI agents.
What Just Happened?
- •You created a cryptographic identity (a Passport) for Alice
- •HUMΛN generated a DID (Decentralized Identifier) and public/private key pair
- •This Passport can now delegate to agents, verify capabilities, and prove provenance
Step 4: Create an Agent Passport
Now create a Passport for an AI agent that will act on Alice's behalf:
Step 5: Delegate Access to the Agent
Now Alice delegates access to the agent — giving it permission to act on her behalf with specific constraints:
What Just Happened?
- •Alice created a delegation token for the agent
- •The agent can now act on Alice's behalf, but only for invoice processing
- •The delegation expires on 12/31/2024 and has a max of 100 uses
- •Every action the agent takes is logged in the provenance chain
Step 6: Orchestrate a Workflow
Now use HumanOS to orchestrate a multi-step workflow. HumanOS will automatically route tasks to agents based on their capabilities:
const workflow = await client.humanos.orchestrate({ task: 'Process 50 invoices from Acme Corp and generate a financial summary', requiredCapabilities: ['invoice_processing', 'financial_analysis'], context: { invoiceCount: 50, organization: 'Acme Corp', priority: 'high', }, humanInLoop: true, // Require human approval before execution});
console.log('✅ Workflow started!');console.log('Workflow ID:', workflow.workflowId);console.log('Status:', workflow.status);console.log('Assigned agents:', workflow.assignedAgents);
// Check statusconst status = await client.humanos.getWorkflow(workflow.workflowId);console.log('Current step:', status.currentStep);console.log('Progress:', `${status.completedSteps}/${status.totalSteps}`);What Just Happened?
- •HumanOS received your task and analyzed the required capabilities
- •It automatically routed the work to agents with the right capabilities
- •Because you set
humanInLoop: true, the workflow is waiting for human approval - •You can monitor progress in real-time and see the provenance chain
🎉 You're Done!
In just 7 steps, you've:
You now have the foundation for building Human-AI Orchestration (HAIO) applications.