Init Non-Interactive
midicoder init hỗ trợ non-interactive cho CI/CD.
Xem danh sách tùy chọn
midicoder init --config-list
Environment variables
export MIDICODER_WORKING_DIR=/path/to/project
export MIDICODER_STACK=fastapi,nest
export MIDICODER_LLM_HIGH_PROVIDER=anthropic
export MIDICODER_LLM_HIGH_MODEL=claude-sonnet-4-5
export MIDICODER_LLM_HIGH_URL=https://api.anthropic.com
export MIDICODER_LLM_HIGH_API_KEY=sk-ant-...
export MIDICODER_LLM_CHEAP_PROVIDER=anthropic
export MIDICODER_LLM_CHEAP_MODEL=claude-3-5-haiku
export MIDICODER_LLM_CHEAP_URL=https://api.anthropic.com
export MIDICODER_LLM_CHEAP_API_KEY=sk-ant-...
midicoder init --non-interactive
Command-line flags
midicoder init \
--non-interactive \
--working-dir /path/to/project \
--stack fastapi,nest \
--llm-high-provider anthropic \
--llm-high-model claude-sonnet-4-5 \
--llm-high-url https://api.anthropic.com \
--llm-high-key-env ANTHROPIC_API_KEY \
--llm-cheap-provider anthropic \
--llm-cheap-model claude-3-5-haiku \
--llm-cheap-url https://api.anthropic.com \
--llm-cheap-key-env ANTHROPIC_API_KEY
Thứ tự ưu tiên
- Command-line flags
- Environment variables
- Default
Lưu ý bảo mật
Không truyền API key thật qua --llm-*-key. Hãy dùng --llm-*-key-env.