---
title: "Get started with Kai Code"
description: "Let Kai Code turn a ticket into a pull request: connect a repository, start a fix from the ticket, choose where it runs and review the result."
url: https://help.gleap.ai/fr/articles/16751972-get-started-with-kai-code
collection: "Investigations and Kai Code"
updated: 2026-11-16
language: fr
alternates: [en]
---

# Get started with Kai Code

Let Kai Code turn a ticket into a pull request: connect a repository, start a fix from the ticket, choose where it runs and review the result.

Kai Code is Gleap's coding agent. It reads your repositories, investigates a bug report or feature request, changes the code and opens a pull request, right from the ticket. Once the fix is merged, it can tell the customer. Kai Code is available on Growth and up (Team on older plans), including the 7-day trial. Using it needs the Kai Code permissions **Cloud coding**, **Local coding** and **Settings**, which Administrators and Managers have by default.

### Connect a repository

Kai Code works in the repositories you connect to the project. Do this once per project.

1.  Open **AI agents → Kai Support → Settings → Code fixes → Repositories**.
    
2.  Choose **Add repositories**. Connect GitHub if prompted and grant access to the repositories Kai needs.
    
3.  Search for and select the repositories for coding work.
    
4.  Open each repository to check its branch, description, access and setup status.
    

The repositories appear in the list. On the shared repository page, **Used by** shows which agents use each one. Kai Support and Kai Copilot can answer from connected repositories by default; review their switches here. Older provider screens may still show **Add repository** and provider-specific setup.

![GitHub setup offering Kai Code and code knowledge in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/roygsq2B80jmtEDf2LIUIee6ipIB3Sn2C3GLCCHfHT9HbQEAgZekBemzUUV9MMhVbhuYvMIOoUY.png)

### Fix a ticket with Kai Code

1.  Open a bug report, feature request or inbox conversation. When the ticket is with your team, its hand-over box shows what happened and a **Fix with Kai Code** button.
    
2.  Click **Fix with Kai Code**. Kai Support starts working on the ticket where your **Start with** choice points: Kai Code Cloud until you pick another. It takes the ticket along: its conversation, screenshots, replay and logs.
    
3.  Follow the work in the pane next to the ticket, and use its box to add instructions.
    

A ticket has one running session at a time; starting it again opens the running one. In a ticket, **Shift+C** opens the repository picker for **Fix with Kai Code**.

Kai Code always starts from a ticket, and sessions started from a ticket are visible to your team.

### Where Kai Code runs

**Fix with Kai Code** runs on your own **Start with** choice. Pick another place from the arrow next to the button, or under **Code fixes → Overview → Your Fix with Kai Code button**; your pick becomes the button's default. Fixes that Kai Support starts on its own run where **Runs on** under **How fixes start** says.

<table style="min-width: 75px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Option</p></th><th colspan="1" rowspan="1"><p>What it uses</p></th><th colspan="1" rowspan="1"><p>Cost</p></th></tr><tr><td colspan="1" rowspan="1"><p><strong>Kai Code Cloud</strong></p></td><td colspan="1" rowspan="1"><p>Gleap's sandbox. Nothing to install.</p></td><td colspan="1" rowspan="1"><p>API usage pricing, from your organisation's AI balance.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Kai Code Bridge</strong></p></td><td colspan="1" rowspan="1"><p>Your computer or server, with your own Claude Code, Codex or Cursor login and your local checkouts. Set it up with <code>npm i -g @gleapai/kai-bridge &amp;&amp; kai-bridge</code>, or with a few clicks in the Gleap desktop app.</p></td><td colspan="1" rowspan="1"><p>Not billed by Gleap.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Claude Code</strong>, <strong>ChatGPT</strong>, <strong>Cursor</strong>, <strong>Antigravity</strong></p></td><td colspan="1" rowspan="1"><p>Your own coding app on your computer. Pick it under <strong>Open on your computer</strong> in the arrow menu next to <strong>Fix with Kai Code</strong> on the ticket.</p></td><td colspan="1" rowspan="1"><p>Your app's own subscription.</p></td></tr></tbody></table>

