openweb: Instructions file for Claude Code

CLAUDE.md

openweb CLAUDE.md is an instructions file for Claude Code from imoonkey/openweb. It costs 975 tokens per session, scanned A, original, MIT.

Project instructions for OpenWeb, a tool that lets an AI agent access websites through an API while people can still use a graphical interface.

In plain words
What is it for?
Install and build OpenWeb, run tests and linting, list available website integrations, execute website operations, and update project and skill documentation.
Why use it?
They give contributors a shared reference for setup, testing, documentation, project structure, and keeping shipped instructions in sync with the software.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

This is imoonkey/openweb's own configuration. It tells Claude Code how to work on openweb itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openweb configures →

Reuse

Borrowing it

Nothing to install: this file belongs to imoonkey/openweb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/imoonkey/openweb/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/imoonkey/openweb

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openweb CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/imoonkey/openweb/claude-md/github.svg)](https://agentmods.dev/instructions/imoonkey/openweb/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/imoonkey/openweb/claude-md"><img src="https://agentmods.dev/badge/instructions/imoonkey/openweb/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openweb CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/imoonkey/openweb/claude-md"><img src="https://agentmods.dev/badge/instructions/imoonkey/openweb/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 975 This file is loaded in full into every session.
When invoked 975 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00975 $0.00975
Opus 5.5 $0.00390 $0.00390
Sonnet 5.5 $0.00195 $0.00195
Haiku 4.5 $0.00097 $0.00097

Measured 2mo ago against content hash 2f316474c4ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openweb CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenWeb

Agent-native way to access any website. Bridging agent CLI and human GUI through API.

Quick Start

pnpm install && pnpm build
pnpm test              # run all tests
pnpm lint              # biome lint
pnpm dev sites         # list available sites
pnpm dev <site> <op> '{...}'   # execute an operation

Documentation

  • Shipped skill: skills/openweb/ (SKILL.md router, references, knowledge)
  • Architecture & system docs: doc/main/README.md
  • Dev workflow & guides: doc/dev/development.md
  • Progress history: doc/PROGRESS.md
  • Project docs: projects/active/ (active work) and projects/archive/ (historical docs), symlinked from the sibling openweb-projects repo, commit separately

Documentation Sync

When running /update-doc, also check and sync skills/openweb/ — this repo ships skill docs as a deliverable alongside code. See doc/main/README.md § Skill Documentation for the governing principles and structure. Priority areas: files that reference runtime behavior, CLI flags, x-openweb fields, or transport/auth semantics.

Project Structure

src/
  compiler/
    types.ts          # Core types (RecordedRequestSample, SampleResponse)
    types-v2.ts       # Pipeline v2 contracts (5-phase type definitions)
    recorder.ts       # HAR parsing + scripted recording
    analyzer/         # Phase 2: label → normalize → cluster → schema → auth
      analyze.ts      # Orchestrator: analyzeCapture() → AnalysisReport
      labeler.ts      # Sample categorization (api/static/tracking/off_domain)
      path-normalize.ts  # Path template normalization
      graphql-cluster.ts # GraphQL sub-clustering
      auth-candidates.ts # Ranked auth bundling with evidence + CSRF options
      constant-headers.ts # Detect constant headers across cluster samples
      schema-v2.ts    # Schema inference with enum/format controls
      example-select.ts # Tiered example value selection with PII scrub
      classify.ts     # Extraction signals (ssr_next_data, script_json, page_global)
      differentiate.ts # Query vs path param differentiation
      auth-detect.ts, csrf-detect.ts, signing-detect.ts  # Primitive detection
    curation/         # Phase 3: apply-curation.ts, scrub.ts (PII)
    generator/        # Phase 4: generate-v2.ts (OpenAPI + AsyncAPI emission)
    ws-analyzer/      # WS capture → classify → cluster → schema
  runtime/
    executor.ts     # Main dispatch (HTTP + WS)
    http-executor.ts, browser-fetch-executor.ts, node-ssr-executor.ts
    browser-lifecycle.ts  # Auto browser management (ensureBrowser, auth cascade, watchdog)
    warm-session.ts       # Anti-bot sensor warm-up (Akamai, DataDome cookie wait)
    response-unwrap.ts    # Generic response unwrap (x-openweb.unwrap dot-path extraction)
    session-executor.ts, adapter-executor.ts, extraction-executor.ts
    ws-executor.ts, ws-connection.ts, ws-router.ts, ws-runtime.ts
    cache-manager.ts, token-cache.ts
    navigator.ts    # CLI navigation helper (render site/operation info)
    page-polyfill.ts, page-candidates.ts  # Browser page utilities
    primitives/     # Auth/CSRF/signing resolvers
  lifecycle/        # Verify, registry, shape-diff (site drift detection)
  capture/          # CDP browser recording (body-size-gate, no content filtering)
  commands/         # CLI command handlers
  types/            # Meta-spec type system
  sites/            # Site packages (openapi.yaml, DOC.md, adapters/)
  lib/
    site-resolver.ts, spec-loader.ts, site-package.ts
    param-validator.ts, permissions.ts, permission-derive.ts
    logger.ts, config.ts, cookies.ts, adapter-params.ts
    errors.ts, ssrf.ts, openapi.ts, asyncapi.ts
    adapter-helpers.ts  # pageFetch, graphqlFetch — injected into adapters via runtime
    manifest.ts, url-builder.ts, response-parser.ts, csrf-scope.ts
    config/             # Config files: blocked-domains, blocked-paths, tracking-cookies, static-extensions
skills/openweb/      # The shipped skill (references, knowledge)
install-skill.sh    # Skill installer for Claude Code, Codex, OpenCode, OpenClaw

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 78 lines · 975 tokens per session scan A 2f316474c4ba

Subscribe to this mod's changes

openweb CLAUDE.md is an instructions file published in the GitHub repository imoonkey/openweb (74 stars, last pushed 4mo ago), licensed MIT. It adds 975 tokens to every session, about $0.0039 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

openweb CLAUDE.md compared with instructions from other repositories

openweb CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openweb CLAUDE.mdimoonkey/openwebInstructions file744mo agoMITA975Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode