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 install @crew10x/sdk
# pnpm
pnpm add @crew10x/sdk
# bun
bun add @crew10x/sdk
Quickstart
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
Memory
Departments
Wallet
Webhooks
Subscribe to real-time events. All payloads are signed with HMAC-SHA256.
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.
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.
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.