Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.llmeasy.ru/llms.txt

Use this file to discover all available pages before exploring further.

OpenClaw is a cross-platform AI agent gateway for Discord, Google Chat, iMessage, Matrix, Microsoft Teams, Signal, Slack, Telegram, WhatsApp, Zalo, and more. This page shows you how to connect LLMEasy to OpenClaw and do a basic verification.

Install OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash

Install and connect

You can run the LLMEasy automatic setup script directly. Have your LLMEasy API Key ready before you start. The script requires Node.js. If you do not pass an API Key or model explicitly, the script prompts for them when the tool supports interactive input. After the script finishes, continue to “Make it take effect” below.Follow the step for your operating system. You only need one of them.
1

If you use macOS / Linux

curl -fsSL https://www.llmeasy.ru/install-openclaw-provider.sh | bash
2

If you use Windows

iwr https://www.llmeasy.ru/install-openclaw-provider.ps1 -OutFile "$env:TEMP\install-openclaw-provider.ps1"; powershell -ExecutionPolicy Bypass -File "$env:TEMP\install-openclaw-provider.ps1"

Notes for multi-agent setups and existing sessions

The effective model priority in OpenClaw is usually: session override > agents.list[*].model > agents.defaults.model.primary This means:
  • If an agent explicitly defines model in agents.list, it does not inherit the global default model.
  • If you set LLMEasy as the global default model but main still pins an older model, Discord DM flows that use main still keep using the older model.
  • If a previous session still has providerOverride, modelOverride, or authProfileOverride, the current session may keep using the old route even after you update the default model.
Recommended workflow:
  1. If you want main to follow the global default, do not set a separate model for main, or change it to LLMEasy.
  2. Run openclaw gateway restart after changing the config.
  3. Run /new in Discord to start a fresh session.
  4. Use /status and /model to verify the active model.

Minimal config example

Use the provider id shown by openclaw models list. The example below uses llmeasy/gpt-5.4; replace it if your provider id is different.
{
  "agents": {
    "defaults": {
      "model": {
        "primary": "llmeasy/gpt-5.4",
        "fallbacks": []
      },
      "models": {
        "llmeasy/gpt-5.4": {
          "alias": "llmeasy"
        }
      }
    },
    "list": [
      {
        "id": "main"
      },
      {
        "id": "fitness-coach"
      },
      {
        "id": "trade-recorder",
        "model": {
          "primary": "llmeasy/gpt-5.4",
          "fallbacks": []
        }
      }
    ]
  }
}
  • main does not define model, so it inherits the global LLMEasy default.
  • trade-recorder defines model, so it does not follow later changes to the global default.

Make it take effect

If /model is unstable, hot reload is inconsistent, or the model picker behaves strangely on an older OpenClaw build, upgrade to the latest version before deeper troubleshooting.
1

Verify the config layer first

Run:
openclaw models list
openclaw models status
Confirm the LLMEasy provider exists and the default model points to LLMEasy.
2

Reload the gateway

openclaw gateway restart
3

Start a new session

Run /new in Discord.
4

Verify the model used by the current session

Run /status in Discord and confirm the current agent and current session are using LLMEasy.
5

Check the available model picker if needed

Run /model in Discord.If LLMEasy does not appear there, check:
  • whether the current model is listed in agents.defaults.models
  • whether the provider model has a readable display name and, if needed, an alias in agents.defaults.models
  • whether you already ran openclaw gateway restart
  • whether you already ran /new

Troubleshooting shortcuts

  • If you changed the default model but runtime still uses the old one, check agents.list.main.model first
  • If LLMEasy does not appear in /model, check whether it is listed in agents.defaults.models
  • If Discord still shows the old route after a config change, run openclaw gateway restart and then /new
  • If the model picker or hot reload still looks stale, upgrade OpenClaw first and test again

Fallback: let Codex configure it for you

If you do not want to edit the config manually, set the API Key as an environment variable and start Codex:
export LLMEASY_API_KEY="YOUR_API_KEY"
codex
Then send this prompt to Codex:
Please inspect and fix my local OpenClaw LLMEasy setup. Requirements:
1. Read the current OpenClaw config first and identify the provider id, the default model, and which agents in agents.list explicitly define model.
2. If the LLMEasy provider does not exist, add one that uses the Base URL `https://www.llmeasy.ru/v1` and sets `api: "openai-responses"`.
3. Reuse any credential already saved by OpenClaw. Only configure extra headers when the current version or your upstream gateway explicitly requires them; do not assume `User-Agent` is mandatory for LLMEasy.
4. Switch the default model to LLMEasy and check whether `main` is still pinned to an older model. If I want `main` to follow the global default, remove the explicit model from `main`.
5. Make sure the active LLMEasy model is present in `agents.defaults.models` and add an easy-to-recognize `alias`.
6. Back up the original config, make the smallest possible diff, and tell me which fields you plan to change before editing.
7. After editing, run `openclaw gateway restart` and remind me to validate with `/new`, `/status`, and `/model` in Discord.

Constraints:
- If you need the API Key, read it from the `LLMEASY_API_KEY` environment variable and do not print the secret in chat or logs.
- If the current config does not include a LLMEasy model yet, ask me for a Codex-group model ID from the LLMEasy model plaza.