saascode
Cortex

Cortex

A self-hosted alternative to Dify and Flowise — design an AI agent's reasoning on a canvas, then watch it execute node by node.

inside the product
01· Landing
02· Pricing
03· Templates
04· Dashboard
05· Agents
06· Knowledge
the complete operation

Cortex is a visual canvas for designing how an AI agent thinks — not what it says next.

Cortex in depth

What the agent does is a diagram, not a prompt somebody edited last month.

Agent logic written as prose in a text box becomes unmaintainable faster than anyone expects. Six months in, nobody remembers why a particular instruction is there, whether removing it breaks something, or which of the four paragraphs is doing the work. Changes get made by adding another sentence rather than by editing, because editing is too risky. The agent slowly becomes a thing the business depends on and nobody is willing to touch, and the person who wrote it has usually moved on.

  • Visual agent canvas (6-category nodes)
  • Agent versioning (draft/published/archived + rollback)

Every published version is still there, and rolling back takes one action.

The worst day with an agent is the day someone improves it. A change goes out, quality drops in a way nobody can quite characterise, and the previous behaviour exists only in whatever the last person happened to remember. Teams respond by freezing: the agent stops improving because improving it is how it broke last time. What that costs is not the bad version, it is every good version that was never tried afterwards.

  • Agent versioning (draft/published/archived + rollback)
  • Conversation history (thread + node_trace)

The agent draws on your documents, and the trace shows which ones.

A generic assistant is confidently wrong about the specific things a business cares about — its pricing, its policies, its edge cases. Bolt on retrieval and a second problem appears: when the answer is wrong nobody can tell whether the document was missing, the wrong passage was found, or the model ignored what it found. Debugging becomes guesswork, and the usual outcome is that people stop trusting the agent and go back to searching manually.

  • Knowledge base (upload/chunk/embed/vector search)
  • Live-preview chat + node-execution trace
complete feature inventory
Visual agent canvas (6-category nodes)Three panels: a node palette on the left, the canvas in the middle, and a configuration panel on the right for whatever is selected.

Nodes come in six categories covering what an agent needs to be told — the knowledge it may consult, the tools it may call, the logic that routes it, the constraints it operates under, and the point at which it escalates to a person.

The graph persists as structured data and round-trips cleanly, so an agent is a versionable object rather than a drawing.

Agent CRUD (create/edit/duplicate/delete)Agents are created, edited, duplicated and deleted as first-class objects. Duplication matters most: a working agent becomes the starting point for the next one, which is how a portfolio of a dozen gets built without starting over each time.
Agent versioning (draft/published/archived + rollback)Agents move draft → published → archived, with snapshot rollback to any earlier version.

Saves are version-checked rather than last-write-wins. Two people editing the same agent, or one person with the same agent open in two tabs, produce a conflict that is reported rather than a silent overwrite of whichever save landed first.

For a canvas — where a "document" is an hour of careful wiring — the silent-overwrite failure is the one that loses real work.

Live-preview chat + node-execution traceA split panel: the canvas on one side, a chat on the other, running the agent server-side against the graph as currently designed.

What streams back is not just the reply. Node execution streams alongside it — start, output and completion per node, plus errors — so the designer watches the agent reason rather than inferring it afterwards.

Each node carries a time limit and the run carries a total budget, so a misconfigured tool stalls one preview rather than hanging the session. Independent branches execute in parallel.

Conversation history (thread + node_trace)Every conversation is logged per agent as a thread, and each message keeps its own execution trace.

That is what makes a production complaint tractable: the report is "it gave a wrong answer on Tuesday", and the trace for that exact message says which knowledge chunk it retrieved and which branch it took.

Agent dashboard (CARD MOSAIC grid)Agents as a grid of cards showing status, recent activity, deployment state and quick actions — built for someone maintaining a dozen agents rather than admiring one.
Template gallery (cross-org official import)Official templates import across organizations as editable starting points, so a new agent begins as a working graph rather than an empty canvas and a set of unanswered structural questions.
Knowledge base (upload/chunk/embed/vector search)Documents upload, chunk, embed and become searchable by meaning. An agent draws on the knowledge bases it is wired to, and retrieval happens as part of its reasoning rather than as a separate search feature.

