Set up Codex to connect to FriendliAI. Once you complete these steps, your agent will send requests to FriendliAI.
To get started, complete the following steps:
Install Codex
If you haven't already, install Codex.
Get a FriendliAI API Key
If you need a new API key, create one.
Set Up Codex
-
Open your
~/.codex/config.tomlfile. -
Add the following to the start of the file:
Replace the following placeholders:
<FRIENDLIAI_API_KEY>: Your FriendliAI API key.<FRIENDLIAI_MODEL_ID>: The FriendliAI model ID. For example,zai-org/GLM-5.3.
- Save your file.
Send a Prompt to Codex
Open your agent and send a prompt. For example, use the following prompt:
Explore your codebase.
To learn more, see Codex Docs > Quickstart.