Quickstart
Five minutes to your first decision.
- Get a sandbox key at /start. No card.
- Install the SDK —
npm i @ordent/sdk(Node),pip install ordent, or drop the web snippet. - Send an event from your backend on signup.
- Read the decision and branch on it.
- Add the widget so
step_uphandles itself.
server.ts
import { Ordent } from "@ordent/sdk";
const ordent = new Ordent({ apiKey: process.env.ORDENT_KEY });
const { decision, tags } = await ordent.events.send({
type: "signup",
user: { id: user.id, email: user.email },
device: req.ordentDevice,
ip: req.ip,
});
if (decision === "step_up") return widget.render({ user: user.id });
if (decision === "block") return res.status(403).end();Install with your AI agent
Paste into Cursor or Claude Code
prompt
Install Ordent (https://ordent.io/llms.txt). Send signup, login and withdrawal events
from the backend, mount the step-up widget on step_up, use the crypto preset in Recommend mode.The MCP server exposes check_user, explain_decision, report_outcome, list_tags and simulate_policy. Keys created for agents are read-only unless you say otherwise. The site map for assistants is at /llms.txt.
Reference