Claude Code Request Metadata: What Goes Over the Network?

Updated
8 min read
Claude Code routes requests, telemetry and logs to three destinations.
TL;DR

Follow a Claude Code session from the local client to the model provider, telemetry collector, and any gateway your team runs.

Claude Code request metadata is easiest to understand when you follow one session through the systems it touches. The local client opens a repository. The model provider receives requests with the context needed for the task. A gateway or monitoring collector can add another stop. A privacy review needs to account for each of those routes.

This article grew out of a June 2026 inspection of one Claude Code client build. Its author reported that part of a generated system-prompt date string changed under certain conditions. That is a specific observation about the build the author examined. It leaves open how other versions behave and how the provider used the observed value.

Follow the model request first

Start by writing down how the client is configured: direct access to Anthropic, an approved cloud provider, or an internal gateway. For a test request, use a synthetic repository with a tiny source file and a prompt that contains no private information. Record the client version, account type, enabled integrations, and intended destination. Those details let someone else reproduce the review without handling the code from a live project.

The local client can read files in the workspace and use relevant content for the task. Account retention and training choices are separate questions from what goes into a model request. See the Claude Code data usage documentation and check the terms for the account your organisation actually uses.

Put model traffic, telemetry and logs in different rows

Click any column to sort
4 rows
Model requestWho receives the task, what context is necessary, and which terms apply
Client services and telemetryWhich optional or required services the client uses in your setup
Organisation monitoringWhich metrics or logs are exported, and who can read them
Gateway and integrationsWhich requests pass through them, what they record, and how long they retain it

Anthropic’s network configuration guide documents the proxy and certificate settings teams can use with approved infrastructure. A proxy’s own logging policy matters too. When the team configures an OpenTelemetry destination, compare its access rules and retention with the Claude Code monitoring guide. Start by checking whether the export answers a practical question, such as which service account made a request, before collecting more detail.

A code review tool can introduce another provider even when it runs beside Claude Code. Our Open Code Review CLI guide shows how to spot that split between local execution and inference. The Pristren guide to Codex sandbox permissions covers the related question of what processes are allowed to reach from the workspace.

Keep a record you can repeat after an update

For each network path, record its purpose, owner, and current documentation. Keep the test prompt and toy project around for the next client upgrade. Use the organisation’s approved records and avoid saving raw request bodies when the destination and purpose are enough. If a new destination appears, identify which feature created it before rolling the update out to more projects.

Make a small inventory before enabling the client for a team

Start with the exact surface your team wants to use. An interactive terminal, an editor extension, and a hosted workspace may have different routes, owners, and available controls. Capture the client version and project configuration. If you are auditing a developer workstation, use a toy repository with one or two files and no secrets. Pick a small task that requires the client to read one known file and produce a visible result. That gives the review an input you can describe without sharing your real source code.

Make an inventory with one row per destination. Each row can name the service, who operates it, what feature uses it, and what facts you verified. Separate intended configuration from measured activity. “Our deployment guide says inference goes through the company gateway” is an expectation. The team’s approved network records can show whether the request actually reached it. Neither one by itself establishes exactly how a downstream service stores request contents.

Assign an owner to each line. The account administrator can verify plan and provider settings. A network administrator can help confirm gateway routes. The application owner can decide which file contents are appropriate for a typical task. It is common for only one of those people to have access to a given record. A short shared inventory lets the team ask the right person a narrowly framed question.

Verify the differences that matter in your environment

Suppose the team starts with model access through a gateway and later adds a remote tool to fetch work item details. A user asks Claude Code to summarize an issue. Write down which data is needed to answer the prompt and which destinations are involved. The model receives selected context for the response. The remote integration has its own request and authentication. The gateway may also have logs with their own access and retention rules.

Turn each concern into a question that can be answered from a setting, a documented feature or an approved source of records:

5 rows · Click column to sort
Model providerWhich endpoint and account are configured for this project?
Workspace contextWhat files and instructions supply the information for this task?
TelemetryWhich telemetry settings are active and which collector receives any export?
Gateway recordsWhich metadata is retained, for how long, and who can open it?
Tool connectionsWhat remote integration executes the action, and what input does it require?

