1
Install Your Agent
If you haven’t already, install your agent:
2
Get a FriendliAI API Key
If you need a new API key, create one.
3
Install FriendliLink
In your terminal, run the following command:The command installs the FriendliLink CLI. You can use
friendlilink or frlink.4
Save Your API Key
In your terminal, run the following command:Then, paste your FriendliAI API key.
5
Set Up Your Agent
In your terminal, run the following command:Replace
<FRIENDLILINK_AGENT_ID> with your agent’s ID:Then, select a model. For example, select zai-org/GLM-5.3.
6
Send a Prompt to Your Agent
Open your agent and send a prompt. For example, use the following prompt:To learn more, see FriendliLink README.
Use a FriendliAI model to explore your codebase.
Help
Find answers to common agent setup questions.