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
| Application | Cortex backend | Operator |
|---|---|---|
| Fetch a host JWT, send text, render output, show approvals | Verify identity and grants; execute Agent, tools and Workflow jobs | Configure issuer/JWKS, scope grants and qualified model policies |
| Reattach after disconnect or reload | Retain run identity, output cursors and transcript revisions | Publish and revoke executable Agent versions |
| Render separate response/memory/graph status | Extract facts, chunk sources, embed and project graph events | Configure optional graph services and media access |
| Fetch private asset bytes with current authorization | Store immutable file versions in Convex | Set 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.