#How do i change my agent's LLM ?

1 messages · Page 1 of 1 (latest)

random karma
#

How do i change my agent's LLM ?

swift hullBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

wise archBOT
#

You’ve got two common options:

1. Change just this chat/session
Send:

/model

That opens the model picker. You can also do:

/model list
/model status

2. Change the agent’s default LLM

#

On the machine running OpenClaw:

openclaw models list
openclaw models set <provider/model>

Or use the interactive wizard:

openclaw configure --section model

Under the hood, the default lives at:

random karma
#

I am running openclaw in WSL2, i have 3 agents running now. First agent is routing to openrouter auto for some reason. It was previously a selected LLM ( sonnet ), the other 2 agents are routing to the correct LLM.

How do i change my first agent to route to the correct LLM on openrouter ?

wise archBOT
#

First, please grab your version too:

openclaw --version

For your case, this sounds like agent 1 has a persisted session auto-fallback or a per-agent model override.

1. Find the exact agent id/index

openclaw agents list --bindings
openclaw config get agents.list --json

2. Check that agent’s model state

#
openclaw models status --agent <agentId>

3. If it’s only the current session stuck on openrouter/auto

In that agent’s chat/thread, run:

/reset

Then select the exact OpenRouter model:

/model openrouter/<provider>/<model>
#

Use the full OpenRouter ref, not just sonnet, because bare aliases can resolve somewhere else.

4. If you want to change that agent’s default

Edit the specific agent entry, e.g. if it’s agents.list[0]:

openclaw config set agents.list[0].model '{"primary":"openrouter/<provider>/<model>","fallbacks":[]}' --strict-json
openclaw gateway restart

Then verify:

openclaw models status --agent <agentId>