Skip to main content

Introduction to Cortex

Cortex combines a durable agent runtime and persistent memory. An application sends a user input to a published Agent version; Convex retains the run, transcript, tools, generated artifacts and memory work.

Ownership​

ApplicationCortex backendOperator
Fetch a host JWT, send text, render output, show approvalsVerify identity and grants; execute Agent, tools and Workflow jobsConfigure issuer/JWKS, scope grants and qualified model policies
Reattach after disconnect or reloadRetain run identity, output cursors and transcript revisionsPublish and revoke executable Agent versions
Render separate response/memory/graph statusExtract facts, chunk sources, embed and project graph eventsConfigure optional graph services and media access
Fetch private asset bytes with current authorizationStore immutable file versions in ConvexSet retention, locks, bounds and budgets

There is one executable transcript. The UI does not mirror the exchange with memory.remember, run another model/tool loop or create its own embeddings.

Choose an integration​

  • TypeScript runtime client: browser or Node hosts that want explicit submit/start/observe control.
  • AI SDK 7 remote transport: React chat with useChat, streaming metadata, approvals and reconnect.
  • First-party applications: Basic terminal/Hono app, Vercel quickstart and ChatSDK with retained content jobs.

Use installation, then backend setup. The explicit memory APIs serve separate ingestion or maintenance use cases.