#please oh please someone help me for the

1 messages ยท Page 1 of 1 (latest)

past kettle
#

In the config of openclaw int eh agents section there is a primary key change that there

#

to the openai models that you want to use

blazing portal
#

i choose this

#

i dont see an agents section

#

thankyou for replying btw

past kettle
#

click the model section

#

should be the thing then in that select open ai,give the auth/key then select the model

#

the advice i gave was to directly edit the json config but the terminal ui the info given above works for that

blazing portal
#

ive done this many times now

#

it still somehow reverts to anthropic

past kettle
blazing portal
past kettle
#

after that it will give ytou the model selector isnt it

blazing portal
#

keeps choosing this

past kettle
#

use the up and down arrow keys

#

once you find the model you want to use

#

click space on the keyboard to select it then click enter

blazing portal
past kettle
#

shoudl select what you need for ya

blazing portal
#

i have selected them, before i only selected 5.2 on this latest roublehsoot i selected more

#

its making me crazy

past kettle
#

hm

#

yeah you may need to check your config.json

blazing portal
#

any idea how to do that

past kettle
#

open the web ui

#

go to config ,in that you have option of form and raw click raw

#

then scrol down until you find this

#

in this change the primary to the model you want to use

blazing portal
#

this happens everytime i try to open web ui

past kettle
#

are you running openclaw on windows or wsl,or is it on vps

blazing portal
#

windows laptop

#

earlier when i ran openclaw gateway it opened new poweshell tab now it keeps it in sam tab

past kettle
#

thats normal but the web ui not working is weird , try disabling the firewall or allowing openclaw in the firewall

#

it should generally work

blazing portal
#

it worked earlier when it opened it in new window for powershell

past kettle
#

hm maybe you need to restart the openclaw gateway

blazing portal
#

is there a command that forces it to open new powershell window

past kettle
#

try this run openclaw gateway start

#

in one pwoershell window

#

then in another tab do openclaw dashboard

#

should fix that issue

blazing portal
#

perfecgt

#

ok this is what i got in what you referenced "agents": {
"defaults": {
"models": {
"openai/gpt-5.2": {
"alias": "gpt"
},
"openai/gpt-5.2-chat-latest": {},
"openai/gpt-5.2-codex": {},
"openai/gpt-5.2-pro": {},
"openai/o1": {},
"openai/o1-pro": {},
"openai/o3": {},

past kettle
#

add this then

#

"primary": ""

and put the model you want in that

#

"agents": {
"defaults": {
"model": {
"primary": "openrouter/qwen/qwen3-coder",

#

like that for example

#

and then click save ,should fix that and it should default to that model then

blazing portal
#

sorry bro, im new to all this, like this :

#

{
"meta": {
"lastTouchedVersion": "2026.2.2-3",
"lastTouchedAt": "2026-02-05T00:32:14.814Z"
},
"wizard": {
"lastRunAt": "2026-02-05T00:32:14.800Z",
"lastRunVersion": "2026.2.2-3",
"lastRunCommand": "configure",
"lastRunMode": "local"
},
"agents": {
"defaults": {
"models": {
"primary": "openai/gpt-5.2-chat-latest": {},
"openai/gpt-5.2": {
"alias": "gpt"
},
"openai/gpt-5.2-chat-latest": {},
"openai/gpt-5.2-codex": {},
"openai/gpt-5.2-pro": {},
"openai/o1": {},
"openai/o1-pro": {},

past kettle
#

yep that should work

#

click save and check if the issue is fixed

#

oh wait no

#

change this

#

": {},

#

to just ,

#

after the "primary": "openai/gpt-5.2-chat-latest"

blazing portal
#

like so },
"agents": {
"defaults": {
"models": {
"primary": "openai/gpt-5.2-chat-latest"
"openai/gpt-5.2": {
"alias": "gpt"
},

past kettle
#

"primary": "openai/gpt-5.2-chat-latest",

#

add a comma after that "

#

and save it

#

should be good to go

blazing portal
#

},
"agents": {
"defaults": {
"models": {
"primary": "openai/gpt-5.2-chat-latest",
"openai/gpt-5.2": {
"alias": "gpt" },
"openai/gpt-5.2-chat-latest": {},
"openai/gpt-5.2-codex": {},
"openai/gpt-5.2-pro": {},

#

now upon saving it says error invalid config

past kettle
#

"openai/gpt-5.2": {
"alias": "gpt" },
to
"openai/gpt-5.2": {},

should fix it

#

if that doesnt fix it copy the json give it a ai chat liek chatgpt or something and ask it to fix it for you ,but that shoudl gnerally fix it

blazing portal
#

Error: SyntaxError: JSON5: invalid character ',' at 61:4 i got that, chatgpt is being stupid and giving me more errors

past kettle
#

try gemini and tell it this is a config json dont change anything just fix syntax errors for me

#

should do

#

chatgpt has become more dumber lately

blazing portal
#

i noticed that too

#

i have to give up

#

i have been at this for 6 hours now

#

its crazy how difficult it is for a newer person

past kettle
#

another option is to just relaod the web dashboard

#

then go to the agents tab

blazing portal
#

i wish i could screenshot here

past kettle
#

in that you can click and chose primary model

#

yeah same

blazing portal
#

yes i tried that it just doesnt let me hit the save button

past kettle
#

hm so that ui is also broken? ie the agents ui

blazing portal
#

Agents
Manage agent workspaces, tools, and identities.
Agents
1 configured.
Refresh

m
main
main
default
m
main
Agent workspace and routing.
main
default
Overview
Files
Tools
Skills
Channels
Cron Jobs
Overview
Workspace paths and identity metadata.
Workspace
C:\Users\testi.openclaw\workspace
Primary Model

Identity Name
Assistant
Default
yes
Identity Emoji

Skills Filter
all skills
Model Selection
Primary model

openai-codex/gpt-5.1-codex-mini
Fallbacks (comma-separated)
openai/o1,openai/o1-pro,openai/o3

#

just wont let me hit save button on there

#

cause that wouldve been perfect

past kettle
#

yeah seems like a mess, i guess best option is to get gemini to fix the json copy paste it and get it to work that way

#

in the config ui

#

given the whole proj seems to be vibecoded to a large extent so many small bugs come up