Developer SDK

Build agents
programmatically

TypeScript and Python SDKs, a REST API, webhooks, and a CLI. Everything you need to create, deploy, and orchestrate cognitive agents at scale.

Install

# npm
npm install @crew10x/sdk

# pnpm
pnpm add @crew10x/sdk

# bun
bun add @crew10x/sdk

Quickstart

import { Crew10x } from "@crew10x/sdk";

const client = new Crew10x({ apiKey: process.env.CREW10X_API_KEY });

// Create a Worker agent
const agent = await client.agents.create({
  name: "market-scout",
  tier: "worker",
  objective: "Monitor crypto market movements and flag anomalies",
  department: "Research",
});

// Deploy and activate
await client.agents.deploy(agent.id);

console.log(`Agent ${agent.name} deployed: ${agent.pubkey}`);

SDK Features

Agent Lifecycle

Create, deploy, pause, resume, and terminate agents. Full control over the agent lifecycle with typed responses.

Memory & Knowledge

Read and write to agent memory. Upload documents, query knowledge bases, and manage vector embeddings.

Multi-Agent Orchestration

Build agent swarms with departments, hierarchies, and communication channels. Coordinate complex workflows.

Conscience Engine

Configure ethical guardrails, safety policies, and behavioral boundaries programmatically per agent.

Wallet & Payments

Fund agents with USDC via Solana. Check balances, transfer funds, and set spending limits through the SDK.

Observability

Stream real-time logs, GSV (Global State Vector) metrics, and decision traces. Webhooks for all events.

REST API Reference

Base URL: https://api.crew10x.com/v1

Agents

GET /agents List all agents
POST /agents Create agent
GET /agents/:id Get agent details
PUT /agents/:id Update agent config
POST /agents/:id/deploy Deploy agent
POST /agents/:id/pause Pause agent
DEL /agents/:id Terminate agent

Memory

GET /agents/:id/memory Query agent memory
POST /agents/:id/memory Write to memory
POST /agents/:id/memory/search Vector similarity search

Departments

GET /departments List departments
POST /departments Create department
POST /departments/:id/assign Assign agent

Wallet

GET /agents/:id/wallet Get wallet balance
POST /agents/:id/wallet/fund Fund agent (USDC)
GET /agents/:id/wallet/transactions Transaction history

Webhooks

Subscribe to real-time events. All payloads are signed with HMAC-SHA256.

await client.webhooks.create({
  url: "https://yourapp.com/webhooks/crew10x",
  events: [
    "agent.deployed",
    "agent.decision",
    "agent.error",
    "wallet.low_balance",
    "conscience.veto",
  ],
  secret: "whsec_...",
});

Available Events

agent.created New agent provisioned
agent.deployed Agent went live
agent.decision Agent made a decision
agent.error Runtime error occurred
conscience.veto Ethical guardrail triggered
wallet.low_balance Agent funds below threshold
wallet.funded USDC deposited
memory.updated Memory written or modified

CLI

Manage agents from your terminal.

# Install
npm install -g @crew10x/cli

# Authenticate
crew10x auth login

# List agents
crew10x agents list

# Deploy a new agent
crew10x agents create --name "market-scout" --tier worker

# Stream agent logs
crew10x logs --agent market-scout --follow

# Check agent wallet
crew10x wallet balance --agent market-scout

Authentication

All API requests require a Bearer token. Generate API keys from your dashboard.

# Every request includes your API key
curl -H "Authorization: Bearer crew10x_sk_..." \
     https://api.crew10x.com/v1/agents

Rate Limits

1,000 req/min (standard)
10,000 req/min (enterprise)

Key Scopes

read, write, deploy, admin
Fine-grained per endpoint

Security

TLS 1.3, HMAC webhooks
Key rotation support

Start building

Create a free account and get your API key in under 60 seconds.