「OpenClawをOpenAI互換Web APIで動かす」の版間の差分

提供:MonoBook
ページの作成:「 == 条件 == * バックエンドとなる LLM が「OpenAI互換 Web API モード」で動いていること。 == 手順 == openclawの公式サイトに従いインストールする <source lang=bash> % curl -fsSL https://openclaw.ai/install.sh | bash </source> openclawが要求するバージョンのnodejsにパスを通す <source lang=bash> % echo 'export PATH="/usr/local/opt/node@22/bin:$PATH"' >> ~/.zshrc % source ~/.zshrc % rehash </source> openc…」
 
編集の要約なし
 
(同じ利用者による、間の1版が非表示)
1行目: 1行目:


== 条件 ==
== 条件 ==
20行目: 17行目:


openclawの初期設定ウィザード
openclawの初期設定ウィザード
* Bonsai-8Bを使っている
* 以下をモデルごとに書き換える
** API Base URL: http://127.0.0.1:18080/v1
** API Key: local-bonsai
** Model ID: bonsai-8b
<source lang=bash>
<source lang=bash>
% openclaw onboard
% openclaw onboard
89行目: 91行目:
% openclaw status
% openclaw status
</source>
</source>
ブラウザで開いてみる。
https://localhost:18789


こんにちは
こんにちは


[[category: OpenClaw]]
[[category: OpenClaw]]

2026年4月13日 (月) 04:32時点における最新版

条件[編集 | ソースを編集]

  • バックエンドとなる 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

こんにちは