Knowledge is scoped and metered per workspace: how many knowledge bases, and how many chunks in total.

Deploy — embeddable widgetA vanilla-JavaScript embed that renders inside a shadow root, so the host page's styles and the widget's cannot reach each other. No framework ships with it, and the bundle is kept under 30KB compressed.

That size discipline is the whole reason it is not React: a support widget that adds a third of a megabyte to a customer's marketing page is a widget their performance team removes.

Allowed domains are enforced on the server, not merely stored. A widget key lifted from one page does not work on another site.

Deploy — public share link /chat/[slug]A hosted chat page at its own address, for an agent that should be shareable without embedding — internal tools, a link in an email, a QR code at an event.

Addresses are generated with a cryptographic random source rather than a predictable one, so a public agent's URL cannot be guessed by enumeration.

Conversation analyticsWhat the agents actually did: volume, conversations and message-level detail. The basic view is on every tier; the fuller view and export arrive higher up.
Message metering + usage dashboardMessages are counted per workspace per month against the plan's allowance, with a warning at 80% and throttling at 100% — checked before the agent responds rather than reconciled afterwards.

Metering an AI product after the fact is how a bill becomes a surprise. Checking before the response means the limit is a limit.

MCP server (agent-as-tool)Publishes an agent as a tool another AI system can call directly through a machine-readable bridge, so the agent becomes something the rest of the business's automation can use rather than only a chat window.
what's included

The platform underneath the product — counted in this product's own source, not claimed from a template. Where a row carries a list, open it to read the names behind the number.

AlipayCoinbasedLocalFlutterwaveKakaoPayKomojuLemon SqueezyMercado PagoMollieNOWPaymentsOpnPaddlePagSeguroPayPalPaystackRazorpayStripeWeChat Pay
AlipayAppleBitbucketDiscordFacebookFigmaGitHubGitLabGoogleKakaoKeycloakLINELinkedInMicrosoft AzureNaverNotionQQSlackSnapchatSpotifyTwitchVKWeChatWeiboWorkOSXYandexZoom
the schema and build
76page modules
233http operations
53tables
50migrations
113,964lines of source
4roles
measured 2026-08-31release v1.0.0 · built 2026-06-20
53 tables · 88 relationships
organizations46 refsusers23 refsagents3 refsactive_boostsadmin_notificationsagent_deploymentsagent_templatesagent_versionsannouncement_dismissalsannouncementsapi_key_logsapi_keysaudit_logsauthautomation_logautomation_templatesconversationscredit_balancescredit_transactionscurrenciesdata_exportsdata_importsfaq_categoriesfaq_itemsfeature_flagsinbound_webhookskb_chunkskb_documentsknowledge_baseslanguagesmessage_usagemessagesnotification_lognotification_rulesnotificationsorganization_limit_overridesplansplatform_secretsplatform_settingsproduct_purchasesproductsprovider_pricespush_devicesreport_templatesrolesscheduled_taskssubscriptionstheme_page_sectionstheme_section_librarytheme_sectionstranslationsuser_sessionswebhook_logswebhooks

Hover a table to isolate what it touches; click one to read its relationships. The big nodes are what everything else hangs off. organizations is referenced by 46 tables because every single record in this product belongs to an organization, and that is what makes tenant isolation a property of the database rather than something the application has to remember on every query.

all 53 tables, as text

active_boosts · admin_notifications · agent_deployments · agent_templates · agent_versions · agents · announcement_dismissals · announcements · api_key_logs · api_keys · audit_logs · automation_log · automation_templates · conversations · credit_balances · credit_transactions · currencies · data_exports · data_imports · faq_categories · faq_items · feature_flags · inbound_webhooks · kb_chunks · kb_documents · knowledge_bases · languages · message_usage · messages · notification_log · notification_rules · notifications · organization_limit_overrides · organizations · plans · platform_secrets · platform_settings · product_purchases · products · provider_prices · push_devices · report_templates · roles · scheduled_tasks · subscriptions · theme_page_sections · theme_section_library · theme_sections · translations · user_sessions · users · webhook_logs · webhooks