> **Warning:** The hand-off to a coding app on your computer reports status and pull requests back to the ticket through the Gleap MCP server. Connect the Gleap MCP server in that app first, or the ticket never hears back.

On Growth and Team, cloud sessions use the default model; picking another model needs Pro.

### Review the pull request

-   **Pull request bar:** every pull request Kai opens shows above the composer with its state. When checks fail, the branch has conflicts or is out of date, click **Ask Kai to fix**. If an admin switched on **Merge from Gleap** under **Kai Support → Settings → Code fixes**, project admins can squash-merge a GitHub pull request with **Merge** once it's ready. Otherwise you review and merge in your provider as usual.
    
-   **Artifacts:** Kai can publish a page, such as a report, in the session. Open it in the side panel; **Share** creates a link anyone can open without signing in.
    

### What happens after the merge

**Code fixes → After a fix** decides what the customer hears: **When a teammate confirms** (the default), **Automatically** a set number of minutes after the merge, or **Don’t send**. With **Tell the customer a fix is coming** on, Kai also lets the customer know as soon as the pull request is ready. See [customer replies](https://docs.gleap.ai/documentation/kai-code/customer-replies) in the developer docs for every option.

### Kai Code settings

Kai Code's settings are under **AI agents → Kai Support → Settings → Code fixes**:

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Page</p></th><th colspan="1" rowspan="1"><p>What it holds</p></th></tr><tr><td colspan="1" rowspan="1"><p><strong>Overview</strong></p></td><td colspan="1" rowspan="1"><p><strong>Fix bugs in code</strong>, <strong>How fixes start</strong> and your <strong>Fix with Kai Code</strong> button; the default model and effort, custom instructions, repository routing, <strong>Merge from Gleap</strong> and the sandbox settings.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Repositories</strong></p></td><td colspan="1" rowspan="1"><p>Connected repositories, their default branch, description and excluded paths.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Kai Code Bridge</strong></p></td><td colspan="1" rowspan="1"><p>Your paired machines, their coding agent sign-ins, and machines teammates shared with you.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Secrets &amp; setup</strong></p></td><td colspan="1" rowspan="1"><p>Secrets, setup commands and Kai Code's memory of the project.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>After a fix</strong></p></td><td colspan="1" rowspan="1"><p>What the customer hears when a fix is coming or merged, and whether the ticket moves to Done.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Vibe coding</strong></p></td><td colspan="1" rowspan="1"><p>Lovable, Replit, v0 and Base44 accounts, for apps that live on those platforms.</p></td></tr></tbody></table>

MCP servers that give Kai Code extra tools, such as your issue tracker, are on Kai Support's **Tools** page.

For the full reference, see the [Kai Code developer docs](https://docs.gleap.ai/documentation/kai-code/overview), including [sessions](https://docs.gleap.ai/documentation/kai-code/sessions) and [repositories](https://docs.gleap.ai/documentation/kai-code/repositories).

### One connection, shared repository settings

The GitHub connection, branch and hidden paths are shared. Review **Used by** for each repository to control which agents answer from it or do coding work in it. [Connect a code repository](https://help.gleap.ai/en/articles/264-connect-a-code-repository.md) explains the current setup.

### Related

-   [How Kai Support investigations and Kai Code work together](https://help.gleap.ai/en/articles/319-how-investigations-and-kai-code-work-together.md)
    
-   [Control what Gleap reads from your repository](https://help.gleap.ai/en/articles/380-control-what-gleap-reads-from-your-repository.md)
    
-   [Connect an AI assistant with the Gleap MCP server](https://help.gleap.ai/en/articles/369-connect-an-ai-assistant-with-the-gleap-mcp-server.md)
    
-   [Plans, seats and AI credits](https://help.gleap.ai/en/articles/377-plans-seats-and-ai-credits.md)
