Skip to main content
Learn how to set up and run QWED in your development environment.
Don’t call your LLM directly. QWED runs as a backend server with your LLM API keys configured in environment variables. See Common pitfalls for details.

Architecture overview

QWED uses a backend server model:

Step 1: Clone and install


Step 2: Configure LLM provider

QWED is model agnostic — select any LLM based on your needs:

Create environment file

Select your LLM provider

Edit .env and add your API key for one provider:
Get an API key: https://platform.openai.com/api-keys
For AWS Bedrock and more options, see LLM configuration.

Step 3: Run the QWED backend server

Keep this terminal running. The server must stay active.

Step 4: Install the SDK

In a new terminal, install the QWED SDK in your project:

Step 5: Use the SDK

Connect your application to the local QWED backend:

Verify installation

Run this test to ensure everything is working:

Next steps

Once your integration is working:

Troubleshooting

Backend won’t start

Problem:
Solution: Check your .env file has the correct API key for your selected provider.

SDK can’t connect

Problem:
Solution:
  1. Make sure backend is running (python -m qwed_api)
  2. Check backend terminal for errors
  3. Verify port 8000 is not blocked

Wrong results

Problem: Verification results are incorrect or unexpected. Solution:
  1. Check which LLM provider you configured
  2. Verify your API key is valid
  3. See Testing guide for detailed diagnostics

Need help?