For Developers
Build with Human Intelligence
Integrate human-in-the-loop capabilities into your AI agents using standard protocols. We support MCP, REST, and direct SDK integrations.
Quick Start
Install our SDK and connect your first agent in minutes.
npm install @human4ai/sdk
View DocumentationMCP Server
Run our Model Context Protocol server to give Claude or other LLMs direct access to human tools.
npx -y @human4ai/mcp-server
View on GitHubCode Example
import { Human4AI } from '@human4ai/sdk';
const client = new Human4AI({ apiKey: process.env.HUMAN4AI_KEY });
// In your agent loop
async function checkSafety(content: string) {
// Ask a human if they are unsure
const decision = await client.createTask({
type: 'safety_review',
priority: 'high',
payload: {
content: content,
context: "User requested generation of chemical compounds"
},
instruction: "Is this content safe to generate? Reply YES or NO."
});
return decision.result; // "YES" or "NO"
}TypeScript & Python
First-class support for the most popular AI development languages.
API Reference
Comprehensive OpenAPI specification for custom integrations.
Sandbox Environment
Test your integrations with simulated human responses before going live.