Skip to main content
Learn QWED basics in 5 minutes.

1. Basic verification

2. Math verification

Verify mathematical expressions exactly:

3. Logic verification

Verify logical constraints using Z3 SAT solver:
The /verify/logic API endpoint returns a DiagnosticResult: SAT is VERIFIED, UNSAT is UNVERIFIABLE, and anything else is BLOCKED. The solver’s own SAT or UNSAT is in developer_fields.status. The high-level SDK client (client.verify_logic()) returns that response as a VerificationResult, which has no developer_fields attribute: read the solver’s verdict as result.result["developer_fields"]["status"]. The admission is always BLOCKED, because the constraints are an LLM’s translation of your query and nothing checks that they mean what you asked. The low-level LogicVerifier class in qwed_new returns the unified DiagnosticResult with status, developer_fields, agent_message, and proof_ref. See LogicVerifier returns DiagnosticResult for the full status matrix and migration snippets.

4. Code security

Check code for vulnerabilities:

5. SQL validation

Validate SQL queries:

6. Batch verification

Verify multiple claims at once:

7. CLI usage

Run the onboarding wizard once to set up engines, configure your provider, and generate an API key:
After init, verify your setup and confirm all engines work:
Then verify from the command line:
For CI pipelines, use --non-interactive to skip prompts:
You only need to run qwed init once. After that, QWED reads from .env. Re-run only when changing providers or rotating keys.

Next steps