API for developers

Your UI. Your auth. Our agent runtime.

Call 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.

REST + OpenAPI@norilu/server · preview@norilu/react · previewCatalog MCPCLI
outreach.ts
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"],});
npm i @norilu/server0.1.x · on npm
How it fits

Your backend stays in charge.

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.

  1. Browser
    @norilu/react · @norilu/client
    • Renders replies with your components
    • Shows approval requests
    • Holds only a short-lived token for one space and user
  2. Your backend
    @norilu/server · REST
    • Signs users in, checks access
    • Mints browser tokens or proxies runs
    • Holds the secret key
  3. Norilu runtime
    Agent API
    • Runs the released, tested version
    • Pauses for approval
    • Usage limits per plan
  4. Tools and secrets
    Agent Vault · MCP
    • Connect Links (Google/Gmail, GitHub), remote MCP servers and your API
    • Credentials in Agent Vault, never in agent code
    • Actions that change data need approval
Approvals

The agent pauses. Your user decides.

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.

app.yourproduct.com/orders/4821
What your user sees
Refund order #4821
What your backend sees
Built for production

The boring parts, already handled.

Safe retries

Start each conversation with an idempotency key. Retrying returns the same session.

idempotency_key

Streaming

Set stream:true and read partial text as server-sent events over the same POST.

output_text.delta

Approvals

A turn pauses with requires_action. Send one decision per pending call to resume.

/decisions

Disconnect recovery

A streamed turn keeps running if the connection drops. Read the saved session before retrying.

GET /sessions/{id}

Pinned versions

Each key pins an agent and version. Conversations keep theirs until you choose to switch.

released versions

Scoped keys

Grant only what a caller needs: create, read, write turns, decide approvals, cancel.

sessions:create
Many customers

One agent. Separate customers.

Give 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.

  • Keys pin the agent and version, and scope which sessions a caller can reach
  • Connected-account credentials are stored server-side in Agent Vault
  • Writes and image transfers ask for approval on every call
  • DPA and subprocessor list for security reviews
Questions

Straight answers.

Stuck on something? Talk to us →

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.

Ship your first agent behind your UI.

Early access. Bring the agent you want to ship and we’ll help you wire it into your backend.

Request API access

Get a workspace, release a tested agent, and create a scoped server key.

Request access

Read the docs first

Start with the server quickstart: start a session, stream a reply, handle an approval.

Server quickstart