what you need to run Cortex

The chassis, and anything particular to this product. 3 required, 2 optional.

Node hostrequired

Agent execution runs in Node runtime routes, which need database access. A single service — there is no separate execution worker to deploy.

Supabaserequired

Postgres with row-level security and vector search for knowledge retrieval.

An AI provider keyrequired

Agent reasoning and the streaming preview run on it.

An embeddings providerrequired for knowledge

Documents are embedded on upload. Agents without a knowledge base do not need it.

A payment providerrequired to charge

Configured by the operator, not hardwired.

Already built — plug and play

Every provider integration in this list ships wired into the product. You bring your own keys, connect them in the admin, and go live — there is no integration code to write. Nothing is resold through us: the ongoing cost is whatever these providers charge you. Capabilities marked plan-gated elsewhere on this page unlock by plan, not by extra code.

questions worth answering
What exactly do I receive after purchase?

The complete source repository behind the live demo — 113,964 lines across the application and its database, 53 tables defined by 50 migrations that the shipped scripts apply for you, plus the seed data, the demo accounts and the setup documentation. Not a subset and not a scaffold: the same code that runs the demo you just used.

Is the live demo the same product whose source I receive?

Yes. The Cortex demo runs the delivered release (v1.0.0), and the build figures on this page are measured from that same source — not from a showcase build kept separately.

Can I test every account role before buying?

Yes — all 2 of them: Workspace user, Platform admin. Each one is seeded in the live demo and reachable from the role board above, so you can inspect the product from the customer's side, the agent's side and the administrator's side before you decide.

Is this a complete product or a starter template?

Complete. 76 page modules and 233 HTTP operations, with authentication, roles, billing, an administration panel, background jobs and seeded demo data all wired and running. A template gives you the shape of an application; this is one you can deploy and start operating.

Can I rebrand and modify it?

Yes, without asking. The name, identity, copy, styling and code are yours to change. Rebranding and operating it as your own service is exactly what the licence is for.

What does the licence allow?

A perpetual, worldwide, non-exclusive, non-transferable licence to the product you bought and to every update released for it. The Standard licence covers one business — yours. If you deploy for clients, the Client licence covers up to five. You can modify it, rebrand it, deploy it and charge your own customers.

Can I resell the source code?

No. Reselling, redistributing, sublicensing or giving away the source itself is not permitted under either licence. You build and deliver products with it — the code stays with you.

What services and ongoing costs are required?

You bring your own accounts, so we never mark anything up and there is no ongoing cost to us beyond the purchase. Required: Node host, Supabase, An AI provider key, An embeddings provider, A payment provider. Optional: none. The table above says exactly what stops working without each one; most have usable free tiers at low volume.

How difficult is deployment?

Two ways, and most buyers use the first. The installer in your saascode dashboard walks it: you create free accounts at Vercel and Supabase, connect them, and it provisions the database, applies 50 migrations, seeds the data, deploys and verifies the result — you watch the steps go green. Or take the source and do it yourself with the shipped scripts and docs, which is the same sequence run by hand.

What updates and support are included?

Updates to that product for as long as we maintain it — no renewal fee and no expiry date on your access. Support covers download problems, defects in the code as shipped, questions about what the product does and how it is structured, and licence questions. It does not cover debugging your own modifications, building features for you, or setting up your hosting and third-party accounts.

Why does a complete codebase cost $179?

Because it was built once and is distributed many times. SaaSCode builds each product and ships the same finished release through the catalog, so the price reflects repeatable distribution — not a reduced codebase, an unfinished template, or what the same work would cost commissioned.

Do I need to be a developer?

No, for the normal path. You create free accounts at Vercel and Supabase, connect them to the installer in your saascode dashboard, and it does the deployment for you — provision, migrate, seed, deploy, verify. What it asks of you is creating two accounts and copying a token, not writing code. If you would rather deploy it yourself, or host it somewhere else, the full source and the scripts are yours to do that with. Running the product day to day needs no technical skill at all: that happens through its own interface, which is what the demo shows.

Self-Hosted AI Agent Builder – Cortex | saascode