Qwen Code is a terminal coding assistant that can use XycAi through the OpenAI-compatible API.
After installing Qwen Code, set these variables in your shell:
npm install -g @qwen-code/qwen-code
export OPENAI_BASE_URL="https://cn.chatapi.app/v1"
export OPENAI_API_KEY="sk-xxxxxxxx"
Run qwen (or the CLI command shipped by your install) and choose a model for your task.
$env:OPENAI_BASE_URL and $env:OPENAI_API_KEY.