Configuration
Runtime application settings are public selectors; backend credentials and policy remain in trusted services.
Client settings
| Option | Meaning |
|---|---|
deploymentUrl | Installed Convex runtime origin |
assetHttpUrl | Explicit owned HTTP action origin for private bytes |
fetchToken | Official host JWT callback, including forced refresh |
scope | Optional tenant/space selectors checked against current authority |
onAuthChange | Clear protected host views when authentication becomes false |
authTimeoutMs | Authentication handshake bound; default 10,000 ms |
requestTimeoutMs | RPC observation bound; default 12,000 ms |
client | Optional borrowed official Convex client; caller owns its close |
NEXT_PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud
NEXT_PUBLIC_CORTEX_HTTP_URL=https://your-deployment.convex.site
NEXT_PUBLIC_CORTEX_AGENT_ID=your-published-agent
NEXT_PUBLIC_CORTEX_AGENT_VERSION=1
NEXT_PUBLIC_CORTEX_MEMORY_SPACE_ID=your-space
Use cortex backend configure to append reviewed metadata without replacing host values. The Basic app accepts CONVEX_URL, AGENT_ID, AGENT_VERSION and MEMORY_SPACE_ID; those explicit values take precedence over its supported public selector equivalents.
Backend settings
Configure the accepted host issuer/JWKS/audience, trusted principals/grants, deployment/tenant/Agent model policy, published definitions, storage routes, retention and optional graph connectors. Applications cannot select a model, provider key, budget or tool registry through a submit request.
Embedding metadata comes from getEmbeddingProfile(); expectedProfileId is a mismatch guard. Changing a selector does not create or migrate an index. See vector embeddings.
CLI target selection
Ordinary CLI operations select explicit -d, project-scoped cortex use, configured default, then a sole configured deployment. Ambiguous or stale selections fail. Environment URL/key values do not override an alias. Native management verifies the selected project's endpoint, path and credentials; mutation requires an explicit target.
cortex config add-deployment development --url https://your-deployment.convex.cloud --json-only
cortex config set-path development ./host
cortex config set-key development
cortex config show --format json
cortex doctor -d development --json
set-key prompts privately. Diagnostics redact secrets. status/doctor read configuration; their explicit checks are bounded. The CLI reference explains separate SDK, app, graph and deployment operations.