Sonu Sahani logo
Sonusahani.com
How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot?

How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot?

0 views
4 min read
#AI

I will show two methods to add a fallback model. First let me list all models configured in this OpenClaw setup.

Run this command to list models.

openclaw models list

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 8s

It will list all models configured in this setup. It says four models. First one is a primary or default model.

You can see the tag default. These two are fallback models, fallback one and fallback two. The third one is just a model that I configured but it is not set as primary or fallback.

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 25s

If you want to remove an unused entry from your setup, see how to delete a model in OpenClaw or ClawdBot.

Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot?

Method 1 - CLI

Next I will show you how we can add a new fallback model. Run this command.

openclaw models fallbacks add <MODEL_NAME>

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 48s

Then you can mention the name of the model that you want to add. It says updated the configuration file. Now the fallback models are GPT-4.0 mini, 4.1 nano, then this new model.

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 62s

Run the models list command again to confirm the third fallback model appears.

openclaw models list

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 79s

If you need to reset your list, you can clear fallback models using the OpenClaw tools.

If the model you want to add is served via Ollama, follow this guide to add an Ollama model to OpenClaw before setting it as a fallback.

Method 2 - Edit the config file

Method two, we can directly edit the OpenClaw configuration file, then add a fallback model. This is the configuration file openclaw.json. Open this file in vim or nano.

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 100s

Check for the models section. Under this models section, you would be able to see all models configured. Here you can see the primary model and the other models that you configured.

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 112s

Go to the top of this section to see the current default or primary model and the fallbacks models. In this list you can find that new model. If you want to add a new model, edit this JSON file and add it under the models section and the fallback section.

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 156s

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 140s

Here is a minimal example of how the structure typically looks.

{
  "models": {
    "default": "gpt-4.1",
    "fallbacks": [
      "gpt-4.0-mini",
      "4.1-nano",
      "my-new-model"
    ],
    "all": [
      "gpt-4.1",
      "gpt-4.0-mini",
      "4.1-nano",
      "my-new-model"
    ]
  }
}

After that we need to save this file, then restart the gateway service. Restarting applies the changes.

Screenshot from How to Add a Fallback Model in OpenClaw, ClawdBot, and MoltBot? at 169s

If you run into configuration or runtime issues after editing, use this guide to fix common OpenClaw errors.

If you are setting this up for ClawdBot on Telegram, you can connect OpenClaw to Telegram via ClawdBot and your fallback chain will be used there too.

Final thoughts

These are the two methods I use to add a fallback model. Use the CLI for quick updates, or edit openclaw.json when you want precise control over the default and fallbacks. Save your changes and restart the gateway service to apply them.

Subscribe to our newsletter

Get the latest updates and articles directly in your inbox.

sonuai.dev

Sonu Sahani

AI Engineer & Full Stack Developer. Passionate about building AI-powered solutions.

Related Posts