Preparation for installation
安装Trae Agent需要以下环境准备:
- Python 3.12环境
- pip包管理工具
- 推荐使用UV虚拟环境管理工具
详细安装步骤
- 安装UV工具::
pip install uv
- Creating a Virtual Environment::
uv venv
,然后根据系统激活环境 - cloning project:从GitHub克隆仓库并进入目录
- Installation of dependencies: Use
uv pip install -r requirements.txt
关键配置项
配置主要涉及两个方面:
- API Key Setting:通过环境变量配置LLM提供商密钥
- configuration file:修改项目根目录的config.json,包括默认提供商、模型参数等
安装完成后可通过trae show-config
命令验证配置是否正确。
This answer comes from the articleTrae Agent: open source software engineering task automation toolsThe