For the toy issue, check an ordinary run with the integration turned off and then a permitted run with it on. Record the difference in destinations or data categories. Keep the task and repository constant so the comparison answers a real question about the integration. The observation applies to that setup. A different account or client version deserves its own check if it changes the data route.

Review log access as well as network access

A team can restrict access to one model endpoint and still copy useful context into a system that is visible to a wider audience. For example, a gateway may record a request ID and timing data for operators. A debugging feature may expose more detail. Decide up front which fields need to be retained for routine troubleshooting, how long the team needs them, and who can review them.

For a normal monitoring record, a service name, timestamp, outcome, and request identifier often answer the first round of questions. If someone needs to investigate a specific failure, use a short approved procedure that keeps the investigation scoped to the incident. A log designed for billing or availability has a different purpose from a record of the actual application actions. For an example of evidence the application can store itself, see our agent failure recovery guide.

The same distinction helps with training policies. A statement about training does not answer whether a gateway keeps an operational record or whether a plugin has received the data. Review each part of the route under its applicable controls. If customers or team members could put private information in a prompt, give them an example of a safe synthetic substitute when they report issues.

Ask what changed during each rollout

When a new client version is approved, repeat the toy prompt and review the same inventory. Record the before and after versions and any configuration changes. If the tool now reaches a new service, find out which feature uses it. Ask whether that feature is necessary for the workflow and who can document its purpose before enabling it broadly.

A version-specific report like the June observation can give you a concrete question to ask about change management. When the evidence comes from one client build, record it as such. Focus your team's review on what can be reproduced with your provider, settings, and data. A different result deserves an explanation before it becomes a general claim.

Finish by sharing a short summary that tells developers which projects and data they can use with the approved setup. Give them a contact for unusual tools and destinations. The inventory should tell the next engineer where requests go and what to check if a future setup behaves differently.

Write down what the evidence cannot answer

A successful request shows that an application reached a destination and got a result. It may tell an operator which client version and route were used. It cannot, by itself, settle questions such as how long a third party stores a particular field or which policy applies to a different account type. Mark those questions as open and pair each with a person or document that can answer it.

For the toy run above, a useful note might say that the model endpoint and the configured monitoring collector were both observed while the ticket integration was active. It might also say who still needs to review the gateway’s retention policy. Keep screenshots or logs to the minimum needed to support those conclusions. This keeps the review useful without creating a new copy of the information you were trying to protect.

Teams that use MCP should include their approved servers in the same inventory. Our guide to the Model Context Protocol explains how a tool connection fits into an agent workflow. A small, repeatable inventory is more useful in a release review than a screenshot of one unexpected request.

Frequently Asked Questions

What did the 2026 Claude Code request marking report show?

The author reported a condition-dependent change to a system-prompt date string in one inspected client build. That finding describes the inspected build and conditions.

Does running Claude Code in a local terminal keep all data on my machine?

The terminal client runs locally. Model requests go to the configured provider. Check what repository context is sent, and review any configured telemetry, gateway or integration separately.

Is telemetry the same as model inference?

No. Model requests carry the context needed for the task. Operational telemetry and administrator-configured monitoring are different data paths with their own settings.

#claude-code#privacy#telemetry#developer-tools

One AI engineering post, weekly

LLM benchmarks, prompt techniques, and token-cost breakdowns, delivered to your inbox.

What should we test or explain next?

Comments

Have a question or something to add? Sign in to join the discussion.

Mahmudul Haque Qudrati — CEO & ML Engineer at Pristren

Mahmudul Haque Qudrati

CEO & ML Engineer

Software architect, full-stack engineer, and machine learning practitioner. Founder & CEO of Pristren, CTO at Venture Kick-backed PIN Sport Application GmbH (Basel, Switzerland), Software Development Lead at DailyFrame GmbH (building Dimetra patient transport software), and creator of Zlyqor. Focused on custom workflow automation, scalable web and mobile applications, and production AI/ML systems.