安装配置¶
环境要求¶
- Python 3.10+
- pip
安装¶
pip(推荐)¶
pip install agentcrew-mcn
源码¶
git clone https://github.com/super-rick/agentcrew-mcn.git
cd agentcrew-mcn
pip install -r requirements.txt
Docker¶
docker compose run --rm cli write generate -t "Hello World"
配置¶
agentcrew-mcn init # 创建 config.yaml + .env 模板
编辑 .env,至少填入一个 LLM API key:
DEEPSEEK_API_KEY=sk-your-key
LLM Provider¶
| Provider | 环境变量 | 默认 Model |
|---|---|---|
| DeepSeek | DEEPSEEK_API_KEY |
deepseek-chat |
| OpenAI | OPENAI_API_KEY |
gpt-4o |
| Anthropic | ANTHROPIC_API_KEY |
claude-sonnet-5 |
| Ollama | 无需(本地) | llama3 |
平台认证¶
详见 平台配置。各平台需要 Cookie / API Key / OAuth 等不同方式。
验证¶
agentcrew-mcn --help
agentcrew-mcn write generate -t "测试" --dry-run
升级¶
pip install --upgrade agentcrew-mcn