To install Pywen you only need to executepip install pywen
command. The first time you run the program, it automatically starts the configuration wizard:
- Enter the AliCloud Dashscope API Key
- Set the Base URL to
https://dashscope.aliyuncs.com/compatible-mode/v1
- Select model (default is qwen3-coder-plus)
The configuration is saved aspywen_config.json
file. In addition, the environment variableQWEN_API_KEY
and other ways to configure dynamically, in the order of priority: command line arguments > configuration files > environment variables.
This answer comes from the articlePywen: A Python Command Line AI Assistant Built for Software DevelopmentThe