RStudio
Posit Assistant is available in 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 Posit Assistant Sidebar
Open RStudio and click the toolbar icon in the top right to show the Posit Assistant sidebar.
3. Install Posit Assistant
Click the Install Posit Assistant button in the pane that opens.
4. Connect a Model Provider
You need at least one model provider to use Posit Assistant.
After Posit Assistant installation completes, a prompt might ask you to verify that you trust the workspace.
- After you trust the workspace, click Configure provider to open the list of AI providers.
- Click Connect next to your provider and follow the steps to sign in or provide your credentials.
Posit AI Pass
Posit AI Pass is a managed service from Posit that provides access to frontier LLMs. It is at the top of the provider list.
For information on how to create or manage your account, or for details on available models and usage, see the Posit AI Pass documentation.
To connect Posit AI Pass, click Connect on its row. This opens your browser to authorize access via your Posit account. After you authorize access, the success dialog might stay open. If it does, click Go to chat. The dialog closes automatically when Posit AI Pass is the only available provider.
Additional Providers
RStudio supports many model providers beyond Posit AI Pass. 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. Start a Conversation
In the Posit Assistant sidebar, type a question. Then press Enter.
For example prompts, see Your First Conversation.
6. Enable Next-Edit Suggestions
This step is optional. Next-Edit Suggestions are disabled by default. To enable them:
- Go to Tools > Global Options > Assistant
- Select Posit AI Pass Next Edit Suggestions from the Use code assistant dropdown
You might need to restart RStudio after enabling this feature.
Troubleshooting
-
Chat not responding?
- Check your sign-in status via the gear icon > Configure AI providers.
- Try restarting RStudio.
-
Need to start fresh?
- Delete Posit Assistant 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.
- Delete Posit Assistant binaries at
Next Steps
- To customize Posit Assistant, see Configuration.
- For common tasks, see Guides.