OpenClaw コマンド
複数のメッセージングチャネルとプラットフォームにわたる個人AIエージェントを管理するための包括的なOpenClawコマンド集です。
インストール
Section titled “インストール”| プラットフォーム | Command |
|---|---|
| macOS/Linux | curl -fsSL https://openclaw.ai/install.sh | bash |
| npm (グローバル) | npm install -g openclaw |
| アップデート | openclaw update |
| バージョン確認 | openclaw --version |
セットアップとオンボーディング
Section titled “セットアップとオンボーディング”| Command | 説明 |
|---|---|
openclaw onboard | ゲートウェイ、ワークスペース、チャネル、スキルの対話式セットアップウィザード |
openclaw onboard --install-daemon | セットアップしてゲートウェイをバックグラウンドサービスとしてインストール |
openclaw onboard --flow quickstart | 合理的なデフォルトによるクイックセットアップ |
openclaw onboard --flow advanced | すべての設定オプションを含む完全セットアップ |
openclaw onboard --non-interactive | ヘッドレスセットアップ(明示的なフラグが必要) |
openclaw setup --workspace ~/my-agent | 設定とワークスペースディレクトリの初期化 |
openclaw configure | モデル、チャネル、スキル、ゲートウェイの対話式ウィザード |
openclaw doctor | 設定とゲートウェイのヘルスチェックとクイックフィックス |
openclaw doctor --deep | システムサービスを含むディープスキャン |
openclaw reset --scope config | 設定のみリセット |
openclaw reset --scope full --yes | 設定、認証情報、セッションの完全リセット |
| Command | 説明 |
|---|---|
openclaw config get <path> | 設定値を表示 |
openclaw config set <path> <value> | 設定値を設定(JSON5または生文字列) |
openclaw config unset <path> | 設定値を削除 |
openclaw configure | 対話式設定ウィザードを起動 |
| Variable | 用途 |
|---|---|
OPENCLAW_HOME | デフォルトのホームディレクトリを上書き |
OPENCLAW_STATE_DIR | カスタムステートディレクトリ |
OPENCLAW_CONFIG_PATH | カスタム設定ファイルパス |
ゲートウェイ管理
Section titled “ゲートウェイ管理”| Command | 説明 |
|---|---|
openclaw gateway run | WebSocketゲートウェイをフォアグラウンドで実行 |
openclaw gateway run --port 18789 | 特定のポートでゲートウェイを実行 |
openclaw gateway run --bind lan | LANインターフェースにバインド |
openclaw gateway run --bind tailnet | Tailscale経由でバインド |
openclaw gateway status | RPC経由でゲートウェイの状態を確認 |
openclaw gateway health | 実行中のゲートウェイのヘルスを取得 |
openclaw gateway install | ゲートウェイをシステムサービスとしてインストール |
openclaw gateway start | インストール済みサービスを開始 |
openclaw gateway stop | 実行中のサービスを停止 |
openclaw gateway restart | サービスを再起動 |
openclaw gateway uninstall | サービスを削除 |
openclaw gateway discover | ネットワーク上のゲートウェイを検出 |
openclaw logs --follow | ゲートウェイログをリアルタイムで表示 |
openclaw logs --limit 100 --json | 直近100件のログエントリをJSONで表示 |
チャネル管理
Section titled “チャネル管理”| Command | 説明 |
|---|---|
openclaw channels list | 設定済みの全チャネルと認証プロファイルを表示 |
openclaw channels status | ゲートウェイの到達性とチャネルのヘルスを確認 |
openclaw channels add --channel telegram | Telegramチャネルを追加 |
openclaw channels add --channel whatsapp | WhatsAppチャネルを追加 |
openclaw channels add --channel discord | Discordチャネルを追加 |
openclaw channels add --channel slack | Slackチャネルを追加 |
openclaw channels add --channel signal | Signalチャネルを追加 |
openclaw channels add --channel imessage | iMessageチャネルを追加 |
openclaw channels add --channel msteams | Microsoft Teamsチャネルを追加 |
openclaw channels remove --channel telegram | チャネルを削除 |
openclaw channels login --channel discord | 対話式チャネルログイン |
openclaw channels logout --channel telegram | チャネルからログアウト |
openclaw channels logs --channel whatsapp | 最近のチャネルログを表示 |
メッセージング
Section titled “メッセージング”| Command | 説明 |
|---|---|
openclaw message send --text "Hello" | メッセージを送信 |
openclaw message send --to user123 --text "Hi" | 特定の宛先にメッセージを送信 |
openclaw message poll | 新着メッセージをポーリング |
openclaw message read | メッセージを既読にする |
openclaw message edit --text "Updated" | 送信済みメッセージを編集 |
openclaw message delete | メッセージを削除 |
openclaw message react --emoji "👍" | メッセージにリアクション |
openclaw message reactions | メッセージのリアクション一覧 |
openclaw message search --text "query" | メッセージを検索 |
openclaw message pin | メッセージをピン留め |
openclaw message unpin | メッセージのピン留めを解除 |
openclaw message pins | ピン留めされたメッセージを一覧表示 |
openclaw message thread create | メッセージスレッドを作成 |
openclaw message thread list | スレッド一覧を表示 |
openclaw message thread reply | スレッドに返信 |
エージェント管理
Section titled “エージェント管理”| Command | 説明 |
|---|---|
openclaw agent --message "Research this topic" | ゲートウェイ経由でエージェントの単一ターンを実行 |
openclaw agent --message "Hello" --thinking high | 拡張思考付きのエージェントターン |
openclaw agent --message "task" --local | エージェントをローカルで実行(組み込み) |
openclaw agent --message "task" --deliver | レスポンスをチャネルに配信 |
openclaw agents list | 設定済みのエージェント一覧 |
openclaw agents add myagent --workspace ~/work | ワークスペース付きの分離されたエージェントを追加 |
openclaw agents add myagent --model claude-sonnet | 特定のモデルでエージェントを追加 |
openclaw agents delete myagent --force | エージェントを削除 |
| Command | 説明 |
|---|---|
openclaw models list | 利用可能なモデルを一覧表示 |
openclaw models list --all | 利用不可のモデルを含む全モデルを一覧表示 |
openclaw models list --local | ローカルモデルのみ一覧表示 |
openclaw models list --provider anthropic | プロバイダーでフィルタリング |
openclaw models status | トークンと認証の状態を表示 |
openclaw models status --probe | 認証プロファイルのライブプローブ |
openclaw models set claude-sonnet | プライマリモデルを設定 |
openclaw models set-image dall-e-3 | プライマリ画像モデルを設定 |
openclaw models scan | 利用可能なモデルをスキャンして検出 |
openclaw models auth add | 対話式認証ヘルパー |
openclaw models auth setup-token --provider openai | プロバイダートークンをセットアップ |
openclaw models fallbacks add gpt-4o | フォールバックモデルを追加 |
openclaw models fallbacks list | フォールバックモデルを一覧表示 |
openclaw models aliases add sonnet claude-sonnet | モデルのエイリアスを作成 |
ブラウザ制御
Section titled “ブラウザ制御”| Command | 説明 |
|---|---|
openclaw browser start | 制御対象ブラウザを起動 |
openclaw browser stop | ブラウザを閉じる |
openclaw browser status | ブラウザの状態を確認 |
openclaw browser open "https://example.com" | ブラウザでURLを開く |
openclaw browser tabs | 開いているタブを一覧表示 |
openclaw browser focus <targetId> | 特定のタブにフォーカス |
openclaw browser close <targetId> | 特定のタブを閉じる |
openclaw browser screenshot | ビューポートのスクリーンショットを取得 |
openclaw browser screenshot --full-page | ページ全体のスクリーンショット |
openclaw browser snapshot --format aria | アクセシビリティツリーを取得 |
openclaw browser navigate "https://url" | URLに移動 |
openclaw browser click <ref> | 要素をクリック |
openclaw browser type <ref> "text" | 要素にテキストを入力 |
openclaw browser press Enter | キーボードキーを押す |
openclaw browser evaluate --fn "document.title" | JavaScriptを実行 |
openclaw browser pdf | 現在のページのPDFを生成 |
openclaw browser profiles | ブラウザプロファイルを一覧表示 |
openclaw browser create-profile --name work | ブラウザプロファイルを作成 |
| Command | 説明 |
|---|---|
openclaw node run --host gateway.local --port 18789 | ヘッドレスノードを実行 |
openclaw node install --host gw.local | ノードをサービスとしてインストール |
openclaw node status | ノードの状態を確認 |
openclaw nodes list | 全ノードを一覧表示 |
openclaw nodes status --connected | 接続中のノードのみ表示 |
openclaw nodes pending | 承認待ちのリクエストを表示 |
openclaw nodes approve <requestId> | ノードリクエストを承認 |
openclaw nodes run --node mypc "ls -la" | リモートノードでコマンドを実行 |
openclaw nodes camera snap --node phone | カメラ画像をキャプチャ |
openclaw nodes screen record --node desktop | 画面を録画 |
openclaw nodes location get --node mobile | デバイスの位置情報を取得 |
スケジュールジョブ(Cron)
Section titled “スケジュールジョブ(Cron)”| Command | 説明 |
|---|---|
openclaw cron list | 全スケジュールジョブを一覧表示 |
openclaw cron status | Cronシステムの状態を表示 |
openclaw cron add --name "Daily report" --every 24h --message "Generate daily report" | 定期ジョブを追加 |
openclaw cron add --name "Morning brief" --at "08:00" --message "Brief me" | 時刻ベースのジョブを追加 |
openclaw cron add --name "Backup" --cron "0 2 * * *" --system-event "run backup" | Cron式ジョブを追加 |
openclaw cron enable <id> | ジョブを有効化 |
openclaw cron disable <id> | ジョブを無効化 |
openclaw cron run <id> | ジョブを即時実行 |
openclaw cron runs --id <id> | ジョブの実行履歴を表示 |
openclaw cron edit <id> | 既存のジョブを変更 |
openclaw cron rm <id> | ジョブを削除 |
プラグインとスキル
Section titled “プラグインとスキル”| Command | 説明 |
|---|---|
openclaw plugins list | 利用可能なプラグインを検出 |
openclaw plugins info <id> | プラグインの詳細を表示 |
openclaw plugins install <path> | パスまたはnpmからプラグインをインストール |
openclaw plugins enable <id> | プラグインを有効化 |
openclaw plugins disable <id> | プラグインを無効化 |
openclaw plugins doctor | プラグインの読み込みエラーを報告 |
openclaw skills list | 利用可能なスキルを一覧表示 |
openclaw skills list --eligible | 準備完了のスキルのみ表示 |
openclaw skills info <name> | スキルの詳細を表示 |
openclaw skills check | 全スキルの準備状況サマリー |
セキュリティと承認
Section titled “セキュリティと承認”| Command | 説明 |
|---|---|
openclaw security audit | 設定とローカルステートを監査 |
openclaw security audit --deep | ゲートウェイのライブセキュリティプローブ |
openclaw security audit --fix | 安全なデフォルトを自動的に強化 |
openclaw approvals get | 現在の承認設定を表示 |
openclaw approvals set | 承認ワークフローを設定 |
openclaw approvals allowlist add | 承認許可リストに追加 |
openclaw pairing list telegram | 保留中のペアリングリクエストを一覧表示 |
openclaw pairing approve telegram <code> | DMペアリングを承認 |
メモリとセッション
Section titled “メモリとセッション”| Command | 説明 |
|---|---|
openclaw memory status | メモリインデックスの統計を表示 |
openclaw memory index | メモリファイルの再インデックス |
openclaw memory search "query" | メモリのセマンティック検索 |
openclaw sessions | 保存された会話セッションを一覧表示 |
openclaw sessions --active 60 | 直近60分間のアクティブセッションを表示 |
openclaw status | リンクされたセッションのヘルスを表示 |
openclaw status --all --deep | チャネルプローブ付きの完全診断 |
よくあるユースケース
Section titled “よくあるユースケース”Telegramでのクイックセットアップ
Section titled “Telegramでのクイックセットアップ”```bash
インストールとオンボーディング
Section titled “インストールとオンボーディング”curl -fsSL https://openclaw.ai/install.sh | bash openclaw onboard —install-daemon
Telegramチャネルを追加
Section titled “Telegramチャネルを追加”openclaw channels add —channel telegram
すべてが正常に動作することを確認
Section titled “すべてが正常に動作することを確認”openclaw doctor openclaw status —all ```
カスタムモデルでエージェントを実行
Section titled “カスタムモデルでエージェントを実行”```bash
優先モデルを設定
Section titled “優先モデルを設定”openclaw models set claude-sonnet
フォールバックを追加
Section titled “フォールバックを追加”openclaw models fallbacks add gpt-4o
エージェントターンを実行
Section titled “エージェントターンを実行”openclaw agent —message “Summarize my emails” —thinking high ```
日次レポートのスケジュール設定
Section titled “日次レポートのスケジュール設定”```bash
午前8時の日次ジョブを作成
Section titled “午前8時の日次ジョブを作成”openclaw cron add \ —name “Morning briefing” \ —at “08:00” \ —message “Give me a summary of today’s tasks and any urgent notifications”
スケジュールされていることを確認
Section titled “スケジュールされていることを確認”openclaw cron list ```
リモートノード制御
Section titled “リモートノード制御”```bash
接続中のノードを一覧表示
Section titled “接続中のノードを一覧表示”openclaw nodes status —connected
リモートマシンでコマンドを実行
Section titled “リモートマシンでコマンドを実行”openclaw nodes run —node “desktop” “df -h”
リモート画面のスクリーンショットを取得
Section titled “リモート画面のスクリーンショットを取得”openclaw nodes screen record —node “desktop” —duration 5s ```
ベストプラクティス
Section titled “ベストプラクティス”- オンボーディング時に
--install-daemonを使用して、ゲートウェイをバックグラウンドサービスとして実行する openclaw doctorを定期的に実行して、設定の問題を早期に検出する- モデルのフォールバックを設定して、プライマリモデルがレート制限された場合の可用性を確保する
- 複雑なエージェントタスクには
--thinking highを使用して、深い推論を可能にする - ブラウザプロファイルを作成して、異なるタスクのブラウジングコンテキストを分離する
- スクリプティングや出力のパイプ時に
--jsonフラグを使用する - ゲートウェイをネットワークに公開する前に
--deepフラグでセキュリティ監査を実行する
トラブルシューティング
Section titled “トラブルシューティング”| 問題 | 解決策 |
|---|---|
| ゲートウェイが起動しない | openclaw doctor --deep を実行して診断 |
| チャネルが切断された | openclaw channels status で確認してから再ログイン |
| モデル認証に失敗 | openclaw models status --probe を実行してトークンをテスト |
| プラグインの読み込みエラー | openclaw plugins doctor を実行して診断 |
| ノードが接続されない | openclaw nodes pending で確認し、必要に応じて承認 |
| レスポンスが遅い | openclaw status --usage でレート制限を確認 |
| 設定の破損 | openclaw reset --scope config を使用して安全にリセット |