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

# Migrate to Confidence

> Migrate feature flags and experiments from PostHog, Eppo, Statsig, or Optimizely to Confidence using AI-powered migration kits.

The [Confidence plugin for AI coding assistants](https://github.com/spotify/confidence-ai-plugins) includes migration kits that automate moving from PostHog, Eppo, Statsig, or Optimizely to Confidence. Each kit guides your AI assistant through recreating your flags in Confidence and rewriting your application code to use the Confidence SDK. Install the kits and pick the one for your platform:

```bash theme={null}
npx skills add spotify/confidence-ai-plugins
```

The installer works with Claude Code, Cursor, Codex, Gemini CLI, and other AI assistants, and asks which skills and assistant to install to. To get the full plugin—including flag management and documentation search—install it with your assistant's own plugin manager instead.

The plugin works with [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://www.cursor.com/), [Codex](https://developers.openai.com/codex/), and [Gemini CLI](https://github.com/google-gemini/gemini-cli).

## How Migration Works

Every migration kit runs in two phases:

1. **Flag definitions**: The kit reads your flags, targeting rules, and rollout percentages from the source platform and recreates them in Confidence.
2. **Code transformation**: The kit rewrites your application code from the source platform's SDK to [OpenFeature](https://openfeature.dev/) with the Confidence SDK, creating one pull request per flag.

Each phase separates planning from execution. The kit first writes a plan file that you review, then executes it:

* `plan flag` generates a migration plan for your flag definitions
* `plan code` generates a migration plan for your code changes
* `execute <plan-file>` carries out the plan you generated

Plan files are self-contained and resumable. You can pause a migration, review what remains, and continue later—even with a different AI assistant.

## Install the Confidence Plugin

<Tabs>
  <Tab title="Claude Code">
    ```bash theme={null}
    claude plugin install confidence
    ```
  </Tab>

  <Tab title="Cursor">
    <Steps>
      <Step title="Open plugin settings">
        Go to **Settings > Plugins**.
      </Step>

      <Step title="Install the plugin">
        Search for **Confidence** and select **Install**. The plugin is also available on the [Cursor marketplace](https://cursor.com/marketplace/spotify).
      </Step>
    </Steps>
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    codex plugin marketplace add spotify/confidence-ai-plugins
    ```
  </Tab>

  <Tab title="Gemini CLI">
    ```bash theme={null}
    gemini extensions install https://github.com/spotify/confidence-ai-plugins
    ```
  </Tab>
</Tabs>

## Before You Begin

To run any migration kit, you need:

* A [Confidence](https://app.confidence.spotify.com) account with a client to resolve flags
* The Confidence Flags MCP server, authenticated with your account—see the [Use AI with Confidence](/docs/quickstarts/use-mcp) quickstart
* The Confidence Documentation MCP server, used during code transformation
* Read access to your source platform, typically an API key—see each migration kit page for details

Some advanced features, such as partial traffic allocation and reusable segments, require a Confidence REST API token in addition to the MCP server. The kit tells you when this applies.

## Migration Kits

<CardGroup cols={2}>
  <Card title="Migrate from PostHog" href="/docs/migrations/migrate-from-posthog">
    Move feature flags and multivariate flags with the `/confidence:migrate-posthog` command.
  </Card>

  <Card title="Migrate from Eppo" href="/docs/migrations/migrate-from-eppo">
    Move feature flags, allocations, and audiences with the `/confidence:migrate-eppo` command.
  </Card>

  <Card title="Migrate from Statsig" href="/docs/migrations/migrate-from-statsig">
    Move feature gates, dynamic configs, and experiments with the `/confidence:migrate-statsig` command.
  </Card>

  <Card title="Migrate from Optimizely" href="/docs/migrations/migrate-from-optimizely">
    Move flags, rulesets, and audiences with the `/confidence:migrate-optimizely` command.
  </Card>
</CardGroup>

<Note>
  The plugin also includes skills for onboarding new Confidence accounts and setting up a data warehouse connection. See the [plugin repository](https://github.com/spotify/confidence-ai-plugins) for the full list.
</Note>

## Related Resources

<CardGroup cols={2}>
  <Card title="Use AI with Confidence" href="/docs/quickstarts/use-mcp">
    Set up the Confidence MCP servers for your AI assistant
  </Card>

  <Card title="MCP Servers Reference" href="/docs/sdks/mcp-servers">
    Complete reference for all MCP tools and capabilities
  </Card>

  <Card title="Analyze a Past Experiment" href="/docs/quickstarts/analyze-past-experiment">
    Re-analyze experiments that ran on another platform
  </Card>

  <Card title="SDK Integration" href="/docs/sdks/introduction">
    Integrate Confidence SDKs into your application
  </Card>
</CardGroup>
