This guide explains how to manage the AI provider assigned to your OpenClaw agent; specifically, how to change your primary model or delete models you no longer need.
Why Setting a Primary Model Matters
Your primary model is the default AI engine your agent uses to respond to conversations and handle tasks. Choosing the right primary model affects:
- Response Quality: Different models excel at different tasks, some are better for reasoning, others for speed or creativity.
- Fallback Chain: If the primary model is unavailable, your agent automatically uses the next available model in your list.
- Testing & Optimization: Switching primary models lets you experiment to find which works best for your specific needs.
Tip: Think of your primary model as your agent's "default brain." Change it whenever you need different capabilities or better performance.
How to Change Your Primary Model
Follow these steps to select a new primary model from your existing list.
-
Run setup command:
setup-ai. -
When prompted, you will see several options. Enter the letter
pto proceed with changing the primary model.
-
The system will display a numbered list of all models you have currently assigned. Enter the number corresponding to the model you want as your new primary.

-
The OpenClaw service will automatically restart to apply the change.
-
After the restart, the setup tool will prompt you again. You may type
qto quit.
How to Delete a Model
-
Run setup command:
setup-ai. -
When prompted, enter the letter
rto proceed with removing a model.
-
The system will display a numbered list of all your assigned models. Enter the number of the model you wish to delete.

Special Case: Deleting the Primary Model
-
If you select the current primary model for deletion, the system will warn you and prompt you to choose a new primary model immediately.

-
The OpenClaw service will automatically restart to apply the change.
-
After the restart, the setup tool will prompt you again. You may type
qto quit.
Important: Start a New Session to Apply Changes
After any change to your models (whether changing the primary or deleting a model), you must start a new session in your chat interfaces for the agent to recognize the updated configuration.
-
Web Chat - Click the 'New Session' button in the chat window.

-
Telegram - Type
/newin the bot chat.
-
WhatsApp - Type
/newin the conversation.
Why? Each conversation session caches the model configuration at the start. Typing /new forces a fresh session that picks up your latest changes.
Need Further Assistance?
If you need help with this guide, our support team is ready to assist you.