How to find shadow coding agents in your company
Published · Updated · Checked against Claude Code network-config, admin-setup and data-usage docs; Codex auth page; Cursor privacy page; 10 Nov 2026
You will not find every coding agent with one method, so use six cheap ones and read each result with its blind spot in mind: device inventory, DNS and proxy logs, billing, a repository scan, an anonymous survey, and an amnesty. Then do the step most discovery guides skip: give the people you found a sanctioned route, because discovery that ends in a block mostly moves the behaviour somewhere you cannot see. Everything below is free to run with tools a company of 50 to 500 people already has.
This guide covers Claude Code, Codex, Cursor and GitHub Copilot where a vendor page could be opened. Where a page could not be confirmed, the text says so.
The checklist
| Signal | Where to look | False positives |
|---|---|---|
A ~/.claude directory with projects/ inside | Managed-device file inventory | Folders left by a trial or by an uninstalled copy; a contractor's laptop that is not yours |
A ~/.codex directory, or auth.json under CODEX_HOME | Same inventory | Codex used through a sanctioned workspace login also leaves these |
Running claude or codex processes, or an editor extension list entry for Copilot | Endpoint tooling, EDR, MDM software inventory | A process name match on an unrelated binary; a Copilot extension that is installed but signed out |
Lookups for api.anthropic.com, claude.ai, platform.claude.com, sso.claude.com | DNS or proxy logs | claude.ai in a browser is chat, not Claude Code; the same hosts serve sanctioned seats |
Traffic to downloads.claude.ai | Proxy logs | Auto-updates of sanctioned installs hit it too |
| Recurring AI-tool charges | Expense reports, corporate card statements, SaaS spend tooling | Charges for chat plans that never touch code; charges you already sanction |
.claude/settings.json, .mcp.json, AGENTS.md, .claude/skills/ committed in repositories | Code search across your organization | Files added by a sanctioned team, or copied from a template |
| People saying they use it | Anonymous survey, one-to-one questions | Under-reporting; a survey in a company that punishes answers returns nothing |
What each method detects and misses
Device inventory. It sees machines you manage and nothing else. The paths come from vendor documentation: Anthropic's data usage page says Claude Code stores session transcripts "locally in plaintext under ~/.claude/projects/", and the Codex auth page says file credential storage saves to auth.json under CODEX_HOME (default ~/.codex). A vendor-documented path for Cursor or Copilot could not be confirmed. Personal laptops are invisible to this method, and that is where unsanctioned use often lives.
DNS and proxy logs. Anthropic's network configuration page lists the hosts Claude Code needs: api.anthropic.com for API requests, claude.ai and platform.claude.com for authentication, sso.claude.com for SSO sign-in, downloads.claude.ai for the installer and updater, and mcp-proxy.anthropic.com for claude.ai connectors. The page also notes that api.anthropic.com is contacted by the WebFetch domain safety check regardless of the model provider. The method cannot tell Claude Code from the Claude web app by hostname alone, cannot see a developer on home internet, and sees nothing for Bedrock or Google Cloud-routed use, where traffic goes to your cloud provider. An equivalent host list for Codex, Cursor or Copilot could not be confirmed from a vendor page, so build those lists from the vendor docs for the tools you care about rather than from a blog.
Billing and expense review. Slow, but it catches personal accounts paid on a company card. It misses free tiers and anything paid personally.
Repository scan. Committed config files show which teams have adopted an agent, and .mcp.json shows which MCP servers they wired in. Anthropic's communications kit describes the .mcp.json file at a project root. It misses people who keep their config out of the repo, and it also shows sanctioned use.
Survey and amnesty. Qualitative only. Ask which tools, for which tasks, on which accounts, with an assurance that the first round is about setting rules and not about discipline. Do not turn answers into percentages for a board; the sample is self-selected.
Blocking leaks
Blocking one tool can move the behaviour to another, and no measurement of how often it does so was found for this guide. If you block an app, pair the block with a sanctioned alternative, and govern by data type and action as well as by app name.
Turn shadow use into governed use
For Claude Code, the lever is login restriction. The forceLoginMethod and forceLoginOrgUUID managed settings restrict login to a method or an Anthropic organization. Anthropic's admin-setup page states the limits: Claude Code verifies the organization for claude.ai account logins in the terminal, VS Code extension and Agent SDK, and "doesn't check it for Claude Console logins or for gateway sign-in". When either key is set, sessions authenticated by ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelper are blocked at startup. The settings arrive through managed settings, so they only bind machines that receive them; the rollout guide covers delivery and the /status check.
For Codex, the auth page says admins can restrict authentication to ChatGPT or API keys and limit ChatGPT login to one workspace, and that if the active credentials do not match, "Codex logs the user out and exits". The names of the keys are in the managed configuration page, whose login-restriction section could not be read in full, so confirm them there before you write the policy.
For Cursor, the privacy and data governance page says a team-ID policy on corporate devices "prevents users from logging into personal accounts" that may lack Privacy Mode, and that admins can enforce Privacy Mode so members cannot disable it. The policy's delivery details could not be confirmed from that page, and no equivalent Copilot control could be confirmed from a vendor page.
Why this matters beyond tidiness: a session under a personal account may follow different retention rules than one under your agreement. The Claude Code zero data retention page says ZDR "applies to requests that authenticate into a ZDR-enabled organization", and a personal account is not covered. The ZDR buyer guide goes through it.
What to do with what you find
- Record tool, account type and rough task, not names, for the first pass.
- Offer a sanctioned account within a stated time, and say what happens to existing local transcripts. Plaintext transcripts on a personal laptop are still your code; the secrets in transcripts guide explains why they matter.
- Publish the rules from the session data policy, including the MCP rules in the allowlist guide.
- Re-run the checklist quarterly. Findings should fall, and a rising count means the sanctioned route is too slow.
Where Sealkeep fits
Sealkeep does not discover agents. sealkeep status and sealkeep org report show only machines that run Sealkeep, so they say nothing about the rest. Once you have found Claude Code or Codex users and moved them onto a company setup, Sealkeep's organisation features let those sessions be kept and searched in one place, and sealkeep org report lists membership, scanners and findings for admins. It does not cover Cursor or Copilot, is not real-time, has an encryption format that has not been independently audited, and is not a compliance certification. The threat model is implementer-authored and not independently audited.
FAQ
Can we just block the domains?
You can, and for Claude Code the hosts are listed above, but a block works only on networks you control and does not distinguish chat from coding. The thread cited above is anecdotal evidence that people route around blocks. Pair a block with a sanctioned option.
Does restricting login to our organization find personal accounts?
No. It refuses them on managed machines and tells you nothing about unmanaged ones. For Claude Code the organization check also does not cover Console logins or gateway sign-in, per Anthropic's page.
Is this the same as DLP?
No. These methods tell you which tools are present. They do not inspect what is pasted into them.