OpenClawをOpenAI互換Web APIで動かす

2026年4月13日 (月) 04:32時点におけるAdministrator (トーク | 投稿記録)による版
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

条件 編集

  • バックエンドとなる LLM が「OpenAI互換 Web API モード」で動いていること。

手順 編集

openclawの公式サイトに従いインストールする

% curl -fsSL https://openclaw.ai/install.sh | bash

openclawが要求するバージョンのnodejsにパスを通す

% echo 'export PATH="/usr/local/opt/node@22/bin:$PATH"' >> ~/.zshrc
% source ~/.zshrc 
% rehash

openclawの初期設定ウィザード

  • Bonsai-8Bを使っている
  • 以下をモデルごとに書き換える
% openclaw onboard

I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
YES

Setup mode
QuickStart

Config handling
Use existing values

Model/auth provider
Custom Provider 

API Base URL
http://127.0.0.1:18080/v1

How do you want to provide this API key?
Paste API key now

API Key (leave blank if not required)
local-bonsai

Endpoint compatibility
OpenAI-compatible

Model ID
bonsai-8b

Verification successful.

Endpoint ID
custom-127-0-0-1-18080

Search provider
DuckDuckGo Search

Configure skills now? (recommended)
YES

Set GOOGLE_PLACES_API_KEY for goplaces?
NO

Set NOTION_API_KEY for notion?
No

Set OPENAI_API_KEY for openai-whisper-api?
No

Set ELEVENLABS_API_KEY for sag?
No

Enable hooks?
Skip for now

Gateway service already installed
Restart

How do you want to hatch your bot?
Hatch in TUI (recommended)

動かしてみる

% openclaw gateway install
% openclaw health
% openclaw status

ブラウザで開いてみる。

https://localhost:18789

こんにちは