Skip to main content
Configure OpenClaw to call the Modellix LLM gateway. OpenClaw does not ship a built-in Modellix provider, so add a custom provider that points at Chat Completions on POST /v1/chat/completions.
This page covers LLM text only (https://llm.modellix.ai). For OpenClaw media skills and plugins (image, video, speech), see Plugin and Skill.Modellix model IDs are provider/name (for example openai/gpt-5.5). In OpenClaw, register that full string under your custom provider, then select modellix/<model-id> (for example modellix/openai/gpt-5.5). See Models & Pricing.

Set Up OpenClaw

1

Get a Modellix API Key

Create a Modellix API key in the console and store it securely. You will set it as MODELLIX_API_KEY in the OpenClaw config below.
2

Add a Custom Provider

Create or update ~/.openclaw/openclaw.json with a full config that defines the Modellix provider, models, and a primary agent model:
Replace mdlx-xxxxxxxx with your Modellix API key. Merge these fields into an existing config if you already use OpenClaw.
Use a custom provider key such as modellix. Overwriting OpenClaw’s built-in openai or anthropic providers sends traffic to the vendor endpoints instead of Modellix.
Add or remove entries under models.providers.modellix.models as needed. Full catalog: Models & Pricing.
3

Set the Primary Model

The example above sets the primary model to modellix/openai/gpt-5.5. To switch models, update both fields:
  • agents.defaults.model.primary β€” OpenClaw ref: modellix/ + Modellix Model ID
  • agents.defaults.models β€” include the same ref so the agent can use it
Examples:You do not need a separate Anthropic base URL for OpenClaw. Register anthropic/... and google/... IDs on the same Modellix custom provider; traffic goes through OpenAI-compatible Chat Completions on https://llm.modellix.ai/v1.
Do not set agents.defaults.model.primary to a built-in ref such as openai/gpt-5.5. That routes through OpenClaw’s native OpenAI provider, not Modellix.
4

Start OpenClaw

Start or restart the OpenClaw gateway so it loads the updated config:
Optionally list models to confirm Modellix entries appear:

Troubleshooting