Page
Connect the extension to Ansible Lightspeed with IBM watsonx Code Assistant
Red Hat Ansible automation coding assistant, formerly Ansible Lightspeed, is the latest offering of Red Hat and IBM which bring the power of generative artificial intelligence (AI) in your Ansible creation experience.
Prerequisites:
- VS Code and Ansible Development setup done on your workstation.
- A Red Hat customer portal account (that is attached to your organization) with an active Ansible Automation Platform subscription.
- An IBM watsonx Code Assistant subscription.
In this lesson, you will:
- Learn about integration Ansible extension for VS Code with Ansible automation coding assistant.
Getting connected: installation and configuration
To enable the Red Hat Ansible Lightspeed service within the extension, follow these steps:
- Access the Settings by clicking the gear icon.
- Enable both the
Enable Ansible LightspeedandEnable inline suggestionscheckboxes in the settings. You can enable Ansible Lightspeed in the User or Workspace settings, based on your preference. Figure 1 depicts this procedure.

Click on the Ansible A in the VS Code activity bar on the left-hand side of your editor to open the extension. Click Connect and follow the prompts to log into your Red Hat account using your credentials.
Next, authorize Ansible Lightspeed for VS Code by clicking Authorize. Follow the browser prompts to redirect you back to VS Code.
Click Open in the VS Code confirmation dialog box (Figure 2).

Congratulations! You’ve successfully configured the Ansible automation coding assistant in VS Code. You can confirm that the Ansible Lightspeed service is enabled by checking the VS Code status bar at the bottom of the editor window (Figure 3).
