Set up OpenHands to connect to FriendliAI. Once you complete these steps, your agent will send requests to FriendliAI.
To get started, complete the following steps:
Install OpenHands
If you haven't already, install OpenHands.
Get a FriendliAI API Key
If you need a new API key, create one.
Set Up OpenHands
-
Start Agent Canvas. Then, open
http://localhost:8000. - On Choose your agent, select OpenHands. Then, click Next.
- On Set up your LLM, click the Advanced tab.
-
Connect OpenHands to FriendliAI’s API:
- In Authentication, select API key.
-
In Custom Model, enter the FriendliAI model ID with the
friendliai/provider prefix. For example, enterfriendliai/zai-org/GLM-5.3. -
In Base URL, paste the following FriendliAI base URL:
- In API Key, paste your FriendliAI API key.
- Click Next.
Send a Prompt to OpenHands
Open your agent and send a prompt. For example, use the following prompt:
Explore your codebase.
To learn more, see OpenHands Docs > First Time Setup.