# Qwen Gate

> Qwen Gate is a self-hosted, open-source API gateway that lets you use Qwen AI models from chat.qwen.ai as a free, drop-in replacement for the OpenAI API.

- **Category:** AI
- **Licence:** MIT
- **Latest version:** v0.8.0
- **Open source:** oss
- **Languages:** Typescript, JavaScript
- **Platforms:** Docker, Windows, macOS, Build from Source
- **Tags:** Chromium, Streaming, Bun, Api Gateway, Browser automation, Self Hosted, Tool calling, Qwen, Openai compatible, Ai proxy, Coding agent, Llm proxy, Openai proxy, Free Api, Chat Gateway, Qwen Api, Qwen Gate

## Description

Qwen Gate is a self-hosted API gateway that provides OpenAI-compatible access to Qwen large language models hosted on chat.qwen.ai. It uses browser automation to authenticate with Qwen accounts and then routes API requests through a browserless fetch layer. The gateway supports streaming SSE responses, OpenAI-style function calling parsed from model output, multi-account round-robin rotation with automatic failover, session pooling for efficiency, and a web dashboard for monitoring and account management. It runs on Bun with TypeScript, requires no build step, and can be installed via Docker, a one-command shell script, or manually on Linux, macOS, and Windows. The project is MIT-licensed and intended for educational use; users must follow chat.qwen.ai's terms of service.

## Links

- [Homepage](https://github.com/youssefvdel/qwengate)
- [Website](https://github.com/youssefvdel/qwen-gate)
- [Documentation](https://github.com/youssefvdel/qwen-gate/tree/dev/docs)
- [GitHub Repository](https://github.com/youssefvdel/qwen-gate)
- [Architecture Documentation](https://github.com/youssefvdel/qwen-gate/tree/dev/docs/ARCHITECTURE.md)
- [API Reference](https://github.com/youssefvdel/qwen-gate/tree/dev/docs/API.md)
- [Deployment Guide](https://github.com/youssefvdel/qwen-gate/tree/dev/docs/DEPLOYMENT.md)
- [Development Guide](https://github.com/youssefvdel/qwen-gate/tree/dev/docs/DEVELOPMENT.md)

---
Source: https://selfhost.directory/project/qwengate