> ## 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.

Set up [DeepSeek Harness](https://deepseek.com/harness/en/) to connect to FriendliAI. Once you complete these steps, your agent will send requests to FriendliAI.

To get started, complete the following steps:

**1. Install DeepSeek Harness**

If you haven't already, [install DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness/blob/master/README.md#run).

**2. Get a FriendliAI API Key**

If you need a new API key, [create one.](https://friendli.ai/docs/examples/agents/overview.md#create-an-api-key)

**3. Set Up DeepSeek Harness**

> [!TIP]
>
> [Set Up FriendliLink](https://friendli.ai/docs/examples/agents/friendlilink.md) and connect your agent to FriendliAI with one command.

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).

**4. Send a Prompt to DeepSeek Harness**

Open your agent and send a prompt. For example, use the following prompt:

Explore your codebase.

What can you tell me about this codebase?

To learn more, see [DeepSeek Harness Docs > Use the Web UI](https://deepseek-harness.github.io/deepseek-harness/en/guide/quickstart).

> [card] [Help](https://learn.friendli.ai/collections/1270196079-integrations-and-compatibility)
>
> Find answers to common agent setup questions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.