Skip to main content
Use typed Python configuration for an engine. Environment variables are process-wide settings for deployment policy, artifact downloads, caches, and child runtimes. They also configure the chowder sql CLI and the local MCP server, which create their own engines.

Engine configuration

For remote compute:
Set CHOWDER_API_TOKEN for the client credential. remote=True requires CHOWDER_API_URL unless you pass an explicit location=. CHOWDER_REMOTE=1 enables remote compute for new engines when remote is omitted. remote=False overrides that environment switch and keeps an engine local. The URL and token alone do not enable remote compute. num_gpus is remote-only and must be from 1 through 64. See Connect to remote AI compute for client selection and endpoint precedence.

Typed local runtime

LocalRuntimeConfig groups local backend settings for llama.cpp, ONNX Runtime, and transcription. Chowder manages which model runs for each operation; see Models.
See Python API for every typed field.

SQL session settings

Override the remote GPU request for later queries in the same session:
SET requires remote compute; on a local engine it raises an error. SHOW and RESET run on any engine. On a remote engine, SHOW returns null until you SET a value, and RESET returns to the engine’s num_gpus value.

Progress

Set progress= or CHOWDER_PROGRESS to one of:

Cache and source limits

engine.clear_cache() clears durable query results while preserving model and runtime artifacts. Pass artifacts=True for a full Chowder-owned artifact sweep. See Caching for what is reused and when changes cause work to run again.

Timeouts and model residency

Runtime and deployment details

These controls are primarily for packaging, acceleration, and production deployment.
Use LocalTranscriptionConfig for the transcription model and WhisperCppConfig for threads and device behavior.
Use OnnxRuntimeConfig for explicit providers and session options. CHOWDER_ACCEL supplies the process-wide auto, cpu, cuda, or coreml policy when typed providers are absent.Inspect the resolved request and runtime state with:
Chowder follows each provider’s standard credential chain:
  • AWS environment credentials, profiles, SSO, ECS, or instance roles
  • Google Application Default Credentials
  • Azure environment credentials, az login, or managed identity
  • HF_TOKEN or an existing Hugging Face login
Without credentials, Chowder reads S3, GCS, and Azure anonymously. Set AWS_SKIP_SIGNATURE, GOOGLE_SKIP_SIGNATURE, or AZURE_SKIP_SIGNATURE to true to force anonymous reads. See Amazon S3, Google Cloud Storage, and Azure Blob Storage.Do not place secrets in SQL text.
Served AI routes use the prefixes CHOWDER_INFER_BOOLEAN, CHOWDER_INFER, CHOWDER_EMBED, and CHOWDER_TRANSCRIBE. The _INFERENCE_URL suffix enables a route. Optional _INFERENCE_MODEL_NAME, _INFERENCE_MODEL_HASH, and _INFERENCE_CONCURRENCY suffixes describe the served model and bound batch concurrency. Without _INFERENCE_MODEL_HASH, inference still works but persistent result caching is disabled. Embedding additionally requires _INFERENCE_DIM and may set _INFERENCE_PROMPT_CONTRACT. Transcription requires both _INFERENCE_MODEL_NAME and _INFERENCE_MODEL_HASH, and may set _INFERENCE_SPEECH_REGIONS and _INFERENCE_MEDIA_CONCURRENCY.See Connect to remote AI compute for client settings and Self-host AI compute for server deployment. Use the same Chowder version on the client and server.