CLI
Klien baris-arahan kecil untuk bersembang dengan workspace anda daripada terminal — strim balas, sesi interaktif dan paip stdin. Ia berkomunikasi dengan endpoint serasi-OpenAI, jadi ia hanya memerlukan kunci API workspace.
Pasang
CLI didatangkan dalam repositori nexevo-ai. Daripada checkout, jalankan ia sebagai modul:
bash
python -m cli --help
# optional: a shorter alias for the examples below
alias nexevo='python -m cli'Konfigurasi
Simpan kunci API workspace anda sekali (ditulis ke ~/.nexevo/config.json, boleh dibaca pemilik sahaja):
bash
nexevo config set api_key sk-ws-...
nexevo config show # api_key is maskedPembolehubah persekitaran mengatasi konfigurasi tersimpan: NEXEVO_API_KEY, NEXEVO_BASE_URL (lalai https://nexevo.ai/v1), NEXEVO_MODEL.
Sembang
bash
# one-shot
nexevo chat "Summarize our Q2 results."
# interactive session (keeps the conversation; empty line or Ctrl-D to exit)
nexevo chat
# pipe stdin
git diff | nexevo chat "Review this change."
# pin a specific model (default is nexevo-auto → the router picks)
nexevo chat --model nexevo-auto "Draft a release note."Balas distrimkan token demi token. Penghalaan, pengebilan dan BYOK adalah sama seperti setiap panggilan Nexevo lain — CLI ialah klien nipis di atas API serasi-OpenAI.