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:
Install OpenClaw
If you haven't already, install OpenClaw.
Get a FriendliAI API Key
If you need a new API key, create one.
Set Up OpenClaw
-
In your terminal, run the following command:
OpenClaw opens.
- Review the security disclaimer. If you understand it, continue.
- In Setup mode, select Quickstart.
- In Model/auth provider, select More…. Then, select Custom Provider.
-
Connect OpenClaw to FriendliAI’s API:
-
In API Base URL, paste the following FriendliAI base URL:
- When asked How do you want to provide this API Key?, select Paste API Key now. Then, paste your FriendliAI API key.
- In Endpoint compatibility, select OpenAI-compatible.
-
In Model ID, enter the FriendliAI model ID. For example, enter
zai-org/GLM-5.3. - (Optional) In Endpoint ID, enter “FriendliAI”.
- In Model alias, press Enter.
- When asked Does this model support image input?, select Yes or No.
-
In API Base URL, paste the following FriendliAI base URL:
- Follow the onscreen instructions.
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.