CLI リファレンス
グローバルオプション
Section titled “グローバルオプション”claudex [OPTIONS] [COMMAND]| オプション | 説明 |
|---|---|
--config <PATH> | 設定ファイルパスを上書き |
--version | バージョンを表示 |
--help | ヘルプを表示 |
コマンドなしで実行すると、プロファイルが設定されている場合は TUI ダッシュボードを起動し、プロファイルが存在しない場合はウェルカムメッセージを表示します。
特定のプロバイダープロファイルで Claude Code を実行します。
claudex run <PROFILE> [PROMPT] [OPTIONS] [-- ARGS...]| 引数 / オプション | 説明 |
|---|---|
PROFILE | プロファイル名、またはスマートルーティングの場合は auto |
PROMPT | 非対話(ワンショット)実行のための任意のプロンプト |
-m, --model MODEL | このセッションのデフォルトモデルを上書き |
--hyperlinks | OSC 8 ターミナルハイパーリンクを強制有効化 |
--print | レスポンスを出力して終了(非対話モード) |
--dangerously-skip-permissions | すべての権限プロンプトをスキップ(CI/CD で --print と併用) |
ARGS... | claude に渡す追加引数(-- の後) |
# Grok を使用(対話モード)claudex run grok
# 特定のモデルで Grok を使用claudex run grok -m grok-3-mini-beta
# スマートルーティングclaudex run auto
# ターミナルハイパーリンクを強制有効化claudex run grok --hyperlinks
# 非対話ワンショット実行claudex run grok "Explain this codebase" --print
# CI/CD パイプラインでの使用(プロンプトなし、権限なし)claudex run grok "Fix lint errors" --print --dangerously-skip-permissions
# claude に追加引数を渡すclaudex run grok -- --verboseprofile
Section titled “profile”プロバイダープロファイルを管理します。
profile list
Section titled “profile list”claudex profile listステータス、プロバイダータイプ、モデルを含む設定済みのすべてのプロファイルを一覧表示します。
profile add
Section titled “profile add”claudex profile add新しいプロファイルを追加する対話型ウィザード。プロバイダー選択、API キー入力(オプションでキーリング保存)、モデル選択、接続テストをガイドします。
profile show
Section titled “profile show”claudex profile show <NAME>すべての設定フィールドを含む特定プロファイルの詳細を表示します。
profile remove
Section titled “profile remove”claudex profile remove <NAME>設定からプロファイルを削除します。
profile test
Section titled “profile test”claudex profile test <NAME|all>特定のプロファイルまたはすべてのプロファイルの接続テストを行います。プロバイダーの /models エンドポイントに軽量リクエストを送信します。
プロバイダープロファイルの OAuth サブスクリプション認証を管理します。
auth login
Section titled “auth login”claudex auth login <PROVIDER> [OPTIONS]| オプション | 説明 |
|---|---|
--profile <NAME> | 特定のプロファイルに関連付け |
--enterprise-url <URL> | カスタムエンタープライズサーバー URL(セルフホスト GitLab 等) |
--headless | ヘッドレス(デバイスコード)フローを使用、ブラウザ起動をスキップ |
OAuth を使用してプロバイダーにログインします。対応プロバイダー: claude、openai、google、qwen、kimi、github、gitlab。
# OpenAI にログイン(Codex CLI から読み取り)claudex auth login openai --profile codex-sub
# Claude にログイン(~/.claude から読み取り)claudex auth login claude
# Google にログインclaudex auth login google --profile gemini-sub
# エンタープライズ URL で GitLab にログインclaudex auth login gitlab --enterprise-url https://gitlab.mycompany.com
# ヘッドレスモード(ブラウザなし、デバイスコードのみ)claudex auth login github --headlessauth status
Section titled “auth status”claudex auth status [PROVIDER]現在の認証ステータスを表示します。プロバイダー引数なしの場合、設定済みのすべての OAuth プロファイルのステータスを表示します。
# すべての OAuth プロファイルを確認claudex auth status
# 特定のプロバイダーを確認claudex auth status openaiauth refresh
Section titled “auth refresh”claudex auth refresh <PROVIDER>プロバイダーの OAuth トークンを手動でリフレッシュします。トークンは期限切れ時にプロキシによっても自動的にリフレッシュされます。
auth logout
Section titled “auth logout”claudex auth logout <PROVIDER>プロバイダーの保存済み OAuth トークンをシステムキーリングから削除します。
翻訳プロキシサーバーを管理します。
proxy start
Section titled “proxy start”claudex proxy start [OPTIONS]| フラグ | 説明 |
|---|---|
-p, --port PORT | プロキシポートを上書き(デフォルト: 設定から) |
-d, --daemon | バックグラウンドデーモンとして実行 |
proxy stop
Section titled “proxy stop”claudex proxy stopプロキシデーモンを停止します(PID ファイル経由で SIGTERM を送信)。
proxy status
Section titled “proxy status”claudex proxy statusプロキシが実行中かどうかとポートを表示します。
dashboard
Section titled “dashboard”claudex dashboardリアルタイム監視とクイック起動のための TUI ダッシュボードを起動します。
config
Section titled “config”設定ファイルを管理します。
config show
Section titled “config show”claudex config show読み込まれた設定ファイルパス、検索順序、現在の設定値を表示します。
config path
Section titled “config path”claudex config path解決された設定ファイルパスのみを表示します。
config init
Section titled “config init”claudex config init組み込みテンプレートからカレントディレクトリに新しい設定ファイルを作成します。
config recreate
Section titled “config recreate”claudex config recreateconfig.example.toml から設定ファイルを再作成し、既存の設定を上書きします。
config edit
Section titled “config edit”claudex config edit$EDITOR(または $VISUAL)で設定ファイルを開きます。
config validate
Section titled “config validate”claudex config validate設定の構文、プロファイル参照(backup_providers、router rules)、OAuth プロバイダー設定を検証します。エラーと警告を報告します。
config get
Section titled “config get”claudex config get <KEY>キーパス(例: proxy_port、profiles.0.name)で特定の設定値を取得します。
config set
Section titled “config set”claudex config set <KEY> <VALUE>キーパスで特定の設定値を設定します。
config export
Section titled “config export”claudex config export現在のマージ済み設定を TOML 形式で標準出力にエクスポートします。
コンフィギュレーションセット(ルール、スキル、MCP サーバーのインストール可能なバンドル)を管理します。
sets add
Section titled “sets add”claudex sets add <PATH>manifest.json(または manifest.yaml)を含むローカルディレクトリからコンフィギュレーションセットをインストールします。
sets remove
Section titled “sets remove”claudex sets remove <NAME>名前を指定してインストール済みのコンフィギュレーションセットを削除します。
sets list
Section titled “sets list”claudex sets listインストール済みのすべてのコンフィギュレーションセットをバージョン、説明、コンポーネントの概要とともに一覧表示します。
sets update
Section titled “sets update”claudex sets update <NAME> <PATH>新しいマニフェストパスから既存のコンフィギュレーションセットを更新します。
sets show
Section titled “sets show”claudex sets show <NAME>すべてのコンポーネントを含む、インストール済みコンフィギュレーションセットの詳細情報を表示します。
update
Section titled “update”claudex update [OPTIONS]| フラグ | 説明 |
|---|---|
--check | アップデートの確認のみ行い、インストールしない |
--check なしの場合は、GitHub Releases から最新バージョンをダウンロードしてインストールします。