Your License
How a CortexDB server holds its license, renews it by itself, and what happens near the end of it. Usually there is nothing to do.
Start on CortexDB Cloud
We recommend starting on CortexDB Cloud: sign up on cortexdb.ai and you have an endpoint and a token in two minutes, with nothing to run. If you need CortexDB on-prem or on your own infrastructure, talk to us and we will provide a self-host license. Licensed releases then come from the customer portal, and these pages cover running them.
Every CortexDB release runs under your company's license. Usually there is nothing to
do after initial setup: the install commands on
customer.cortexdb.ai already carry your company's license, so
the installer and the manual steps pass it to the server for you. The server keeps it with its data and
renews it when your CortexDB contact extends it. The token is also shown in the release page's License
section, and agents read it from GET /api/license with their agent key.
Because the commands carry the license, treat a downloaded cortexdb-install.sh like a secret: run it,
then delete it, and keep it out of chats, tickets and logs.
How it gets to your server
The release page's commands set the license for you. Run by hand, the server takes it from
CORTEX_LICENSE:
export CORTEX_LICENSE='cdbl1.…' # your company's license, from the release page's License section
docker run -d --name cortexdb … -e CORTEX_LICENSE … cortexdb/cortexdb:v0.16.1On its first start the server saves the license in its data directory (license.json), so later
upgrades and restarts find it there even without CORTEX_LICENSE. One license covers every server your
company runs.
Agents can fetch it too: GET https://customer.cortexdb.ai/api/license with an agent key, or the MCP
tool get_license.
Renewals arrive by themselves
The server asks customer.cortexdb.ai for the newest version of its license: every few hours, hourly in
the last two weeks, and every 15 minutes once it has ended. When your license is extended or your plan
changes, your servers pick that up without a restart or anything from you. A renewal request carries the
license itself, a random id for the server and its version, and nothing else.
A server that can't reach the portal
Air-gapped servers, or ones behind a strict proxy, keep the license they have. Nothing breaks when the portal can't be reached. To renew such a server, copy the license from the portal (Releases → a release → License) and either:
- paste it on the server's console, License page (takes effect at once), or
- set
CORTEX_LICENSEagain and restart.
CORTEX_LICENSE_URL=off stops the server from asking the portal at all.
Near the end of a license
| When | What happens |
|---|---|
| Two weeks before the last day | A notice in the console and the log. Everything works. |
| After the last day | The grace period (7 days for pilots, 14 for customers): everything works, with notices. |
| After the grace period | Reads and writes answer 402 LICENSE_EXPIRED. Your data is safe and unchanged. |
Dates are UTC calendar days, and both the last day and the last day of grace are included. A pilot whose
last day is 12 November works with notices through 19 November and answers 402 from 20 November. The
customer portal stays open to you through the same grace period.
While a license has ended, health checks, the console, export (POST /v1/export) and adding a license
keep working, so you can always take your data out. As soon as the license is renewed, the server serves
again; nothing to restart.
A server that has never had a license serves for 14 days (time to add one after an upgrade), then
answers 402 LICENSE_REQUIRED in the same way.
Clusters
Each data node of a cluster holds the license itself. Put it in the node
config's [engine] table, like any engine setting (CORTEX_LICENSE = "cdbl1.…", or
CORTEX_LICENSE_FILE naming a file on the node). Each node keeps and renews it in its own data
directory.
Settings
| Variable | What it does |
|---|---|
CORTEX_LICENSE | The license. Needed once; the server keeps it. |
CORTEX_LICENSE_FILE | A file holding the license instead (a mounted secret). |
CORTEX_LICENSE_URL | Where renewals come from (default https://customer.cortexdb.ai/api/license/refresh); off stops them. |
The console's License page, and GET /internal/ui/license, show the company, plan, last day, grace,
how long the server serves, and when it last renewed.