Every request sends code to a provider. That is unavoidable with a hosted tool, and the questions worth asking are what is sent, how long it is kept, whether it is used for training and who at the provider can see it.
What is actually sent?
More than the line you are on. Completion sends surrounding context and frequently other open files. Chat sends whatever it decides is relevant, which may include files you have not opened. Agentic tools send whatever they read, which can be a substantial share of a repository.
Assuming that anything in the project might be sent is the safe position.
What is the training question?
Whether your code becomes training data for future models. Paid and business tiers generally say no by default; free tiers frequently say yes unless you opt out, and the setting is usually available and rarely visited.
This is the single most important thing to check, and it takes two minutes.
Policies also change, and rarely with an announcement anybody reads. Rechecking the settings after a major product update is worth the two minutes, since defaults occasionally move.
What about retention?
Separate from training and worth understanding. Providers typically retain requests for a period for abuse monitoring and debugging, even where nothing is used for training, and zero-retention arrangements are usually an enterprise feature.
What does an enterprise tier actually add?
- Contractual guarantees. On training and retention.
- Administrative control. Who can use it and with what settings.
- Audit information. What was used and by whom.
- Data residency. Where processing happens.
Very little of it is capability. The tier exists to answer procurement questions rather than to write better code.
What should you check before using one at work?
Whether your employer permits it, which tool is approved, and whether the licence covers commercial use on your tier. Plenty of people are using personal free accounts on employer code, which is a policy breach in most organisations regardless of whether anything goes wrong.
What about client code?
Frequently covered by a confidentiality clause that predates any of this. Sending a client's codebase to a third party may breach it, and the contract rarely mentions AI specifically, which does not mean it permits it.
Asking is considerably easier than explaining afterwards.
What about secrets in the files?
A common accidental exposure. A configuration file containing a key, sitting in the project directory, gets read and sent like anything else. Keeping secrets outside the repository protects against this as well as against the more familiar risks.
Hardware requirements for local models remain substantial, which is the practical barrier rather than the software, and they have fallen steadily.
Is there a genuinely private option?
A locally run model, which sends nothing anywhere. Quality is noticeably lower on hard problems and adequate for completion on capable hardware, and for work that genuinely cannot leave the building it is the only option that answers the question.
Does an ignore file help?
Some tools support one, and it is worth configuring where available. Excluding directories containing credentials, customer data or anything under a stricter obligation stops them being read and sent, which is a better protection than remembering not to open them.
It is a partial measure rather than a guarantee, since the tool still has access to whatever it is pointed at and the exclusion applies to automatic reading rather than to anything you reference deliberately. Treat it as a way to reduce accidental exposure rather than as a boundary you can rely on.
What is the minimum worth doing?
Open the settings, check whether training is enabled, and turn it off if it is. Then find out what your employer's position actually is. Both are short tasks and together they cover the great majority of what goes wrong here.