Model providers

Using BytePlus with OpenClaw

3 min read

Browse more in Model providers.

All model providers guides →

This guide shows you how to wire up BytePlus (International) as a model provider inside OpenClaw. You will authenticate a provider, then point your agents at a specific `provider/model` string so OpenClaw can route traffic correctly.

By the end, you will have OpenClaw configured to use a non-default provider in your agent defaults.

Setup flow

Prerequisites

  • An existing OpenClaw project created from the official quickstart or install flow.
  • Access to at least one supported model provider account (for example Anthropic, OpenAI, or BytePlus (International) via the model providers page).
  • The OpenClaw CLI installed and available in your shell so you can run `openclaw onboard`.

Steps

  1. 1

    Understand how OpenClaw selects a model provider

    OpenClaw always talks to models through a `provider/model` identifier, so you need to know this format before you plug in BytePlus. The provider directory makes it clear that you first pick a provider, authenticate, then set the default model string.

    This mental model helps you swap providers later without rewriting your agents.

    text
    OpenClaw can use many LLM providers. Pick a provider, authenticate, then set the default model as `provider/model`.
  2. 2

    Authenticate with a model provider using the CLI

    Before you can call any model, you need to authenticate with its provider using the OpenClaw CLI. The docs describe this as the first step in the quick start, and most providers follow the same `openclaw onboard` pattern.

    Run this from your project so OpenClaw can store credentials and test connectivity.

    text
    1.   Authenticate with the provider (usually via `openclaw onboard`).
  3. 3

    Set a default model for your agents

    Once a provider is onboarded, you tell OpenClaw which model to use by default for your agents. primary` to a `provider/model` string in your config.

    The example uses Anthropic, but you will swap that string to the BytePlus (International) model you want once you have its identifier.

    json
    {
      agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },
    }
  4. 4

    Locate the BytePlus (International) provider details

    BytePlus (International) is documented alongside other providers on the model providers concept page. Use that page to find the exact `provider/model` name and any provider-specific onboarding flags you need.

    This keeps your OpenClaw config aligned with the provider’s actual API surface.

    text
    *   [BytePlus (International)](https://docs.openclaw.ai/concepts/model-providers#byteplus-international)
  5. 5

    Switch your default model to the BytePlus provider

    After you know the BytePlus `provider/model` string, update your agent defaults to point at it instead of the example Anthropic model. The structure of the config stays the same; only the `primary` value changes.

    This is how you move an existing OpenClaw agent over to BytePlus without touching channel or tool wiring.

    json
    {
      agents: { defaults: { model: { primary: "provider/model" } } },
    }

Configuration

OptionDescriptionExample
agents.defaults.model.primarySets the default model for your agents using a `provider/model` identifier.anthropic/claude-opus-4-6

Troubleshooting

Your agent responses still come from the old provider instead of BytePlus.

primary` value. Make sure you updated this to the correct BytePlus `provider/model` string and that the change is applied wherever your config is loaded.

bash
{
  agents: { defaults: { model: { primary: "provider/model" } } },
}

Model calls fail right after switching providers.

The quick start requires you to authenticate with the provider first using `openclaw onboard`. primary` to a new provider without onboarding it, OpenClaw cannot authenticate and calls will fail until you complete the onboarding step.

bash
1.   Authenticate with the provider (usually via `openclaw onboard`).

Frequently asked questions

Powered by Mem0

Add persistent memory to OpenClaw

Official Mem0 plugin for OpenClaw keeps context across chats and tools. Smaller prompts, lower cost, better continuity for your agents.

More in Model providers