https://github.com/fmueller/qwen-code-local
A local-first version of Qwen Code
https://github.com/fmueller/qwen-code-local
Last synced: 5 months ago
JSON representation
A local-first version of Qwen Code
- Host: GitHub
- URL: https://github.com/fmueller/qwen-code-local
- Owner: fmueller
- License: mit
- Created: 2025-09-02T18:05:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-11-24T09:50:34.000Z (8 months ago)
- Last Synced: 2025-11-27T22:16:03.085Z (8 months ago)
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qwen Code Local
[](https://github.com/fmueller/qwen-code-local/actions/workflows/qwen-code-local.yaml)
A local-first version of Qwen Code
This repository contains configurations and scripts for running Qwen Code locally in a Docker container. It uses
a local-compatible OpenAI API (Ollama). Also, tracking is disabled.
The goal is to provide a local-first, asynchronous version of Qwen Code that creates branches and PRs on GitHub for you.
## Features
- Local-only
- Ollama API
- Tracking disabled
- Optionally clones a provided repository
## Next steps
- Add support for local OpenTelemetry tracking
- Add support for MCPs
- Add support for creating PRs after a successful run
## How to use
### Build the image
```bash
docker build -t qwen-code-local .
```
### Basic usage
```bash
docker run -it --rm \
-e OPENAI_BASE_URL=http://localhost:11434/v1 \
-e OPENAI_API_KEY=no-key \
-e OPENAI_MODEL=qwen3:1.7b \
qwen-code-local
```
Note: On macOS, `localhost` is not accessible, use `host.docker.internal` instead.
### Cloning a repository into the container
```bash
docker run -it --rm \
-e OPENAI_BASE_URL=http://localhost:11434/v1 \
-e OPENAI_API_KEY=no-key \
-e OPENAI_MODEL=qwen3:1.7b \
-e REPO_URL=github.com/username/repository.git \
qwen-code-local
```
The repository will be cloned to `/home/qwen/repo` inside the container.
For private repositories, include your GitHub Personal Access Token:
```bash
docker run -it --rm \
-e OPENAI_BASE_URL=http://localhost:11434/v1 \
-e OPENAI_API_KEY=no-key \
-e OPENAI_MODEL=qwen3:1.7b \
-e REPO_URL=github.com/username/private-repo.git \
-e GITHUB_PAT=your_github_token \
qwen-code-local
```
### Cloning big repositories with shallow clones
For faster cloning of large repositories, use shallow clone:
```bash
docker run -it --rm \
-e OPENAI_BASE_URL=http://localhost:11434/v1 \
-e OPENAI_API_KEY=no-key \
-e OPENAI_MODEL=qwen3:1.7b \
-e REPO_URL=github.com/username/repository.git \
-e CLONE_SHALLOW=1 \
qwen-code-local
```
## License
[MIT License](LICENSE)
## Contribute
Feel free to open issues or PRs.