Mastra vs. Norilu: typescript building blocks vs. a customer-ready agent backend.

Mastra gives you TypeScript building blocks. Norilu gives you the customer-ready product.

Mastra is a clean way to write agents, workflows and memory in TypeScript. Norilu is for SaaS teams that need every customer isolated, approvals rendered in their own app and fixes tested before release, without assembling and operating it themselves.

01 · Verdict

When to choose Mastra, and when to choose Norilu.

Choose Mastra if
  • You want every line of agent code in your own repository.
  • Your team is ready to deploy, scale and monitor the runtime.
  • You serve one tenant, or you already built per-customer isolation.
Choose Norilu if
  • You are shipping an AI agent inside a multi-tenant SaaS product.
  • Every customer needs isolated data, keys and memory from day one.
  • Non-engineers should review runs and approve improvements safely.
02 · Architecture

The demo is the tip. Production is the iceberg.

The agent loop is the part everyone sees. Shipping it to paying customers means the work below the waterline, and that is where teams lose a quarter.

Mastra gives you
Agents and tools in TypeScript
Workflows with suspend and resume
Memory and eval primitives
Demo · one customer

Refund order #4821

Done. I refunded $64.00.

It works in the demo. What decides the deal is what happens for every customer when one run goes wrong.
03 · Code diff

Same agent. Two very different backlogs.

The same refund agent, run for one customer, with an approval before the money moves. First the pieces you wire around Mastra, then the whole integration on Norilu, in the same language.

TypeScript
// The part Mastra gives youconst support = new Agent({  name: "billing-support",  instructions: "Resolve billing questions. Ask before refunds.",  model: openai("gpt-4.1"),  tools: { lookupOrder, createRefund },}); // Everything below is yours to build and runexport async function handle(orgId: string, user: User, input: string) {  // 1. Tenancy: per-org keys, files and memory  if (user.orgId !== orgId) throw new Forbidden(); // build: authz  const creds = await vault.get(orgId);           // build: vault, OAuth  const threadId = await threadFor(orgId, user);  // build: partitioned memory   // 2. Cost guardrails  if ((await meter.spent(orgId)) > limits[orgId]) {    throw new OverBudget();                        // build: metering per org  }   // 3. Approvals in your own UI  const result = await support.generate(input, { threadId });  if (needsApproval(result)) {    await pending.save(orgId, result);             // build: persistence + resume    return { status: "waiting_for_approval" };     // build: approval card  }   // 4. Evals and safe releases  await runs.log(orgId, result);                   // build: run history  // build: test suites, version pinning, rollout per customer  return result;}
Condensed sketch · each “build:” line is a project of its ownagent.ts
04 · Capabilities

Who does the work, line by line.

CapabilityWith MastraWith Norilu
Creating the agentYou write agents, tools and workflows in TypeScript.Describe the goal or bring a Skill, SOP or MCP server. Norilu drafts the instructions, tools, rules and test cases.
Customer isolationYou scope memory, storage and threads per tenant.Built-in customer spaces. Files, memory and history never cross between customers.
Customer keys and connectionsYou build per-customer credential storage and OAuth.Each customer’s connected accounts sit in a vault scoped to their space.
Human approvalsWorkflows can suspend and resume. The approval UI and routing are yours.Native pause and resume, streamed to your own UI as an Approve or Deny card.
Cost guardrailsYou meter usage and enforce limits per tenant.Hard USD limits per run and per customer space (maxCostUsd).
Improving the agentEval primitives are included. Wiring them into a release gate is yours.Failed production runs become pinned regression tests, and proposed fixes are proven on held-out unseen cases before release.
ReleasesYou deploy, version and roll out the runtime yourself.Versioned agents. Live conversations stay pinned until you release, with instant rollback.
Approval-gated memoryWorking memory is included; approval-gated writes, provenance and permanent forgetting are yours.Remembers client preferences across chats only after human approval, with source links, correction history and permanent forgetting.
Background runs & webhooksYou host and wire your own schedulers, signed webhooks and deliverable storage.Runs on daily/weekly schedules and signed webhooks—not just chat—still enforcing approvals, spend caps and immutable deliverables.
Portability & model freedomPortable TypeScript code in your repo; model-vs-model eval comparisons are DIY.Export agent packages with pinned Skills and tests anytime; benchmark and swap OpenAI or Claude models with zero code changes.
05 · Cost

Run your own numbers, not ours.

Put in your team’s salaries and timeline. The calculator compares building the production layer around Mastra with running the agent on Norilu.

How long would your team spend building it?4 months

Your estimates, not ours. The Norilu estimate uses the lowest platform price, including prepaid execution packs, within the default space creation ceiling. Model and tool costs are excluded; compare those separately for your workload.

Saved with Norilu over 12 months$165,124
Build it yourself$189,600First customer after ~4 mo
With Norilu · Sandbox$24,476First customer after ~2 wk
Engineering to launch$120,000$6,928
Ongoing engineering$60,000$17,307
Infrastructure$9,600$0
Norilu plan and execution packs$0$240
Check these numbers on a call
06 · FAQ

Questions teams ask before switching.

Why not just build multi-tenancy on top of Mastra?

You can. You would add tenant-scoped memory and storage, a credentials vault with OAuth refresh, an approval UI with durable resume, per-tenant metering, a release gate on your evals and version pinning for live conversations. Norilu starts with all of that in place.

Do we still write code with Norilu?

A little. Your backend starts runs and resumes them after approvals, about fifteen lines with the SDK. The agent’s behavior is built, tested and released in Norilu.

Are we locked into one model provider?

No. Choose the model per agent, bring your own keys if you prefer, and compare a candidate model on your own test cases before you switch.

Where does our customers’ data live?

Norilu’s primary database is in Frankfurt. Each customer’s files, memory, history and connected accounts stay inside their own customer space, and the DPA and subprocessor list are public.

SourcesMastra docsMastra