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.
When to choose Mastra, and when to choose Norilu.
- 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.
- 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.
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.
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.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.
// 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;}Who does the work, line by line.
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.
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.
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
Bring the agent. Ship it to every customer.
Bring your prompts, tools, Skill or MCP server. In one call we set up two customer spaces, an approval step and your first tests, so you can see the difference on your own workflow.
- LangGraph vs. NoriluLangGraph gives you the agent loop. Norilu gives you the product around it.
- Vercel AI SDK vs. NoriluThe AI SDK gives you streaming and tool calls. Norilu gives you everything a customer-facing agent needs behind them.
- Claude Managed Agents vs. NoriluClaude Managed Agents runs the agent loop for you. Norilu adds the customers, tests and releases around it.
- All comparisonsEvery platform, sorted by what you are building.