RStudio
Posit Assistant is available the current release of RStudio. It includes a conversational chat interface and Next-Edit Suggestions for inline code completions.
1. Download RStudio
Download and install the current version of RStudio.
2. Show the Sidebar
Open RStudio and show the sidebar using the toolbar icon in the top right of the IDE.
3. Install Posit Assistant
The pane asks you to install Posit Assistant. Click the button to do so.
4. Sign In to Posit AI
After the installation completes, a prompt may ask you to verify that you trust the workspace. Once verified, you will see Posit Assistant and a Sign In button.
Posit Assistant in RStudio recommends Posit AI — a managed service from Posit that provides access to frontier LLMs. See the Posit AI documentation for details on available models and usage. Other providers are also supported (see Additional Providers below).
After installation, click Sign in to try Posit AI for free to authenticate with your Posit AI account.
This opens your browser to authorize access via your Posit account.
Once authorization is complete, click Close to return to RStudio.
Additional Providers
RStudio supports many model providers beyond Posit AI. See the Providers page for the full list and setup instructions.
Databricks supports personal access tokens and service-principal OAuth in both RStudio Desktop and Server. Browser OAuth remains disabled pending approval of the supported Databricks client, redirect URI, and scopes. See Databricks for setup.
5. Enable Next-Edit Suggestions
Next-Edit Suggestions are disabled by default. To enable them:
- Go to Tools > Global Options > Assistant
- Select Posit AI Next Edit Suggestions from the “Use code assistant” dropdown
You may need to restart RStudio after enabling this feature.
Troubleshooting
- Chat not responding? Check your sign-in status via the gear icon > Configure Posit AI. Try restarting RStudio.
- Need to start fresh? Delete Posit AI binaries at
~/.local/share/rstudio/pai/(macOS/Linux) or%LOCALAPPDATA%\RStudio\pai\(Windows). Delete conversations and auth at~/.posit/assistant(or~/.positaiin older versions) on macOS/Linux, or%USERPROFILE%\.posit\assistant\(or%USERPROFILE%\.positai\) on Windows.