Cấu hình OpenCode cá nhân của tôi - commands và settings.
- Copy
opencode.jsonvào~/.config/opencode/opencode.json - Thêm API keys của bạn vào
opencode.json - Copy commands từ
command/vào folder commands của opencode
opencode-configs/
├── command/ # Slash commands
├── opencode.json # Main config template
├── README.md # Tiếng Anh
└── README.vi.md # Tiếng Việt
| Command | Mô tả |
|---|---|
/check |
Báo cáo tiến độ plan hiện tại |
/commit |
Commit thông minh với conventional messages |
/continue |
Tiếp tục plan đang dở |
/exec |
Thực thi plan (parallel/sequential) |
/next |
Chạy task pending tiếp theo trong plan |
/plan |
Tạo implementation plan |
/push |
Push lên GitHub, tạo PR nếu cần |
/recap |
Tóm tắt những gì agent đã làm |
/report |
Báo cáo trạng thái project đầy đủ |
/wrap |
Tạo walkthrough + learning summary |
opencode.json là template - bạn phải thêm API keys của mình:
{
"provider": {
"minimax": {
"options": {
"apiKey": "YOUR_MINIMAX_API_KEY"
}
},
"bailian-coding-plan": {
"options": {
"apiKey": "YOUR_ALIYUN_API_KEY"
}
}
}
}Config cá nhân - thoải mái adapt cho use case của bạn.