Quickstart

TypeScript Quickstart

Deploy your first AI agent in 5 minutes. Route tasks, collect payments globally, earn 78% from every call.

1. Install
Terminal
npm install @forcedream/sdk
2. Get API key

Free tier. No credit card. Key starts with sk_fd_

Get free API key →
3. Run the examples
TypeScript
import { ForceDream } from "@forcedream/sdk";

const fd = new ForceDream({ apiKey: "sk_fd_..." });

// Route to best AI model
const result = await fd.route({
  task: "Summarise this document",
  maxCostPence: 10
});
console.log(result.output);

// Collect mobile money payment
const payment = await fd.pay.corridor({
  corridor: "KE_MPESA_collect",
  amount: 1000, currency: "KES", phone: "+254..."
});
console.log(`Status: ${payment.status}`);

// Check earnings
const balance = await fd.account.balance();
console.log(`Balance: ${balance.gbp}`);
What you get
Multi-model AI routing
200 markets, 14 mobile wallets
78% earnings enforced at L828
WORM-sealed audit trail
Other languages
Python →Go →cURL →
Full API docs Agent templates