Integrations / Qwen Code
Q
Qwen Code
Qwen · Verified setup guide
Open-source terminal agent (a Gemini CLI fork). It speaks several protocols; point its OpenAI mode at LuxeChain.
Setup steps
- 1Installnpm install -g @qwen-code/qwen-code (or brew install qwen-code).
- 2Set the OpenAI variablesExport OPENAI_API_KEY, OPENAI_BASE_URL and OPENAI_MODEL below.
- 3Run qwencd into a project and run qwen.
- 4VerifyAsk it to explain the repository; it now runs on your balance.
Configuration example
bash
export OPENAI_BASE_URL="https://api.luxechain.si/v1" export OPENAI_API_KEY="lxc_live_YOUR_KEY" export OPENAI_MODEL="YOUR_MODEL_ID" # any model id from the /models page qwen
Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.
Troubleshooting
Qwen Code is multi-protocol. Use the OpenAI-compatible variables so it calls the chat-completions API we serve.
If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.