Skip to main content
Get QWED up and running in minutes.

Python SDK

After installing, run the onboarding wizard to set up verification engines, configure your LLM provider, and generate a local API key:
The wizard runs four checks. First, it confirms that core engines (SymPy, Z3, AST, SQLGlot) are installed. Next, it walks you through selecting a provider — NVIDIA NIM, OpenAI, Anthropic, Google Gemini, or any OpenAI-compatible endpoint. It then validates your credentials. Finally, it bootstraps a ready-to-use API key. For CI pipelines, use --non-interactive. See the CLI reference for all options. After init, verify your setup and run the built-in test suite:
qwed doctor reports the status of verification engines, LLM provider connectivity, and the database. qwed test runs deterministic tests across Math, Logic, SQL, and Code engines to confirm everything works correctly. See the CLI reference for details on both commands.

Requirements

  • Python 3.10+
  • Optional: Redis (for caching)

Symbolic engine (optional)

From v8.0.0, the Symbolic engine runs CrossHair only inside a Docker sandbox. Install the symbolic extra, which includes CrossHair and the docker client, then build the sandbox image from a qwed-verification checkout:
The image comes from docker/crosshair-sandbox/Dockerfile and is never pulled at runtime. To use a different tag, set QWED_CROSSHAIR_IMAGE. Without Docker or the image, symbolic verification returns BLOCKED. See Docker sandbox requirement.

TypeScript SDK

Go SDK

Rust SDK


Full stack (self-hosted)

To run the complete QWED stack locally (API server, Postgres, Redis, Jaeger, Prometheus, and Grafana), use Docker Compose:
Compose refuses to start while a required value in deploy/.env is empty. See Self-hosting for the full list. To run only the API server from source instead:

Docker image

The qwedai/qwed-verification image on Docker Hub runs the API server on port 8000. Pass the required secrets from your shell when you start it:
The server names no model. For requests that use a provider (natural-language, logic, statistics, and fact), also pass the provider’s settings, for example -e ACTIVE_PROVIDER -e OPENAI_API_KEY -e OPENAI_MODEL. The container doesn’t read the qwed init settings on your host.
The image runs the API server from version 8.0.0. Earlier tags ran the QWED GitHub Action. To scan a repository, use the GitHub Action instead of the image.

Infrastructure URLs

Enterprise support coming soon: Managed hosting and dedicated support. Contact support@qwedai.tech

Next steps