Safe retries
Start each conversation with an idempotency key. Retrying returns the same session.
idempotency_keyCall a released, tested agent from your backend. Stream replies and approval requests into your own components. Norilu runs the agent, the tools and the tests behind it.
import { Norilu } from "@norilu/server"; // Reads NORILU_SECRET_KEY. Server only.const norilu = new Norilu(); // 1. Run the released agent inside this// customer's isolated spacelet run = await norilu.runs.start("def_outreach", { space: org.id, user: currentUser.id, input: "Find 5 senior Go engineers in Paris & draft", maxCostUsd: 0.5,}); // 2. Sending email needs approval, so the run pausesif (run.status === "requires_action") { run = await norilu.runs.resume(run.thread_id, { space: org.id, user: currentUser.id, approved: true, note: "Send to the top 3 only.", });} // 3. Or let the browser drive it: mint a short-lived// token for this space, user and agent onlyconst token = await norilu.tokens.create({ space: org.id, user: currentUser.id, agent: "def_outreach", permissions: ["run", "approve"], allowedOrigins: ["https://app.example.com"],});You decide who the user is and what they can do. Your backend either mints a short-lived token scoped to that user’s space for the browser, or calls Norilu itself with the secret key. Secret keys and connected-account credentials stay on the server.
When a tool call needs a person, the turn stops with requires_action. Show it however you like, then send the decision from your backend. Try both answers.
Start each conversation with an idempotency key. Retrying returns the same session.
idempotency_keySet stream:true and read partial text as server-sent events over the same POST.
output_text.deltaA turn pauses with requires_action. Send one decision per pending call to resume.
/decisionsA streamed turn keeps running if the connection drops. Read the saved session before retrying.
GET /sessions/{id}Each key pins an agent and version. Conversations keep theirs until you choose to switch.
released versionsGrant only what a caller needs: create, read, write turns, decide approvals, cancel.
sessions:createGive each customer their own customer space with project-scoped connections. Their conversations, files and keys stay in that space. During early access we set up each pilot customer with you.

TypeScript SDKs on npm (0.1.x): @norilu/server for your backend, @norilu/client for browser conversation state, and @norilu/react for hooks and components (source at github.com/norilu-ai/norilu-ts). APIs may evolve before 1.0. From Python, Go or any other language, call the REST API described by the OpenAPI spec. A Go SDK is in private preview on request; there is no public Python package yet.
Early access. Bring the agent you want to ship and we’ll help you wire it into your backend.
Get a workspace, release a tested agent, and create a scoped server key.
Request accessStart with the server quickstart: start a session, stream a reply, handle an approval.
Server quickstart