ホーム チュートリアル カテゴリ Skills サイトについて
ZH EN JA KO
基本設定

openclaw configure 設定ウィザードチュートリアル

· 4 分で読了

コマンド概要

openclaw configure は OpenClaw の設定管理コマンドで、インタラクティブな変更、インポート・エクスポート、設定の検証に対応しています。

インタラクティブ設定

openclaw configure

現在の設定の表示

# 完全な設定を表示(機密情報はマスク)
openclaw configure --show

# 特定セクションを表示
openclaw configure --show providers
openclaw configure --show channels
openclaw configure --show models

設定項目の直接変更

# Gatewayポートの設定
openclaw configure set gateway.port 3001

# モデルのTemperature設定
openclaw configure set models.main.temperature 0.8

# チャンネルのシステムプロンプト設定
openclaw configure set channels.telegram.systemPrompt "あなたは便利なアシスタントです"

設定項目の読み取り

openclaw configure get gateway.port
# 出力: 3000

設定の検証

openclaw configure --validate

インポート・エクスポート

# 設定のエクスポート
openclaw configure --export config-backup.json

# 設定のインポート
openclaw configure --import config-backup.json

# マージインポート(既存の設定を保持)
openclaw configure --import config-backup.json --merge

設定の差分比較

openclaw configure --diff config-old.json

設定のリセット

# 特定セクションのリセット
openclaw configure --reset providers

# すべての設定をデフォルト値にリセット
openclaw configure --reset-all

環境変数によるオーバーライド

設定ファイルの値は環境変数で上書きできます。

OPENCLAW_GATEWAY_PORT=3001 openclaw start
OPENCLAW_DEFAULT_MODEL=gpt-4o-mini openclaw start

環境変数の命名規則:OPENCLAW_ + 設定パスを大文字 + _ で接続

一括変更

JSON Patchによる一括変更:

openclaw configure --patch '[
  {"op": "replace", "path": "/gateway/port", "value": 3001},
  {"op": "add", "path": "/models/new-model", "value": {"provider": "openai", "model": "gpt-4o"}}
]'

設定履歴

# 変更履歴の表示
openclaw configure --history

# 以前のバージョンにロールバック
openclaw configure --rollback 3

まとめ

openclaw configure は OpenClaw の設定を管理するための中核ツールです。インタラクティブな変更でもスクリプト化された一括操作でも柔軟に対応できます。重要な変更の前に --export でバックアップし、変更後に --validate で検証することを推奨します。

OpenClawは無料のオープンソースAIアシスタント。WhatsApp、Telegram、Discordなど多数のプラットフォームに対応