Skip to main content
Chowder is local by default. Connect to Chowder Cloud for fully managed AI compute while keeping columnar SQL planning and inference-aware execution control in your application. This guide configures the client; the same settings also work with an existing self-hosted endpoint. For account setup and your first managed workload, start with the Chowder Cloud quickstart. This guide covers the shared connection settings for Cloud and self-hosted endpoints.

Use environment variables with chowder.sql()

Copy your Cloud API URL from Step 2 under Get started on your Chowder Cloud dashboard. For self-hosted compute, use the URL provided by the server operator. Set these variables before launching Python or your notebook kernel.
Call the module-level API directly. Use a notebook for rich display, or replace chowder.display(result) with print(result) in a terminal script:
chowder.sql() uses a shared default engine. Set the environment before Chowder creates it. If the engine already exists, finish or cancel its work and call chowder.close() before your next query. You can also restart your notebook kernel and set the variables again. Call chowder.close() when you finish using the default engine.

Select remote compute with Python

For explicit engine configuration and lifecycle control, set CHOWDER_API_URL and CHOWDER_API_TOKEN as shown above, then use remote=True to opt in for that engine.
Set CHOWDER_API_URL when opting in with CHOWDER_REMOTE=1 or Engine(remote=True). If the URL is unset or blank, Chowder raises ValueError when creating the engine. You can also pass an explicit location= to select an endpoint and opt in for that engine.

Keep control with Python

Configuring a URL and token alone does not enable remote compute. remote=False cannot be combined with an explicit remote location=; contradictory settings raise a configuration error.
An explicit, nonblank token= overrides CHOWDER_API_TOKEN. Local engines do not use the remote credential.

Connect to a self-hosted endpoint

The same client settings work with a self-hosted server. Set CHOWDER_API_URL to the endpoint provided by its operator and CHOWDER_API_TOKEN to your client credential, then opt in to remote compute as above. For example:
If you want to operate the server yourself, follow Self-host AI compute in Advanced.

What stays local

  • SQL parsing and planning
  • AI-aware predicate ordering and LIMIT control
  • Source discovery and local file access
  • Native JSON, CSV, Parquet, and MCAP reads
Remote capabilities are negotiated when the engine connects. Unsupported operations fail explicitly instead of falling back to a different local model or execution path.