> ## 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 DeepSeek Harness with FriendliAI

> Configure DeepSeek Harness 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="/docs/examples/agents/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="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="DeepSeek Harness" agentMarketingUrl="https://deepseek.com/harness/en/" />

<AgentSteps agentName="DeepSeek Harness" agentInstallUrl="https://github.com/deepseek-ai/deepseek-harness/blob/master/README.md#run" agentPromptPageName="Use the Web UI" agentPromptUrl="https://deepseek-harness.github.io/deepseek-harness/en/guide/quickstart">
  <Tip>
    [Set Up FriendliLink](/docs/examples/agents/friendlilink) and connect your agent to FriendliAI with one command.
  </Tip>

  1. In your terminal, run the following command:

     ```sh theme={null}
     npx @deepseek-ai/dsh web
     ```

     DeepSeek Harness opens.

  2. Open **Settings**. Then, click **Models**.

  3. Click **Add a custom provider**. Then, connect DeepSeek Harness to FriendliAI:
     1. In **Provider ID**, enter `friendliai`.

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

     3. In **Base URL**, paste the following FriendliAI base URL:

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

     4. In **API protocol**, select `openai-completions`.

     5. In **API key**, paste your FriendliAI API key.

     6. Click **Fetch available models**. Then, click **Add selected**.

     7. Click **Create provider**.

  4. When you're ready to send a prompt, select a model. For example, select **zai-org/GLM-5.3**.

  To learn more, see [DeepSeek Harness Docs > Configure models](https://deepseek-harness.github.io/deepseek-harness/en/guide/providers).
</AgentSteps>

<Card title="Help" icon="circle-question" href="https://learn.friendli.ai/collections/1270196079-integrations-and-compatibility">
  Find answers to common agent setup questions.
</Card>
