#Cannot create new sessions.
1 messages Β· Page 1 of 1 (latest)
@prime laurel Can you help me?
Based on my research, this is a known Discord interaction issue where the slash command UI doesn't properly execute when triggered via a button click. Here's how to fix it:
Quick Workaround
Instead of clicking the "New session" button, manually type /new in the chat and press enter. This should work reliably.
If the Button Issue Persists
1. Check if commands are registered
Run this to verify Discord slash commands are synced:
clawdbot channels status --probe
2. Force re-register commands
Restart the gateway to sync commands:
clawdbot gateway restart
Or if using the daemon:
clawdbot daemon restart
3. Verify Discord permissions
Ensure your bot has:
- Applications.commands scope (in OAuth2)
- Message Content Intent enabled (in Bot settings β Privileged Gateway Intents)
4. Check config
Make sure native commands aren't disabled:
{
channels: {
discord: {
commands: {
native: "auto" // or true
}
}
}
}
TL;DR: Type /new manually as a workaround. If the button never works, it's a Discord UI quirkβmanually typing the command is the reliable method.
Let me know if manual /new works or if you're still having issues after restarting! π¦
Hey @native yacht! π
The "New session" button issue you're seeing is a Discord UI quirk where the slash command appears but doesn't fully execute. Here's what to do:
β Quick Fix
Instead of clicking the button, manually type /new and press Enter. This reliably creates a fresh session.
π§ If It Still Doesn't Work
-
Restart the gateway to sync commands:
clawdbot gateway restart -
Verify permissions - make sure your Discord bot has:
applications.commandsscope- Message Content Intent enabled (Bot β Privileged Gateway Intents)
- Check the logs if issues continue:
clawdbot logs --follow
Let me know if manually typing /new works or if you need more help! π¦
No manually typing "/new" doesn't work. I also restarted the gateway but still no luck @prime laurel
hello @prime laurel im facing new issue can ishare?---im uning google gemini key
Okay, that's more concerning. Let's debug this systematically. Can you run a few checks for me?
π Debug Steps
1. Check gateway status:
clawdbot status
Paste the output here - I need to see if the gateway is healthy and if sessions are detected.
2. Check channel permissions in that specific channel:
The channel is called "Cannot create new sessions" - there might be a restriction. Run:
clawdbot channels status --probe
3. Look at recent logs when you tried /new:
@prime laurel
clawdbot logs --follow
Then send /new in Discord and tell me what appears in the logs.
4. Try /status instead:
Does /status work as a standalone message? This will tell us if commands are being processed at all.
β οΈ Quick Theory
Is this channel maybe set up with restricted access? The channel name suggests it might have special rules. Check if there's a sendPolicy or channel-specific restriction in your config:
cat ~/.clawdbot/clawdbot.json | grep -A 20 "discord"
I'm encountering a persistent 404 Not Found error when using the Gemini 1.5 Flash model with the latest version of Moltbot (Clawdbot). Even though the model is correctly configured, the bot seems to be sending an incorrect path structure to the Google API.--{
"error": {
"code": 404,
"message": "models/gemini-1.5-flash is not found for API version v1beta, or is not supported for generateContent.",
"status": "NOT_FOUND"
}
}
Or if you're in a multi-agent setup, check the agent config for that channel.
Let me know what you find! π¦
Hey Jack! π Sure, go ahead and share what you're experiencing.
Quick question - is this related to the /new session issue too, or a separate problem with your Gemini key? π¦
@river plinth Make your own post bro
how? i thought i can chat anywhere lol
No its better to get a new post so that the bot doesn't get confused with multiple things
I see the Sessions dashboard with one active session for +18086738055 (highlighted in red).
What specifically are you seeing as the issue here, Jack?
- Is the red phone number the problem (indicating an error state)?
- Is the
/newcommand not creating a new row in this list? - Or is this separate from the Gemini key issue you mentioned?
Let me know what you expect to see vs. what's happening! π¦
Ha! Fair point, Jack π You can ask in #help channel (that's what it's for!), or if it's a bug, open a GitHub issue: https://github.com/clawdbot/clawdbot/issues
Back to you, @gloomy plank π
Did you get a chance to run those debug commands? I want to figure out why /new isn't working for you:
clawdbot status- is gateway healthy?clawdbot channels status --probe- any channel issues?/statusin chat - does any command work?
Let me know what you find! π¦
done created post ty
Ah, that's a different issue! The 404 error is about the API version/path, not the session problem.
The error says:
models/gemini-1.5-flash is not found for API version v1beta
This means Clawdbot is sending requests to the wrong API endpoint. Google Gemini 1.5 Flash requires the v1 API, not v1beta.
π§ Quick Fix
Check your model configuration and make sure it's using the correct model ID:
{
agents: {
defaults: {
models: {
"google/gemini-1.5-flash": {
provider: "google",
api: "v1" // β This might be missing or set to "v1beta"
}
}
}
}
}
Or if you're using the alias, ensure it's mapped correctly:
{
agents: {
defaults: {
model: { primary: "google/gemini-1.5-flash" }
}
}
}
Common model IDs that work:
google/gemini-1.5-flashgoogle/gemini-1.5-progoogle/gemini-2.0-flash-exp
Jack, can you share your model config? Run:
cat ~/.clawdbot/clawdbot.json | grep -A 10 "models"
Or check /model status in chat to see what model the bot is actually trying to use. π¦
cat ~/.clawdbot/clawdbot.json | grep -A 10 "models"
"models/gemini-1.5-flash",
"anthropic/gemini-1.5-flash"
]
},
"models": {
"google/gemini-1.5-flash-latest": {},
"google/gemini-3-pro-preview": {
"alias": "gemini"
},
"google/gemini-2.0-flash": {},
"models/gemini-1.5-flash": {},
"anthropic/gemini-1.5-flash": {}
},
"workspace": "/home/aman/clawd",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
@prime laurel
here
Go ahead, share what you've got! π¦
"models/gemini-1.5-flash",
"anthropic/gemini-1.5-flash"
]
},
"models": {
"google/gemini-1.5-flash-latest": {},
"google/gemini-3-pro-preview": {
"alias": "gemini"
},
"google/gemini-2.0-flash": {},
"models/gemini-1.5-flash": {},
"anthropic/gemini-1.5-flash": {}
},
"workspace": "/home/aman/clawd",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
you can see?
Found the problem! π―
You have malformed model IDs in your config:
β Wrong:
"models/gemini-1.5-flash" // Missing provider prefix
"anthropic/gemini-1.5-flash" // Anthropic doesn't provide Gemini!
β Correct:
"google/gemini-1.5-flash"
The error message confirms this:
models/gemini-1.5-flash is not found
β
This path is wrong - it's missing "google/"
π§ Fix Your Config
Edit ~/.clawdbot/clawdbot.json and fix the models section:
{
"agents": {
"defaults": {
"model": {
"primary": "google/gemini-1.5-flash",
"fallbacks": ["google/gemini-1.5-flash-latest"]
},
"models": {
"google/gemini-1.5-flash": {},
"google/gemini-1.5-flash-latest": {},
"google/gemini-3-pro-preview": {
"alias": "gemini"
},
"google/gemini-2.0-flash": {}
}
}
}
}
Then restart the gateway:
clawdbot gateway restart
Remove the invalid entries:
models/gemini-1.5-flash(bad format)anthropic/gemini-1.5-flash(wrong provider - Anthropic doesn't have Gemini!)
Let me know once you've fixed it! π¦
Yes, I can see it! That's how I found the issue in your config π
Go ahead and fix those model IDs as I showed above, then restart. Let me know if it works! π¦
Technical Issue Report: Hardcoded Model Path Prefixing
The Problem: Even after cleaning the clawdbot.json and ensuring all model IDs have the google/ provider prefix, the bot is still making requests to the Google API using the wrong path format, resulting in a 404 Not Found.
Key Error from Logs: "message": "models/gemini-1.5-flash is not found for API version v1beta"
[clawdbot] LLM error: {
"error": {
"code": 404,
"message": "models/gemini-1.5-flash is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}
@prime laurel
Still here! π
Did you get a chance to fix the config? Or do you need help with something else? π¦
no -- still same issue-[clawdbot] LLM error: {
"error": {
"code": 404,
"message": "models/gemini-1.5-flash is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}
@prime laurel
Hey! Still waiting to hear back π
Did you fix the config as I showed, or are you still stuck?
If you need help editing the file, I can walk you through it step by step. Just let me know what's happening! π¦
no --I have updated the clawdbot.json config exactly as suggested, ensuring all model IDs use the google/ provider prefix. However, the bot is still failing with a 404 Not Found error.
The Issue: Even though the config specifies google/gemini-1.5-flash, the logs show that the bot is internally stripping the google/ prefix and sending the request as models/gemini-1.5-flash to the Google v1beta endpoint.
Error Log: "message": "models/gemini-1.5-flash is not found for API version v1beta, or is not supported for generateContent."
Root Cause: It appears the code is ignoring the provider prefix from the configuration or hardcoding the models/ prefix during path construction. Since the Google API for v1beta doesn't recognize this path format, it rejects the call.
Found it! There's an open bug report for this:
π΄ Known Bug: GitHub Issue #795
[Bug]: Gemini 3 models return 404 Not Found - Invalid model ID
Clawdbot sends the full model ID including the provider prefix to the Google Generative AI API, but the API expects only the model name without the prefix.
URL: https://github.com/clawdbot/clawdbot/issues/795
π Current Workaround
Until this is fixed, you can:
- Check if there's a newer version that fixes it:
clawdbot --version
-
Update to latest if available:
cd ~/clawd && git pull && pnpm install && pnpm build -
Or use a different model temporarily (Anthropic, OpenAI, etc.)
Jack, can you:
- Check your Clawdbot version?
- Confirm this is the same bug by starring/watching that GitHub issue?
Let me know! π¦
Exactly right, Jack! π― The code is hardcoding models/ instead of stripping the provider prefix correctly.
This is exactly what's tracked in Issue #795 - you're experiencing the same bug.
Options:
- Star the GitHub issue to get updates when it's fixed
- Check if there's a newer version that addresses it:
clawdbot --version cd ~/clawd && git pull && pnpm install && pnw build && clawdbot daemon restart - Use a different model for now (Anthropic, OpenAI, MiniMax)
- Contribute a fix if you're feeling adventurous! The fix is likely in the Google provider code
Want me to help you set up a different model as a workaround? Or do you want to dive into the code and try fixing it? π¦
clawdbot --version
2026.1.24-3
Good news: Issue #795 was fixed on Jan 12, 2026! The commit was merged: ab99390 - "Models: normalize Gemini 3 ids in runtime selection"
Why you're still seeing it: The fix might not be in your installed version, or the patch needs to be reapplied.
Try This:
1. Pull latest and rebuild:
cd ~/clawd
git pull
pnpm install
pnpm build
clawdbot daemon restart
2. If that doesn't work, manually patch the file:
The fix adds this to patches/@mariozechner__pi-ai@0.43.0.patch:
// In dist/providers/google.js, change:
model: model.id,
// To:
model: model.id.includes('/') ? model.id.split('/').pop() : model.id,
3. Or just wait for the next release - the fix is already in main.
Jack, try updating from git first. Let me know if it works! π¦
clawd$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=<remote>/<branch> master
this error happening
Ah, you need to specify the branch! Try:
git pull origin main
Or set the upstream and pull in one go:
git pull origin main --set-upstream
Then continue with:
pnpm install
pnpm build
clawdbot daemon restart
Let me know how it goes! π¦
Found it! The Stack Overflow post explains:
Gemini 1.5 models require the v1 API, NOT v1beta!
The Problem
Google's API is being sent v1beta when it should be v1. This is why you're seeing:
"models/gemini-1.5-flash is not found for API version v1beta"
Try the Correct Model ID
Gemini 1.5 Flash needs one of these model IDs:
google/gemini-1.5-flash-001(stable)google/gemini-1.5-flash(alias that might work)
NOT:
google/gemini-1.5-flash-latest(might be unstable or beta-only)
Quick Fix
In your config, try:
{
"agents": {
"defaults": {
"model": {
"primary": "google/gemini-1.5-flash-001"
}
}
}
}
~/clawd$ git pull origin main
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
aman@AMAN-DME:~/clawd$ git pull origin main --set-upstream
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Then restart and try again.
Does this model ID work for you, Jack? π¦
You need to add the remote first! Run:
git remote add origin https://github.com/clawdbot/clawdbot.git
git pull origin main --set-upstream
Then:
pnpm install
pnpm build
clawdbot daemon restart
Let me know if that works! π¦
ok doin wait
pnpm install
βERR_PNPM_NO_PKG_MANIFESTβ No package.json found in /home/aman/clawd-- this error
Take your time! π I'll be here when you're done. π¦
pnpm install
βERR_PNPM_NO_PKG_MANIFESTβ No package.json found in /home/aman/clawd-- this error
Ah, you're in the wrong directory! You're in /home/aman/clawd but the package.json is somewhere else.
Try:
cd ~/clawd
pwd
ls -la
You should see package.json there. Then run:
pnpm install
pnpm build
clawdbot daemon restart
What does pwd show? π¦
total 48
drwxr-xr-x 4 aman aman 4096 Jan 29 08:07 .
drwxr-x--- 12 aman aman 4096 Jan 29 07:49 ..
drwxr-xr-x 8 aman aman 4096 Jan 29 08:07 .git
-rw-r--r-- 1 aman aman 7848 Jan 28 06:31 AGENTS.md
-rw-r--r-- 1 aman aman 1465 Jan 28 06:31 BOOTSTRAP.md
-rw-r--r-- 1 aman aman 167 Jan 28 06:31 HEARTBEAT.md
-rw-r--r-- 1 aman aman 632 Jan 28 06:31 IDENTITY.md
-rw-r--r-- 1 aman aman 1673 Jan 28 06:31 SOUL.md
-rw-r--r-- 1 aman aman 858 Jan 28 06:31 TOOLS.md
-rw-r--r-- 1 aman aman 481 Jan 28 06:31 USER.md
drwxrwxr-x 2 aman aman 4096 Jan 28 06:32 canvas
the right folder is this --cd ~/clawdbot-fixed should go this one
Ah, you're using a different folder! Try:
cd ~/clawdbot-fixed
pnpm install
pnpm build
clawdbot daemon restart
That should work! π¦
you sure that works?
Ha, good question π Let me check - did the commands run successfully?
- Did
pnpm installandpnpm buildfinish without errors? - Did you run
clawdbot daemon restart? - Are you still getting the same
v1betaerror?
If any step failed or you're still seeing the error, let me know what the exact error message is now!
Or if you're stuck, just share what you see and I'll help debug further. π¦
should i give logs details error ? to get right error
Yes, please! Share the exact error you're seeing:
-
Run this to get recent logs:
clawdbot logs --followThen send a message to the bot and capture the error.
-
Or check the log file directly:
tail -50 "$(ls -t /tmp/clawdbot/clawdbot-*.log | head -1)" -
Also show your current model config:
cat ~/.clawdbot/clawdbot.json | grep -A 5 "models"
Share what you get and I'll pinpoint the exact issue! π¦
hey
Hey! Still there π
Did you get the logs, or do you need help with something else? π¦
10:53:31 info gateway received SIGTERM; shutting down
10:53:36 info gateway/canvas canvas host mounted at http://127.0.0.1:18789/__clawdbot__/canvas/
10:53:37 info gateway agent model: google/gemini-1.5-flash-latest
10:53:37 info gateway listening on ws://127.0.0.1:18789 (PID 22395)
10:53:37 info gateway/channels/whatsapp [default] starting provider ([REDACTED])
10:53:42 info gateway/channels/whatsapp Listening for personal WhatsApp inbound messages.
10:55:05 info web-inbound {"from":"[REDACTED]","to":"[REDACTED]","body":"how are you?"} inbound message
10:55:06 error diagnostic lane task error: lane=main error="Error: Unknown model: google/gemini-1.5-flash-latest"
10:55:06 error diagnostic lane task error: lane=session:agent:main:main error="Error: Unknown model: google/gemini-1.5-flash-latest"
10:55:06 error Embedded agent failed before reply: Unknown model: google/gemini-1.5-flash-latest
10:55:06 info web-auto-reply [clawdbot] β οΈ Agent failed before reply: Unknown model: google/gemini-1.5-flash-latest.
here is latest error
@prime laurel
11:04:13 info web-inbound {"module":"web-inbound"} {"from":"+918....30","to":"+91.....0","body":"hi","timestamp":1769684655000} inbound message
11:04:13 info web-auto-reply {"module":"web-auto-reply","runId":"06a0ec7.........f-816b-cfef7e4b374b"} {"connectionId":"925579e1-c908-4683-9..........b50","correlationId":"3EB0.......0913640","from":"+918...30","to":"+918....30","body":"[WhatsApp +918....130 +22s 2026-01-29 11:04 UTC] hi","mediaType":null,"mediaPath":null} inbound web message
11:04:13 info gateway/channels/whatsapp/inbound {"subsystem":"gateway/channels/whatsapp/inbound"} Inbound message +918.....30 -> +918.....0 (direct, 53 chars)
11:04:13 debug diagnostic {"subsystem":"diagnostic"} lane enqueue: lane=session:agent:main:main queueSize=1
11:04:13 debug diagnostic {"subsystem":"diagnostic"} lane dequeue: lane=session:agent:main:main waitMs=9 queueSize=0
11:04:13 debug diagnostic {"subsystem":"diagnostic"} lane enqueue: lane=main queueSize=1
11:04:13 debug diagnostic {"subsystem":"diagnostic"} lane dequeue: lane=main waitMs=1 queueSize=0
11:04:13 error diagnostic {"subsystem":"diagnostic"} lane task error: lane=main durationMs=0 error="Error: Unknown model: google/gemini-1.5-flash-latest"
11:04:13 error diagnostic {"subsystem":"diagnostic"} lane task error: lane=session:agent:main:main durationMs=3 error="Error: Unknown model: google/gemini-1.5-flash-latest"
11:04:13 error Embedded agent failed before reply: Unknown model: google/gemini-1.5-flash-latest
11:04:13 debug gateway/channels/whatsapp/outbound {"subsystem":"gateway/channels/whatsapp/outbound"} Sent chunk 1/1 to +9188......30 (15ms)
11:04:13 info web-auto-reply {"module":"web-auto-reply","runId":"06a.......16b-cfef7e4b374b"} {"correlationId":"3EB........0913640","connectionId":"92........3-96bc-da40ad244b50","to":"+91...5130","from":"+918....130","text":"[clawdbot] β οΈ Agent failed before reply: Unknown model: google/gemini-1.5-flash-latest.\nLogs: clawdbot logs --follow","mediaUrl":null,"mediaSizeBytes":null,"mediaKind":null,"durationMs":17} auto-reply sent (text)
11:04:13 info gateway/channels/whatsapp/outbound {"subsystem":"gateway/channels/whatsapp/outbound"} Auto-replied to +91.......0
Now I see the real error! π―
Unknown model: google/gemini-1.5-flash-latest
The model ID google/gemini-1.5-flash-latest is not recognized by Clawdbot. The -latest suffix isn't supported.
Fix Your Config
Try one of these valid model IDs:
{
"agents": {
"defaults": {
"model": {
"primary": "google/gemini-1.5-flash" // β
Use this
// OR: "google/gemini-1.5-flash-001" // β
Stable version
// OR: "google/gemini-1.5-pro" // β
For more power
}
}
}
}
List Available Models
Run this to see what Google models are available:
clawdbot models list | grep google
Then edit your config:
nano ~/.clawdbot/clawdbot.json
Change google/gemini-1.5-flash-latest to google/gemini-1.5-flash and restart.
Let me know what clawdbot models list shows for Google! π¦
see this error
Now I see the full error! π―
models/gemini-1.5-flash is not found for API version v1beta
Good news: The google/ prefix is now being stripped correctly (the fix from #795 works!)
Bad news: The code is still sending to v1beta instead of v1 API.
Root Cause
Google Gemini 1.5 Flash requires the v1 API, but Clawdbot/pi-ai is sending to v1beta. This is a separate bug from #795.
Options
1. Try a different model (Gemini 2.0 might work with v1beta):
{
"agents": {
"defaults": {
"model": {
"primary": "google/gemini-2.0-flash-exp"
}
}
}
}
2. Wait for the fix - this needs to be patched in the pi-ai library or Clawdbot's patches.
3. Use a different provider (Anthropic, OpenAI, MiniMax) for now.
Jack, which would you like to try? gemini-2.0-flash-exp might work since it's newer and explicitly marked as experimental/beta. π¦
suggest me free api option model that provide free api for limited time
Great question! Here are the best free options:
1. MiniMax β (Recommended)
- Generous free tier - This is what I use by default!
- Works perfectly with Clawdbot
- Fast and reliable
Config:
{
"agents": {
"defaults": {
"model": {
"primary": "minimax/MiniMax-M2.1"
}
}
},
"env": {
"MINIMAX_API_KEY": "your-minimax-key"
}
}
Get your key at: https://platform.minimaxi.com/
2. Ollama (Completely Free - Local)
Run models locally on your machine - no API calls, no limits!
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull llama3.2
Config:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
}
}
3. OpenAI (New Account Credits)
New accounts get some free credits (~$5).
My recommendation: Start with MiniMax - it's free, works out of the box, and has good performance!
Want me to help you set up MiniMax? π¦
tell me ollama one without api
Perfect! Ollama runs completely locally - no API, no internet needed.
Setup Ollama
1. Install Ollama:
curl -fsSL https://ollama.ai/install.sh | sh
2. Start Ollama service:
sudo systemctl start ollama
# or just run:
ollama serve
3. Pull a model:
ollama pull llama3.2 # Good balance of speed/quality
# OR
ollama pull qwen2.5:3b # Smaller, faster
# OR
ollama pull deepseek-r1 # Powerful reasoning
4. Test it:
ollama run llama3.2
Configure Clawdbot
Edit your config:
nano ~/.clawdbot/clawdbot.json
Add:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
}
}
Then restart:
clawdbot daemon restart
Note: Local models need decent RAM (8GB+ recommended). llama3.2 is about 2GB.
Want help with any step? π¦
ERROR: This version requires zstd for extraction. Please install zstd and try again:
- Debian/Ubuntu: sudo apt-get install zstd
- RHEL/CentOS/Fedora: sudo dnf install zstd
- Arch: sudo pacman -S zstd
Easy fix! Install zstd first:
sudo apt-get install zstd
# or
sudo dnf install zstd
# or
sudo pacman -S zstd
Then try the Ollama install again:
curl -fsSL https://ollama.ai/install.sh | sh
Let me know! π¦
done
done installed then?
i pulled this version ollama pull llama3.2 now what should i do next?
@prime laurel
Great! π Now configure Clawdbot:
1. Start Ollama (if not running):
ollama serve
2. Edit your config:
nano ~/.clawdbot/clawdbot.json
Add/change this section:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
}
}
3. Save and restart Clawdbot:
clawdbot daemon restart
4. Test it!
Send a message to the bot on WhatsApp and see if it replies!
Let me know if it works! π¦
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2",
"fallbacks": [
"google/gemini-1.5-flash-latest"
]
},
"models": {
"google/gemini-1.5-flash": {},
"google/gemini-1.5-flash-latest": {},
"google/gemini-3-pro-preview": {
"alias": "gemini"
},"google/gemini-2.0-flash" : {}
},
"workspace": "/home/aman/clawd",
"compaction": {
"mode": "safeguard"
} is this correct?
Almost! You need to remove the fallback - google/gemini-1.5-flash-latest doesn't exist!
Also, you need to add the Ollama provider so Clawdbot knows how to connect to it.
Fixed Config:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
// REMOVE the fallbacks array entirely!
}
}
},
"models": {
"providers": {
"ollama": {
"host": "http://127.0.0.1:11434"
}
},
"ollama/llama3.2": {}
}
}
Also Make Sure Ollama is Running
Run this in a separate terminal:
ollama serve
Quick Fix Steps:
-
Edit config:
nano ~/.clawdbot/clawdbot.json -
Paste the fixed config above (remove the old Google stuff)
-
Save (Ctrl+O, Enter, Ctrl+X)
-
Restart:
clawdbot daemon restart -
Make sure Ollama is running:
ollama serve
Try it and let me know! π¦
give me full code what should i write on nano ~/.clawdbot/clawdbot.json this one
@prime laurel
File: ~/.clawdbot/clawdbot.json
Problem:
- <root>: Unrecognized keys: "model", "provider", "ollama", "gateways"
The config structure is wrong. Here's the correct format:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
},
"models": {
"providers": {
"ollama": {
"host": "http://127.0.0.1:11434"
}
},
"ollama/llama3.2": {}
}
}
Key points:
models.providersgoes at the top level, NOT insideagentsmodels["ollama/llama3.2"]also at top level
Save this, then:
clawdbot daemon restart
Make sure Ollama is running:
ollama serve
Test it! π¦
ollama serve
Error: listen tcp 127.........34: bind: address already in use
Good! That means Ollama is already running - no need to start it again! β
Now just restart Clawdbot with your fixed config:
clawdbot daemon restart
Then test by sending a message to the bot! π¦
File: ~/.clawdbot/clawdbot.json
Problem:
- models.providers.ollama.baseUrl: Invalid input: expected string, received undefined
- models.providers.ollama.models: Invalid input: expected array, received undefined
- models.providers.ollama: Unrecognized key: "host"
- models: Unrecognized key: "ollama/llama3.2"
?
Found the correct format! The simplest way is to just set the environment variable and let it auto-discover:
Option 1: Auto-Discover (Easiest)
export OLLAMA_API_KEY="ollama-local"
Then in your config:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
}
}
Option 2: Explicit Config
{
"models": {
"providers": {
"ollama": {
"baseUrl": "http://127.0.0.1:11434/v1",
"apiKey": "ollama-local"
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
}
}
Quick Steps:
-
Edit config:
nano ~/.clawdbot/clawdbot.json -
Use Option 1 or 2 above
-
Set env var:
export OLLAMA_API_KEY="ollama-local" -
Restart:
clawdbot daemon restart
Try it! π¦
can you tell what are tasks that clawdbot can do any command to see that?
@prime laurel
Great question! Here are the main commands:
Built-in Slash Commands
| Command | Description |
| ------------- | -------------------------------------- |
| `/new` | Start a fresh session |
| `/reset` | Same as `/new` |
| `/model <name>` | Switch to a different model |
| `/status` | Show current session status |
| `/compact` | Summarize conversation to save context |
| `/stop` | Cancel the current running task |
| `/tts <text>` | Convert text to speech |
| `/context` | See what's in the system prompt |
| `/help` | Show help |
Ready to continue with the Ollama setup?
- Did you get the config working?
- Or do you want to try one of those commands first?
Let me know! π¦
Tools (What the AI Can Do)
The AI can access these tools automatically based on your config:
β’ Web search - web_search / web_fetch
β’ File operations - read, write, edit files
β’ Code execution - run bash commands
β’ Browser control - automate web browsing
β’ Image analysis - analyze images
β’ Memory - search and write to memory files
β’ And more... depending on skills installed
See All Available Models
clawdbot models list
See All Commands in Chat
Just type / in the chat and Discord/WhatsApp will show you available commands!
What do you want the bot to help you with? π¦
π¦ Clawdbot 2026.1.24-3 (885167d) β Turning "I'll reply later" into "my bot replied instantly".
Gateway not reachable. Is it running and accessible?
Gateway target: ws://127,,,,,,,,,8789
Source: local loopback
Config: /home/aman/.clawdbot/clawdbot.json
Bind: loopback
Hint: run clawdbot doctor.
error
What's the error? Paste it here! π¦
The system is requesting an Anthropic API key when attempting to process a WhatsApp message, even though the configuration has been changed to use a local Ollama model.
Error: No API key found for provider "anthropic". Auth store: /home/aman/.clawdbot/agents/main/agent/auth-profiles.json (agentDir: /home/aman/.clawdbot/agents/main/agent). Configure auth for this agent (clawdbot agents add <id>) or copy auth-profiles.json from the main agentDir.
@prime laurel
The bot is still trying to use Anthropic instead of Ollama!
Quick Fix:
1. Check current config:
cat ~/.clawdbot/clawdbot.json | grep -A 5 "agents"
2. Make sure you have the Ollama config:
Edit the file:
nano ~/.clawdbot/clawdbot.json
Make sure it looks like this:
{
"agents": {
"defaults": {
"model": {
"primary": "ollama/llama3.2"
}
}
}
}
3. Set the env var:
export OLLAMA_API_KEY="ollama-local"
4. Restart:
clawdbot daemon restart
The key is removing any Anthropic references from model.primary - it should be ollama/llama3.2 not anthropic/claude-...
What does your current config look like? π¦
Just send me your current config when you're ready:
cat ~/.clawdbot/clawdbot.json
Paste it here and I'll fix it for you! π¦
you can seee?
Not yet! Paste the output of:
cat ~/.clawdbot/clawdbot.json
Right here in the chat! π¦
here see?
I can't see your screen! You need to copy and paste the text from the terminal into this chat.
Steps:
- Run this command:
cat ~/.clawdbot/clawdbot.json - Highlight the text with your mouse
- Right-click β Copy
- Paste it here in Discord
Just copy the text and paste it! π π¦
---{
"meta": {
"lastTouchedVersion": "2026.1.24-3",
"lastTouchedAt": "2026-01-29T13:06:01.328Z"
},
"agents": {
"defaults": {
"workspace": "/home/aman/clawd",
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"commands": {
"native": "auto",
"nativeSkills": "auto"
},
"messages": {
"ackReactionScope": "group-mentions"
},
"plugins": {
"entries": {
"whatsapp": {
"enabled": true
}
}
},
"gateway": {
"mode": "local",
"bind": "loopback",
"port": 18789,
"auth": {
"mode": "token",
"token": "a57c6dd,,,,,,,,f1d60c"
}
},
"wizard": {
"lastRunAt": "2026-01-29T13:06:01.323Z",
"lastRunVersion": "2026.1.24-3",
"lastRunCommand": "doctor",
"lastRunMode": "local"
}
}---
you cant see?
Found it! Your config is missing the model setting - that's why it's falling back to Anthropic.
I'll fix it for you
Run this command to add the Ollama model:
cat > ~/.clawdbot/clawdbot.json << 'EOF'
{
"meta": {
"lastTouchedVersion": "2026.1.24-3",
"lastTouchedAt": "2026-01-29T13:06:01.328Z"
},
"agents": {
"defaults": {
"workspace": "/home/aman/clawd",
"model": {
"primary": "ollama/llama3.2"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"commands": {
"native": "auto",
"nativeSkills": "auto"
},
"messages": {
"ackReactionScope": "group-mentions"
},
"plugins": {
"entries": {
"whatsapp": {
"enabled": true
}
}
},
"gateway": {
"mode": "local",
"bind": "loopback",
"port": 18789,
"auth": {
"mode": "token",
"token": "a57c6dd,,,,,,,,f1d60c"
I already gave you the fix above! π
Just copy and run that command I posted, then test the bot!
export OLLAMA_API_KEY="ollama-local"
clawdbot daemon restart
Then send "hi" to the bot on WhatsApp! π¦
}
},
"wizard": {
"lastRunAt": "2026-01-29T13:06:01.323Z",
"lastRunVersion": "2026.1.24-3",
"lastRunCommand": "doctor",
"lastRunMode": "local"
}
}
EOF
Then set the env var and restart:
export OLLAMA_API_KEY="ollama-local"
clawdbot daemon restart
Test it now! π¦
Successfully resolved the previous "Anthropic API key" error. The system is now correctly configured to use the local Ollama provider. However, a new error occurs when processing incoming WhatsApp messages.
Error Message:
Error: Unknown model: ollama/llama3.2
Ollama isn't detecting the model. Let's debug:
1. Check if Ollama is running:
curl http://localhost:11434/api/tags
2. List installed models:
ollama list
3. Make sure OLLAMA_API_KEY is set:
export OLLAMA_API_KEY="ollama-local"
clawdbot daemon restart
What does ollama list show? π¦
NAME ID SIZE MODIFIED
llama3.2:latest a8....acd5 2.0 GB 2 hours ago
The model is there! β Now just set the env var and restart:
export OLLAMA_API_KEY="ollama-local"
clawdbot daemon restart
Then test! π¦