CLI
ターミナルからワークスペースと対話するための小型コマンドラインクライアント——ストリーミング返答、インタラクティブなセッション、stdin パイプに対応します。OpenAI 互換エンドポイントと通信するため、ワークスペースの API キーのみが必要です。
インストール
CLI は nexevo-ai リポジトリに同梱されています。チェックアウトから、モジュールとして実行します:
bash
python -m cli --help
# optional: a shorter alias for the examples below
alias nexevo='python -m cli'設定
ワークスペースの API キーを一度だけ保存します(~/.nexevo/config.json に書き込まれ、所有者のみ読み取り可能):
bash
nexevo config set api_key sk-ws-...
nexevo config show # api_key is masked環境変数は保存された設定より優先されます:NEXEVO_API_KEY、NEXEVO_BASE_URL(デフォルト https://nexevo.ai/v1)、NEXEVO_MODEL。
Chat
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."返答はトークンごとにストリーミングされます。ルーティング、課金、BYOK は他のすべての Nexevo 呼び出しと同じです——CLI は OpenAI 互換 API の薄いクライアントにすぎません。