cookbook/clawd/README.md
Practical examples of integrating Nexa SDK with Clawdbot.
npm install -g clawdbot@latestConfigure Clawdbot to use Nexa SDK's OpenAI-compatible API.
nexa pull NexaAI/Qwen3-4B-GGUF
nexa serve
cp clawdbot.example.json ~/.clawdbot/clawdbot.json
clawdbot gateway
clawdbot message send --target <your-phone-number> --message "Hello from Nexa SDK"
Once the gateway is running, you can test the integration:
Browser Control UI (Recommended for testing):
Check Model Status:
clawdbot models status
Configure Channels (Optional, for WhatsApp/Telegram/etc.):
# Configure a channel (e.g., WhatsApp)
clawdbot channels login
# Then you can send messages via CLI
clawdbot message send --target <phone-number> --message "Hello"
Note:
nexa serve) before testing, as Clawdbot will call the Nexa API when processing messagesclawdbot channels loginThe example configuration (clawdbot.example.json) shows how to configure a custom provider using models.providers to connect to Nexa SDK's OpenAI-compatible API endpoint at http://localhost:18181/v1.
Important Notes:
id must match the exact model name returned by Nexa server (including quantization info, e.g., NexaAI/Qwen3-4B-GGUF:Q4_0)provider/model-id (e.g., nexa/NexaAI/Qwen3-4B-GGUF:Q4_0)nexa list or curl http://localhost:18181/v1/modelsid in models.providers.nexa.models[].id and the primary in agents.defaults.model.primary