Join our Newsletter — 33% off our NHI Course
Home› Glossary› Agentic AI & Autonomous Identity› Claude Code on the Web
Agentic AI & Autonomous Identity

Claude Code on the Web

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Agentic AI & Autonomous Identity

Claude Code on the Web is Anthropic's browser-based way to run Claude Code, an AI coding agent, on tasks in vendor-hosted cloud environments connected to a code repository, rather than on a developer's own machine. Security teams should scope repository permissions tightly, treat repository content as possible prompt injection, limit network access and review all proposed changes before merge.

What Claude Code on the Web Changes Operationally

Claude Code on the Web shifts the coding-agent workflow from a developer-controlled local environment into a browser session backed by vendor-hosted infrastructure. That changes the trust boundary: the agent can still interact with repository content, proposed code changes and connected services, but the operating model now depends much more on tenant controls, repository scoping and the provider’s execution environment.

This is best understood as a deployment and access model, not just a user interface choice. The practical difference is that browser convenience can hide how much authority the agent has over source code, pull requests, connected tools and any secrets or tokens available to the session.

Why the Browser-Based Model Matters for Security

The security significance comes from where the agent runs and what it can reach. A browser-based coding agent inherits the risks of remote execution, repository trust and prompt injection through code comments, README files, issues or other repository content. That is why the primary defensive question is not whether the tool is “safe” in the abstract, but what it is allowed to read, change and call out to.

Because the workflow is cloud-hosted, organisations should treat repository contents as potentially adversarial input and review any proposed edits before merge. For comparison across vendor operating models, permission modes and sandbox choices, see Claude Code vs OpenAI Codex and the broader AI Coding Agents Security Guide.

Exposure, Trust Boundaries and Failure Modes

The main failure modes are overbroad repository access, excessive network reach, unsafe tool invocation and hidden instructions embedded in repository material. If the agent can see too much, it may surface or transform data it should not; if it can call too broadly, it can exfiltrate data, reach unapproved endpoints or chain actions in ways the user did not intend.

Prompt injection is especially relevant because the attacker does not need to compromise the vendor platform directly. They only need to influence repository text, issue content or dependencies that the agent reads during its task. That makes repository hygiene, scoped credentials and outbound network limits part of the core security posture rather than optional hardening.

How Organisations Should Evaluate Use Cases

Assessment starts with the repository itself: what data it contains, who can modify it, whether it includes secrets or production-adjacent code, and whether the agent is being asked to operate in a high-trust branch or a low-trust sandbox. A safe rollout usually begins with narrow repository scope, non-production projects and tightly reviewed workflows.

Organisations should also distinguish between convenience features and durable authorisation. A browser-based agent is still an agentic code operator, so approval, branch protection, dependency review and network restrictions should be defined as policy, not left to individual developer preference. The AI IDE and Coding Agent Security Guide is useful here because it maps the same control problem across IDE, terminal and web-based agent surfaces.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseBrowser-based coding agents can misuse connected tools and repo actions.
ASI03 — Identity & Privilege AbuseThe term centers on an agent acting with delegated repo authority.
Recommendation — Restrict the agent's tool scope and approve only the actions needed for the task. Limit delegated permissions and separate human approval from agent execution.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe agent operates as a non-human identity with potentially excessive repository access.
NHI-08 — Environment IsolationVendor-hosted execution environments need isolation from sensitive code and data.
Recommendation — Scope the agent's repository and service access to the minimum required. Run the agent in isolated environments with tight network and filesystem boundaries.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeRepository and tool permissions should be restricted to what the agent needs.
IA-5 — Authenticator ManagementBrowser-based agent workflows depend on protecting and rotating access material.
SC-7 — Boundary ProtectionNetwork limits are central to constraining vendor-hosted agent execution.
Recommendation — Apply least privilege to the agent's repository, network and tool access. Protect and rotate the credentials and tokens used to authorize agent sessions. Constrain outbound and inbound connectivity for the agent environment.
OWASP ASVSV8 — AuthorizationThe workflow depends on correct authorisation of actions and repository changes.
Recommendation — Enforce authorisation checks on every privileged agent action and code change.
MITRE ATT&CKT1204 — User ExecutionAgents can be steered by repository content or instructions that trigger execution paths.
Recommendation — Map repository-influenced execution paths and monitor for malicious instruction abuse.

Practitioner Guidance

Why practitioners should care: The browser surface changes the blast radius of an AI coding assistant, especially when it is operating on live repositories with real permissions. Treat the web experience as a governed execution environment, not a lightweight chat interface.

Common misunderstanding: Many teams assume browser-hosted means lower risk because it is “not on the laptop.” In practice, the relevant question is whether the agent can read sensitive code, inherit dangerous repo content, or propose changes that bypass normal review discipline.

Practitioner takeaway: Start with least-privilege repository access, constrained network reach and mandatory human review of every material change before merge.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org