> ## 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 Kilo Code with FriendliAI

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

export const AgentAlternativeTip = ({agentName, agentAlternativeType, agentAlternativeUrl, agentAlternativeInstallPageName, agentAlternativeInstallUrl}) => <Tip>The following steps are specific to the {agentName} Visual Studio Code extension. If you're using another {agentName} product (such as <a href={agentAlternativeUrl}>{agentName} {agentAlternativeType}</a>), see <a href={agentAlternativeInstallUrl}>{agentName} Docs {">"} {agentAlternativeInstallPageName}</a> instead.</Tip>;

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="Kilo Code" agentMarketingUrl="https://kilo.ai" />

<AgentSteps agentName="Kilo Code" agentInstallUrl="https://kilo.ai/docs/getting-started/installing" agentPromptPageName="Quickstart" agentPromptUrl="https://kilo.ai/docs/getting-started/quickstart">
  <AgentAlternativeTip agentName="Kilo Code" agentAlternativeType="CLI" agentAlternativeUrl="https://kilo.ai/docs/code-with-ai/platforms/cli" agentAlternativeInstallPageName="Setup and Authentication" agentAlternativeInstallUrl="https://kilo.ai/docs/getting-started/setup-authentication" />

  1. Open Visual Studio Code. Then, open the Kilo Code panel.

  2. In the panel's upper-right corner, click **Settings**.

  3. In the left sidebar, click **Providers**.

  4. Click **Show more providers**.

  5. Search for and select **Friendli**.

  6. Paste your FriendliAI API key. Then, click **Submit**.

  7. Open the Kilo Code panel and select a model. For example, select `zai-org/GLM-5.2`.

  To learn more, see [Kilo Code Docs > Model Selection Guide](https://kilo.ai/docs/code-with-ai/agents/model-selection).
</AgentSteps>
