hontoni-oc
v0.1.6
Published
CLI bootstrapper for Hontoni-powered OpenCode projects
Maintainers
Readme
hontoni-oc
CLI bootstrapper cho các dự án OpenCode sử dụng Hontoni proxy.
Cài đặt
npm install -g hontoni-ocCommands
hontoni-oc init [options]
Khởi tạo Hontoni + OpenCode workspace trong thư mục hiện tại.
| Flag | Mô tả |
|---|---|
| --beads | Khởi tạo .beads/ cho multi-agent coordination |
| --force | Ghi đè .opencode/ đã tồn tại |
| --backup | Sao lưu .opencode/ hiện tại trước khi ghi đè |
| --global | Cài vào ~/.config/opencode thay vì cwd |
| --free | Preset model tiết kiệm |
| --recommend | Preset model được khuyến nghị (default) |
| --base-url <url> | Override Hontoni base URL |
| --api-key <key> | Ghi HONTONI_API_KEY vào .env |
| --no-install | Bỏ qua bun install |
| -y, --yes | Skip tất cả prompt |
hontoni-oc upgrade [options]
Nâng cấp .opencode/ lên version template mới nhất.
| Flag | Mô tả |
|---|---|
| --check | Chỉ hiển thị diff, không ghi file |
| --force | Ghi đè ngay cả khi có customization |
| --no-backup | Không tạo backup trước khi overwrite |
hontoni-oc doctor
Kiểm tra môi trường (Node, Bun, git, beads, template, .env API key).
hontoni-oc status
In trạng thái project hiện tại.
Quick start
mkdir my-project && cd my-project
# Interactive
hontoni-oc init
# Non-interactive
hontoni-oc init --yes --recommend --beads --api-key hnt_xxxxxxxxxxxxSau khi xong:
export HONTONI_API_KEY=hnt_xxxxxxxxxxxx
opencodeLicense
MIT © 2026 Khai Nguyen
