**ClaudeR** connects MCP-configured LLM agents, like Claude Code or Codex, to the R session you are already working in. The agent runs code where your cleaned data and fitted models actually are, sees the plots it draws, reads the objects in your environment, and can edit the file open in your editor. A companion Python package does the same for a live Python session, and both work in RStudio and [Positron](https://positron.posit.co).
Several agents can share one session and divide the work between them, or you can run separate sessions side by side so each agent works on its own dataset without touching the others.
It covers much of what a paid research AI tool does, with the work happening in your own session and a record of every line an agent ran.
## Quick Start
```r
# Install
if (!require("devtools")) install.packages("devtools")
devtools::install_github("IMNMV/ClaudeR")
# Set up your AI tool
library(ClaudeR)
install_clauder() # For Claude Desktop / Cursor
install_cli(tools = "claude") # For Claude Code CLI
# Start the server in RStudio
claudeAddin()
# Or from any R console, with no window (terminal R, a cluster, Rscript)
start_server()
```
> **AI agents:** See [llms-install.md](llms-install.md) for automated setup instructions.
## Demo
| Single agent via Claude Desktop App | Multi-agent: Codex + Claude Code via CLI | GPT 5.4 Codex: Data analysis + Quarto report |
|:---:|:---:|:---:|
| [](https://youtu.be/KSKcuxRSZDY) | [](https://youtu.be/5ZMyfR6ZvYU) | [](https://youtu.be/TE-U8DPlShY) |