Skip to main content

Configuration

Runtime application settings are public selectors; backend credentials and policy remain in trusted services.

Client settings​

OptionMeaning
deploymentUrlInstalled Convex runtime origin
assetHttpUrlExplicit owned HTTP action origin for private bytes
fetchTokenOfficial host JWT callback, including forced refresh
scopeOptional tenant/space selectors checked against current authority
onAuthChangeClear protected host views when authentication becomes false
authTimeoutMsAuthentication handshake bound; default 10,000 ms
requestTimeoutMsRPC observation bound; default 12,000 ms
clientOptional 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.