Skip to main content

Set up OpenClaw to connect to FriendliAI. Once you complete these steps, your agent will send requests to FriendliAI.

To get started, complete the following steps:

1

Install OpenClaw

If you haven't already, install OpenClaw.

2

Get a FriendliAI API Key

If you need a new API key, create one.

3

Set Up OpenClaw

  1. In your terminal, run the following command:
    OpenClaw opens.
  2. Review the security disclaimer. If you understand it, continue.
  3. In Setup mode, select Quickstart.
  4. In Model/auth provider, select More…. Then, select Custom Provider.
  5. Connect OpenClaw to FriendliAI’s API:
    1. In API Base URL, paste the following FriendliAI base URL:
    2. When asked How do you want to provide this API Key?, select Paste API Key now. Then, paste your FriendliAI API key.
    3. In Endpoint compatibility, select OpenAI-compatible.
    4. In Model ID, enter the FriendliAI model ID. For example, enter zai-org/GLM-5.3.
    5. (Optional) In Endpoint ID, enter “FriendliAI”.
    6. In Model alias, press Enter.
    7. When asked Does this model support image input?, select Yes or No.
  6. Follow the onscreen instructions.
To learn more, see OpenClaw Docs > Onboarding (CLI).
4

Send a Prompt to OpenClaw

Open your agent and send a prompt. For example, use the following prompt:

Explore your codebase.

To learn more, see OpenClaw Docs > Getting started.

Help

Find answers to common agent setup questions.
Last modified on September 2, 2026