Clawdbot (Moltbot/OpenClaw) Gemini API ์ฐ๋ ํํ ๋ฆฌ์ผ
Clawdbot(Moltbot/OpenClaw)์์ Gemini 3 Flash๋ฅผ ํตํฉํ๋ ์ ์ฒด ํํ ๋ฆฌ์ผ (defapi.org ํ๋ก์ ์ฌ์ฉ)
Clawdbot์ ๊ธฐ๋ณธ์ ์ผ๋ก Anthropic Claude์ tool use๋ฅผ ๊ฐ์ฅ ์๋ฒฝํ๊ฒ ์ง์ํ์ง๋ง, Gemini ์๋ฆฌ์ฆ(ํนํ ์๋๊ฐ ๋น ๋ฅด๊ณ ์ปจํ ์คํธ๊ฐ ๋งค์ฐ ๊ธด Gemini 3 Flash)๋ ๊ฒ์, ๋น ๋ฅธ ์๋ต, ๋ฉํฐ๋ชจ๋ฌ ์์ ์์ ๋ฐ์ด๋ ์ฑ๋ฅ์ ๋ณด์ ๋๋ค. Google ๊ณต์ Gemini API๋ฅผ Clawdbot์ ์ง์ ์ฐ๊ฒฐํ๋ ค๋ฉด ์ผ๋ฐ์ ์ผ๋ก ๋ณต์กํ ํ์ ๋ณํ ๋ ์ด์ด(์: litellm ๋๋ ์ปค์คํ relay)๊ฐ ํ์ํ์ง๋ง, defapi.org๋ ๊ฑฐ์ ์์ ์์ด ๋ฐ๋ก ์คํํ ์ ์๋ ์๋ฃจ์ ์ ์ ๊ณตํฉ๋๋ค. ์ด ์๋น์ค๋ Gemini๋ฅผ Anthropic/OpenAI ์คํ์ผ์ ์ธํฐํ์ด์ค์ ํธํ๋๋๋ก ํจํค์งํ๋ฉฐ, ํนํ tool calling์ ๋ํ ํฌ๊ณผ์ฑ์ด ๋ฐ์ด๋ฉ๋๋ค.
์ต๋ ์ฅ์ : defapi.org๋ฅผ ํตํด Gemini 3 Flash๋ฅผ ์ฌ์ฉํ๋ฉด ์ค์ ๋น์ฉ์ด Google ๊ณต์ API๋ณด๋ค ์ฝ 50% ์ ๋ ดํฉ๋๋ค (2026๋ ์ปค๋ฎค๋ํฐ ์ค์ธก ๋ฐ ์์ ๊ณต๊ธ์ ์ฒด ๊ฐ๊ฒฉ ๋น๊ต ๊ธฐ์ค: ๊ณต์ Gemini 3 Flash ์ ๋ ฅ โ $0.50โ$1.00 / 1M tokens, ์ถ๋ ฅ $3.00+; defapi ํ๋ก์ ๋ ์ด์ด๋ ๋ณดํต 40โ60% ํ ์ธ์ด ์ ์ฉ๋์ด, ํค๋น ์ ์ ์ ๊ฒฝ์ฐ ์ ๋ฐ ์ด์์ ๋น์ฉ์ ์ ์ฝํ ์ ์์ต๋๋ค. ํนํ Clawdbot๊ณผ ๊ฐ์ด tool call ๋น๋๊ฐ ๋์ agent ์๋๋ฆฌ์ค์ ์ ํฉํฉ๋๋ค).
๋ค์์ 2026๋ ์ต์ ๋ฒ์ ์ ๊ฐ์ฅ ์์ ์ ์ธ ์ฐ๋ ๋จ๊ณ์ ๋๋ค.
1. ์ฌ์ ์ค๋น
- Clawdbot ์ค์น ์๋ฃ (์ด๋ฒ ํ
์คํธ์ ์ฌ์ฉ๋ ๋ฒ์ : 2026.1.24-3 (885167d)). ์ ์๋ฒ์ธ ๊ฒฝ์ฐ ๋ค์ ๋ช
๋ น์ด๋ฅผ ์ฐธ๊ณ ํ์ฌ ๋น ๋ฅด๊ฒ ์ค์นํ ์ ์์ต๋๋ค:
# fnm ๋ฐ Node.js 24 ์ค์น curl -o- https://fnm.vercel.app/install | bash source ~/.bashrc fnm install 24 # clawdbot ์ค์น npm install -g clawdbot - defapi.org ๊ณ์ ๊ฐ์ ( https://defapi.org ), ์ถฉ์ ์๋ฃ (Alipay/WeChat/์ ์ฉ์นด๋ ์ง์).
- API Key ํ๋: ๋์๋ณด๋์์ defapi API Key๋ฅผ ๊ฐ์ ธ์ต๋๋ค (๋ณดํต
dk-๋ก ์์ํ๋ ํ์).
2. ์ ๊ณต์ API๋ ๋ค๋ฅธ ํ๋ก์๊ฐ ์๋ defapi๋ฅผ ์ ํํด์ผ ํ๋์?
| ํญ๋ชฉ | defapi.org (gemini-3-flash) | Google ๊ณต์ Gemini API | OpenRouter / LiteLLM ๋ฑ ๊ธฐํ ํ๋ก์ |
|---|---|---|---|
| ์ฐ๋ ๋์ด๋ | ๋งค์ฐ ๋ฎ์ (์ค์ 3์ค ์์ ) | ๋์ (ํ์ ๋ณํ ๋ ์ด์ด ํ์) | ๋ณดํต (ํธํ ๋ชจ๋ธ ์ ํ ํ์) |
| Tool calling ํธํ์ฑ | ์ฐ์ (function/tool role ์ง์) | ์ถ๊ฐ ์ด๋ํฐ ํ์ | ํ๋ก์์ ๋ฐ๋ผ ๋ค๋ฆ |
| ์ปจํ ์คํธ ๊ธธ์ด | 1M tokens ๋ค์ดํฐ๋ธ ์ง์ | 1M tokens | ์ผ๋ฐ์ ์ผ๋ก ์ง์ |
| ๋ฉํฐ๋ชจ๋ฌ (์ด๋ฏธ์ง) | ์ง์ (Clawdbot ์ด๋ฏธ์ง ์ ๋ก๋ ๊ฐ๋ฅ) | ์ง์ | ์ผ๋ถ ์ง์ |
| ๋น์ฉ (๊ณต์ ๋๋น) | ์ฝ 50% ์ ๋ ด | ๊ธฐ์ค ๊ฐ๊ฒฉ | 20โ40% ์ ๋ ด |
| ์ง์ฐ ์๊ฐ (Latency) | ๊ณต์๋ณด๋ค ์ฝ๊ฐ ๋์ง๋ง ์์ฉ ๊ฐ๋ฅ | ๊ฐ์ฅ ๋ฎ์ | ๋ณดํต |
ํ ์ค ์์ฝ: ์์ฐ์ ๋ฏผ๊ฐํ๋ฉด์ Gemini 3 Flash๋ฅผ Clawdbot์์ ๋น ๋ฅด๊ฒ ์ฌ์ฉํ๊ณ ์ถ์ ์ฌ์ฉ์์๊ฒ defapi๋ ํ์ฌ ๊ฐ์ฅ ๋งค๋ ฅ์ ์ธ ์ ํ์ง์ ๋๋ค.
3. ์์ธ ์ค์ ๋จ๊ณ
Clawdbot์ ์ต์ ๋ฒ์ (2026.1.24-3 (885167d))์ JSON ํ์์ ์ค์ ํ์ผ์ ํตํ ๊ด๋ฆฌ๋ฅผ ๊ถ์ฅํฉ๋๋ค.
-
์ค์ ํ์ผ ์์ฑ
์ฌ์ฉ์ ๋๋ ํ ๋ฆฌ์
~/.clawdbot/clawdbot.jsonํ์ผ์ ์์ฑํ๊ฑฐ๋ ํธ์งํฉ๋๋ค:mkdir -p ~/.clawdbot vi ~/.clawdbot/clawdbot.json -
์ค์ ๋ด์ฉ ์์ฑ
๋ค์ ๋ด์ฉ์
clawdbot.json์ ์ ๋ ฅํฉ๋๋ค.apiKey๋ถ๋ถ์ ์ค์ defapi ํค๋ก ๊ต์ฒดํด์ผ ํฉ๋๋ค:{ "gateway": { "mode": "local", "bind": "loopback", "port": 18789 }, "agents": { "defaults": { "model": { "primary": "gemini/gemini-3-flash" }, "elevatedDefault": "full", "workspace": "/myworkspace", "compaction": { "mode": "safeguard" }, "maxConcurrent": 4, "subagents": { "maxConcurrent": 8 } } }, "models": { "mode": "merge", "providers": { "gemini": { "baseUrl": "https://api.defapi.org/v1", "apiKey": "defapi API key, dk-* ๋ก ์์", "api": "openai-completions", "models": [ { "id": "gemini-3-flash", "name": "gemini-3-flash" } ] } } }, "channels": { "telegram": { "botToken": "๋น์ ์ TG Token, ๋น์๋ ์ ์์" } }, "plugins": { "entries": { "telegram": { "enabled": true } } } }์ฃผ์ ํฌ์ธํธ ์ค๋ช :
- baseUrl: ๋ฐ๋์
https://api.defapi.org/v1์ด์ด์ผ ํฉ๋๋ค. - api:
openai-completions๋ฅผ ์ ๋ ฅํฉ๋๋ค. defapi์ Gemini ์ธํฐํ์ด์ค๋ OpenAI ํ์๊ณผ ์๋ฒฝํ๊ฒ ํธํ๋ฉ๋๋ค. - primary model: ์ฐธ์กฐ ํ์์
provider/model_id์ฆ,gemini/gemini-3-flash์ ๋๋ค.
- baseUrl: ๋ฐ๋์
-
ํ ์คํธ ๊ฒฐ๊ณผ ํ์ธ
clawdbot agent --message "hi" --agent main์์ ์ถ๋ ฅ:
root@iZ6wefjkouvkogu7drkjvfZ:~# clawdbot agent --message "hi" --agent main ๐ฆ Clawdbot 2026.1.24-3 (885167d) โ Pairing codes exist because even bots believe in consentโand good security hygiene. โ โ Gateway agent failed; falling back to embedded: Error: gateway closed (1006 abnormal closure (no close frame)): no close reason Gateway target: ws://127.0.0.1:18789 Source: local loopback Config: /root/.clawdbot/clawdbot.json Bind: loopback Hey. I just came online. Who am I? Who are you? The `BOOTSTRAP.md` file tells me this is a fresh workspace, which means we get to figure this out from scratch. I've got plenty of tools and potential, but I'm missing a name, a vibe, and a sense of who I'm helping. What should we call me? And what's your name?