gptr sends data to a model provider only when you run a prompt with that provider's model, or when model code that the permission mode allowed starts a sub-agent with that model. The package itself collects nothing: there is no telemetry, no usage reporting and no network access when the package loads. This page lists what a request contains so that you can decide what may leave your machine.
Details
R tools compute on objects already in memory; a large dataset does not need to be uploaded in full for a conversational agent to analyze it. Descriptions and tool results can still contain data values. Native typed decision inputs use the separate encoding described below.
What a request contains
Your prompt and the conversation so far.
With summary context, a budgeted description of each attached object (its class, dimensions, column names and types and a few values); a small object can appear in full.
Automatic context: a short listing of the objects in the evaluation environment (names, classes and sizes); the objects you added, changed or removed and the top-level R expressions you ran since the previous prompt (with the output of
!codelines in thepeter()console); the R version, platform and available packages; and the project instruction files (AGENTS.md,CLAUDE.md,.gptr/vignette.Rmd).Tool results: the printed output of R code the model ran, the parts of files it read, and images of plots it made. In
auto, the default, only the actions it asks about need your approval before their results can be sent; inmanualevery action that is not known to be read-only does.With
gptr_coach(), each coach gets the task, the current coaching and, for each run, its answer, a summary of its value and objects, the text of the files it wrote and its transcript, up to 50,000 characters each; the judge gets the task and what each final run delivered. The coach model can differ from the runs' model.
A System 1 question (a classifier model such as Jev) sends the inputs themselves: each
element of a vector (text up to 100,000 characters), each row of a data frame as a record, a
description of larger objects, and for a piped session its last answer (at most
gptr.s1_state_max characters). Do not ask System 1 questions about data that may not leave
your machine.
Registered secrets, and their URL-encoded, JSON-escaped and base64 forms, are replaced by markers before anything is sent; a copy the code changes in another way, such as reversed or cut, is not recognized.
Limiting automatic context
.opts = list(context = "names") sends workspace object names, the workspace changes and
attached-object headers, and .opts = list(context = "none") suppresses the workspace
listing, the workspace changes and attached-object descriptions.
Prompts, tool results and native typed decision inputs have their own paths. Attach only the
objects the task needs. The plan mode permits actions classified as read-only so you can
inspect a proposed workflow before allowing changes to your workspace.
Acknowledgment
The first time you use a provider (or a command-line route such as claude_code or codex)
in an interactive session, gptr shows what is sent and records your
acknowledgment in your user settings. A non-interactive run with a provider that was never
acknowledged stops with a gptr_error_egress condition. Record the acknowledgment once with
gptr_config(egress = list(anthropic = "ack"), .scope = "user") (this replaces the stored
list, so name every provider you use). Acknowledgment is required even with
.opts = list(context = "none"): prompts, tool results, R-session information and project
instructions can still leave the machine. Offline
providers such as gptr_fake_provider() and local providers on a loopback address need no
acknowledgment. An Ollama server can forward requests to cloud models, so Ollama is exempt only
while its local-only inference is on (the default; see providers in gptr_config()).
Other network use
After the acknowledgment above, gptr asks a provider for its model list on
gptr_models(provider = , refresh = TRUE), and before the first request to a provider with a
native model-list API (at most once per five minutes in an R process). The listing carries only
that provider's credential, never a prompt or session context. gptr asks the claude and
codex tools for their models without a prompt on that refresh, and once per R session and
tool version when a run starts or at /model. The
models.dev catalog is refreshed only by gptr_models(refresh = TRUE), reachability checks run
only with gptr_providers(check = TRUE), and MCP servers, sub-agents and command-line tools
are otherwise contacted only when a session uses them. The claude and codex command-line
routes send the conversation through those vendors' tools under their own terms.