Skip to main content

Installation

Use Node.js 24.15.0 or newer and the declared npm 12.2.0 toolchain. SDK, CLI and provider are coupled at 0.39.0. The template catalog and application payloads are versioned independently; follow the selected payload's manifest for its package manager.

The examples below select the upcoming release. Until it is published, install matching locally built SDK, provider, catalog and CLI tarballs explicitly. A missing requested registry version is an error; an older SDK is not substituted.

npm install --save-dev @cortexmemory/cli@0.39.0
npm install @cortexmemory/sdk@0.39.0 convex
npx cortex --version
npx cortex backend --help

React applications also use @cortexmemory/vercel-ai-provider@0.39.0, AI SDK 7 and its matching @ai-sdk/react integration.

Add Cortex to an existing Convex host​

npx cortex backend install ./host --plan
npx cortex backend install ./host

The installer composes the runtime table map and Agent/Workflow/Workpool components with the host's configured functions directory, schema, auth and HTTP router. It preserves unrelated tables, indexes, functions, routes, scripts and environment values. Ambiguous source merges are refused and need an explicit repair before installation.

backend install --sdk-path <directory> selects an installed SDK distribution. --jwt-provider <file> adds a reviewed customJwt configuration; see auth integration. Installation is local source preparation. Registration, grants, policies and Agent publication make the backend usable.

Create an application​

npx cortex templates list --format json
npx cortex templates init basic-app --template basic --template-version 1.4.0 --catalog-version 1.3.0 --yes --graph none
npx cortex templates init demo --template vercel-ai-quickstart --template-version 1.4.0 --catalog-version 1.3.0 --yes --graph none
npx cortex templates init chat --template chat-sdk --template-version 1.4.2 --catalog-version 1.3.0 --yes --graph none

For local archives, template commands accept --sdk-package, --provider-package and --templates-package; use matching archives rather than relying on registry fallback. Basic and Vercel use npm; ChatSDK follows its declared pnpm manager. The CLI does not install or switch package managers for you. Graph off needs no Docker.

SDK/backend updates and application updates are separate. CLI build does not synchronize templates, and updating an SDK does not transform an older application payload into a backend-runtime app. Use the CLI reference for ownership-aware plans, update recovery and native target selection.

The Python SDK is archived under _DEPRECATED/cortex-sdk-python; no Python remote-runtime client is provided by this release.

The templates catalog is independently versioned at 1.3.0. The current app payloads are Basic and Vercel AI quickstart 1.4.0, and Chat SDK 1.4.2. These are upcoming release selections; the registry publication step is separate. Existing immutable app payloads remain available for their pinned versions.