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

# LaunchDarkly

The [LaunchDarkly](https://launchdarkly.com/) integration lets ResolveAI read your feature flags, targeting, segments, experiments, and change history during investigations. With write tools turned on, Resolve can also turn a flag on or off and change who gets which variation.

## How It Works

Resolve calls the [LaunchDarkly REST API](https://launchdarkly.com/docs/api) with an API access token you provide. Resolve reads flag changes from LaunchDarkly's audit log, so during an investigation it can check whether a flag changed shortly before the problem started.

## Tools

> [accordion] Read tools
>
> | Tool |
> | - |
> | List and search projects, flags, and segments |
> | Show a flag's targeting in an environment |
> | Check where a flag is still evaluated, across environments |
> | Show an environment's settings, including its approval settings |
> | Search the change history |
> | Search contexts |
> | List experiments and metrics |

> [accordion] Write tools
>
> | Tool |
> | - |
> | Turn a flag on or off |
> | Change a flag's default rollout |
> | Add or remove a flag's individual targets |
> | Change what a targeting rule serves |
> | Request a flag change through LaunchDarkly's approvals |
>
> Each write tool changes one flag in one environment. Every action needs approval in Resolve, and these tools can't be set to **Always allow**. In an environment that requires [LaunchDarkly approvals](https://launchdarkly.com/docs/home/releases/approvals), Resolve files the change as a LaunchDarkly approval request instead, and the flag changes only after it's approved and applied in LaunchDarkly.
>
> To turn on write tools, give the access token a role that can change flags when you [connect LaunchDarkly](#connect-launchdarkly).
>
> To learn more about approvals, see [Tool permissions](https://docs.resolve.ai/tool-permissions.md).

## Connect LaunchDarkly

### 1. Create an access token

In LaunchDarkly, go to **Organization settings** → **Authorization** and create an API access token. See [Create API access tokens](https://launchdarkly.com/docs/home/account/api-create).

Give it the role that matches what Resolve should do:

| Role | Tools |
| - | - |
| Reader | Read tools |
| Writer, or a custom role that can update flags | Read and [write tools](#tools) |

### 2. Add the integration in ResolveAI

1. Open [Integrations](https://agent.resolve.ai/integrations) and click the [LaunchDarkly](https://agent.resolve.ai/integrations/launchDarkly/connect) tile.
2. Paste the token and choose your LaunchDarkly instance. Most accounts use `https://app.launchdarkly.com`.
3. Click **Save**.

Write tools appear once Resolve confirms the token can change flags.

## Verify the Connection

Ask Resolve in chat:

1. "Which LaunchDarkly projects do you have access to?"
2. "What flags changed in production in the last 24 hours?"
