firmware: Instructions file for Claude Code

CLAUDE.md

firmware CLAUDE.md is an instructions file for Claude Code from OpenIPC/firmware. It costs 5,659 tokens per session, scanned C, original, MIT.

Repository instructions for OpenIPC firmware, software that builds operating-system images for IP cameras. They explain how the external Buildroot tree is used, where shared files live, and what documentation and checks govern changes.

In plain words
What is it for?
Use them when changing OpenIPC build files, shared overlays or packages, board configurations, or code governed by the repository's review and compliance rules.
Why use it?
They help an agent understand a multi-board firmware project before editing shared code. This reduces the risk that a change breaks camera builds across hardware vendors.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is OpenIPC/firmware's own configuration. It tells Claude Code how to work on firmware 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 firmware configures →

About the project

OpenIPC is open-source replacement firmware for popular IP cameras, built for camera processors from several manufacturers. It is used by an open community to run and develop firmware for supported IP camera hardware.

OpenIPC/firmware · 2,268 stars · on GitHub · openipc.org

Reuse

Borrowing it

Nothing to install: this file belongs to OpenIPC/firmware. 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/OpenIPC/firmware/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/OpenIPC/firmware

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 firmware CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/openipc/firmware/claude-md/github.svg)](https://agentmods.dev/instructions/openipc/firmware/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/openipc/firmware/claude-md"><img src="https://agentmods.dev/badge/instructions/openipc/firmware/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 firmware CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openipc/firmware/claude-md"><img src="https://agentmods.dev/badge/instructions/openipc/firmware/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,659 This file is loaded in full into every session.
When invoked 5,659 The same file — it is already loaded in full.
Security scan C 1 finding. 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.05659 $0.05659
Opus 5.5 $0.02264 $0.02264
Sonnet 5.5 $0.01132 $0.01132
Haiku 4.5 $0.00566 $0.00566

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

Security

Grade C, and why

firmware CLAUDE.md scanned grade C with 1 finding 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 15d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

`general/overlay/etc/shadow` gives root an **empty hash field**, not a password. A password
CLAUDE.md · 381 lines

How it starts

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

CLAUDE.md

Orientation for anyone — human or AI coding assistant — about to change this repository. AGENTS.md is a symlink to this file, so Claude Code, Codex, Cursor, Copilot and the rest read the same text.

This file tells you where things are and what will get a pull request closed. It does not replace the review contract: best_practices.md holds the judgement calls, each one traced to a pull request that was actually closed, and pr_compliance_checklist.yaml holds the binary gates. Read best_practices.md before changing anything under general/.

What this is

OpenIPC firmware is a Buildroot external tree that builds images for IP cameras across 13 SoC-vendor trees. Buildroot itself is not vendored — make downloads the version pinned in BR_VER at the top of the Makefile into $(TARGET)/buildroot-$(BR_VER)/. When you need Buildroot's own package/, linux/ or toolchain/ logic, read it there; it is not in this repo.

make list prints every board configuration. Do not trust a board count written down anywhere, including here — the list moves.

One consequence drives every rule below. general/overlay/ and general/package/ are shared, so a single file there reaches every camera of a family. Those cameras sit in places nobody can physically reach, there is no staged rollout, and a bad change is discovered only after sysupgrade has already written it to flash. Weight a change by how many cameras the file you touched reaches, not by how many lines you changed.

Before you start: is this the right repository?

The most common reason a well-made pull request gets closed here is that it belongs somewhere else. Check this first — it costs a minute and can save an evening.

What you are changing Where it goes
Kernel source and kernel patches [OpenIPC/linux][linux]
Support for one specific retail camera model [OpenIPC/builder][builder]
Probing, identification, bring-up tooling [OpenIPC/ipctool][ipctool]
HiSilicon sensor drivers and open SDK code [OpenIPC/openhisilicon][openhisilicon]
Sigmastar sensor drivers [OpenIPC/sensors][sensors]
A bug in the video stream itself majestic's maintainers, not a shim here
Documentation, device notes, how-tos [OpenIPC/wiki][wiki], [docs][docs]

Read the full file on GitHub · 381 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. 15d ago Changed · +1 lines · +24 tokens per session ea8dda443eea
  2. 21d ago Changed · +1 lines · +20 tokens per session 4825985b93c8
  3. 24d ago Changed · +9 lines · +102 tokens per session e8292f97a154
  4. 25d ago Changed · +1 lines · +18 tokens per session 0a8492647bfb
  5. 1mo ago Changed · +1 lines · +21 tokens per session da4d77a8ba20
  6. 1mo ago Changed · +23 lines · +509 tokens per session 510347b9faf2
  7. 1mo ago Changed · +1 lines · +17 tokens per session 401a24796033
  8. 2mo ago Changed · +52 lines · +909 tokens per session scan A → C 8c688fb2b9a8
  9. 2mo ago First seen · 292 lines · 4,039 tokens per session scan A 67c17fa41cec

Subscribe to this mod's changes

firmware CLAUDE.md is an instructions file published in the GitHub repository OpenIPC/firmware (2,268 stars, last pushed yesterday), licensed MIT. It adds 5,659 tokens to every session, about $0.0226 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

firmware CLAUDE.md compared with instructions from other repositories

firmware CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
firmware CLAUDE.mdOpenIPC/firmwareInstructions file2.3kyesterdayMITC5,659Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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