> ## Documentation Index
> Fetch the complete documentation index at: https://friendli.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Hermes Agent with FriendliAI

> Configure Hermes Agent to use FriendliAI for fast, cost-efficient, and reliable open-source model inference.

export const AgentSteps = ({agentName, agentInstallUrl, agentPromptPageName, agentPromptUrl, children}) => <Steps>
    <Step title={`Install ${agentName}`}>
      <p>If you haven't already, <a href={agentInstallUrl}>install {agentName}</a>.</p>
    </Step>

    <Step title="Get a FriendliAI API Key">
      <p>If you need a new API key, <a href="/integrate/overview#create-an-api-key">create one.</a></p>
    </Step>

    <Step title={`Set Up ${agentName}`}>
      {children}
    </Step>

    <Step title={`Send a Prompt to ${agentName}`}>
      <p>Open your agent and send a prompt. For example, use the following prompt:</p>

      <Prompt description="Use a FriendliAI model to explore your codebase." icon="robot">
        What can you tell me about this codebase?
      </Prompt>

      <p>To learn more, see <a href={agentPromptUrl}>{agentName} Docs {">"} {agentPromptPageName}</a>.</p>
    </Step>

  </Steps>;

export const AgentIntro = ({agentName, agentMarketingUrl}) => <>
    <p>Set up <a href={agentMarketingUrl}>{agentName}</a> to connect to FriendliAI. Once you complete these steps, your agent will send requests to FriendliAI.</p>

    <p>To get started, complete the following steps:</p>

  </>;

<AgentIntro agentName="Hermes Agent" agentMarketingUrl="https://hermes-agent.nousresearch.com" />

<AgentSteps agentName="Hermes Agent" agentInstallUrl="https://hermes-agent.nousresearch.com/docs/getting-started/installation" agentPromptPageName="Quickstart" agentPromptUrl="https://hermes-agent.nousresearch.com/docs/getting-started/quickstart">
  1. In your terminal, run the following command:

     ```sh theme={null}
     hermes model
     ```

     Hermes Agent opens.

  2. Select **Custom endpoint (enter URL manually)**.

  3. Connect Hermes Agent to FriendliAI's API:
     1. In **API base URL**, paste the following FriendliAI base URL:

        ```text theme={null}
        https://api.friendli.ai/serverless/v1
        ```

     2. In **API Key**, paste your FriendliAI API key.

     3. In **Select API compatibility mode**, press <kbd>Enter</kbd> to auto-detect.

     4. In **Available models**, select a model. For example, select **zai-org/GLM-5.2**.

     5. In **Context length in tokens**, press <kbd>Enter</kbd> to auto-detect.

     6. *(Optional)* In **Display name**, enter "FriendliAI".

  To learn more, see [Hermes Agent Docs > AI Providers](https://hermes-agent.nousresearch.com/docs/integrations/providers).
</AgentSteps>
