Git-like CLI untuk mengelola Qiscus Agent Copilot — edit
interaction_rules&organization_descriptionsebagai markdown, versioning lokal, push/pull ke server.
curl -fsSL https://raw.githubusercontent.com/Qiscus-Integration/agentlabs_cli/main/install.sh | shAtau pakai wget:
wget -qO- https://raw.githubusercontent.com/Qiscus-Integration/agentlabs_cli/main/install.sh | shSetelah selesai, jalankan:
qalabs --versionSelesai. Kalau direktori install (/usr/local/bin atau ~/.local/bin) belum ada di PATH, installer akan kasih satu baris untuk dimasukkan ke shell rc.
Tidak ada. Binary self-contained — Node.js tidak perlu di-install.
Platform yang didukung: macOS (arm64, x64), Linux (x64, arm64), Windows (x64).
mkdir my-bot && cd my-bot
qalabs init # bikin .qalabs/ (mirip git init)
qalabs configure # masukkan App ID, App Secret (masked), Admin Emailconfigure selalu interaktif — secret tidak akan terlihat di shell history.
qalabs list # daftar bot di server
qalabs use 123 --name "My Bot" # pilih bot
qalabs pull # download → rules.md, organization.md, bot.json, tools/Setelah pull:
my-bot/
├── rules.md # interaction_rules (editable)
├── organization.md # organization_description (editable)
├── bot.json # field pendek (model, vendor, args.*, foa_status, ...)
├── tools/ # satu folder per tipe tool
│ ├── http_api/
│ ├── markdown/
│ ├── pdf/
│ └── ...
└── .qalabs/ # snapshot history (jangan disentuh)
$EDITOR rules.md
qalabs status # ringkasan apa yang berubah
qalabs diff # full unified diff
qalabs push -m "tighten greeting" # PATCH ke server + snapshot barupush cuma kirim field yang berubah. Kalau bot di server di-update orang lain setelah pull-mu, push akan ditolak — qalabs pull dulu, atau pakai qalabs push --force.
qalabs log # daftar snapshot (newest first)
qalabs diff <ts1> <ts2> # bandingkan dua snapshot
qalabs restore <timestamp> # tarik working files ke snapshot tertentu
qalabs doctor # diagnostic lengkap (auth, snapshots, sync state)qalabs update --check # cek versi terbaru
qalabs update # download + replace binary
qalabs uninstall # hapus binary; tanya konfirmasi sebelum hapus ~/.qalabs# Non-interactive `configure` untuk CI (tidak pernah dibaca dari argv supaya
# secret tidak nyangkut di shell history / ps aux).
QALABS_APP_ID=...
QALABS_APP_SECRET=...
QALABS_ADMIN_EMAIL=...
QALABS_SERVER=https://chatgpt.qiscus.com
# Override install dir / versi installer
QALABS_INSTALL_DIR="$HOME/.local/bin"
QALABS_VERSION=v1.2.0Session credential (~/.qalabs/session/*/session.json) disimpan terenkripsi (AES-256-GCM, key derived dari fingerprint mesin) dengan permission 0600. Backup yang tidak sengaja ke-share atau git add tidak bisa dipakai di mesin lain. Detail lengkap & escape hatch ada di dokumentasi internal tim.
qalabs --help
qalabs <command> --helpDokumentasi & source code internal — hubungi tim Qiscus.
MIT