This topic explains how to configure the LaunchDarkly IntelliJ IDEA plugin and use it to interact with feature flags from within IntelliJ integrated development environments (IDEs).
Use this plugin with your favorite compatible products from JetBrains including IntelliJ IDEA, PyCharm, WebStorm, GoLand, and many others. A full compatibility list is available on the JetBrains Marketplace’s plugin listing.
With the extension, you can:
To complete this procedure, you must have the following prerequisites:
To set up the IntelliJ IDEA plugin, you must complete the following steps:
You can create a role with appropriate permissions then add the role to a personal, or you can add the Writer base role to your personal access token.
Creating your own roles is only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
The following example policy allows read access to all projects and write access to the minimal set of fields the plugin is able to update.
To create a role for the API access token:
Click the gear icon in the left sidenav to view Organization settings. The General settings page appears.
Click Roles.
Click New role. The “New role” page appears.
Enter a human-readable Name for the role.
Enter a Key for the role.
(Optional) Enter a Description to explain what the role does.
In the “Edit policy” panel, click View JSON to open the advanced editor.
Enter this policy in the “Editor” field:
Click Create role.
To toggle flags from your IDE, you must generate the access token with a Writer base role. A Reader base role is sufficient for updating flag information.
To add the Writer base role to a personal access token:
Your personal token now has the Writer base role.
With your access token, you can finish configuring the LaunchDarkly extension in the “LaunchDarkly” menu option in the IntelliJ IDEA “Preferences” dialog.
You will need to grant IntelliJ IDEA access to system’s default credential store. This is to securely store your access token with IntelliJ’s Credential Store API. You can then provide your access token and select the project and environment associated with your IntelliJ project.

The LaunchDarkly IntelliJ IDEA plugin supports code references. Configuring aliases for projects with code references makes the hover card available wherever that alias is used. To learn more, read Find flag aliases.