Lyber
Request access
DocsQwen Code

Agents

Markdown

Qwen Code

The terminal agent from the Qwen team, in OpenAI-compatible mode.

Easy setup

Copy this prompt into Qwen Code itself or any coding agent you use, such as Claude Code, Codex or Cursor. It adds Lyber to Qwen Code's settings, keeps your key out of every file, and checks the connection without spending credit.

qwen-code-lyber-setup.txt
Set up Qwen Code on this computer to use Lyber, an OpenAI-compatible API.

Lyber:
- Base URL: https://lyber-paid-acceptance-gateway-production.up.railway.app/v1
- Models: minimax-m3.1-flash-abliterated (default; 1,048,576-token context, 32,768-token output) and deepseek-v4.1-flash-1017-abliterated (1,048,576-token context, 262,144-token output)
- API key: in the LYBER_API_KEY environment variable. Never print it, never write it into a file, and never ask me to paste it into this chat.

Do this:
1. Add this line to my shell profile (~/.zshrc or ~/.bashrc, whichever my shell uses), unless an equivalent line is already there:

alias qwen-lyber='OPENAI_BASE_URL=https://lyber-paid-acceptance-gateway-production.up.railway.app/v1 OPENAI_API_KEY="$LYBER_API_KEY" OPENAI_MODEL=minimax-m3.1-flash-abliterated qwen'

2. If Qwen Code isn't installed, tell me to run: npm install -g @qwen-code/qwen-code
3. If LYBER_API_KEY isn't set in my shell, tell me to add export LYBER_API_KEY="…" to my shell profile myself and open a new terminal.
4. Check the key without spending credit. This should print 200:
curl -s -o /dev/null -w "%{http_code}\n" https://lyber-paid-acceptance-gateway-production.up.railway.app/v1/models -H "Authorization: Bearer $LYBER_API_KEY"
5. Tell me what you changed and how to start Qwen Code on Lyber: qwen-lyber
Don't send a chat request through Lyber unless I ask.

Manual setup

1. Install Qwen Code

terminal
npm install -g @qwen-code/qwen-code

2. Put your key in your environment

Add this to your shell profile (~/.zshrc or ~/.bashrc) and open a new terminal.

terminal
export LYBER_API_KEY="lyber_prepaid_…"

3. Add a launcher to your shell profile

~/.zshrc
alias qwen-lyber='OPENAI_BASE_URL=https://lyber-paid-acceptance-gateway-production.up.railway.app/v1 OPENAI_API_KEY="$LYBER_API_KEY" OPENAI_MODEL=minimax-m3.1-flash-abliterated qwen'

4. Start Qwen Code

terminal
qwen-lyber

Notes

  • Qwen Code reads its OpenAI-compatible settings from these variables. The alias sets them only for that command.
  • Change OPENAI_MODEL to deepseek-v4.1-flash-1017-abliterated for the DeepSeek model.