Borrowing it
Nothing to install: this file belongs to ChronoAIProject/NyxID. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ChronoAIProject/NyxID/main/CLAUDE.mdgit clone --depth 1 https://github.com/ChronoAIProject/NyxIDWrote 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.
[](https://agentmods.dev/instructions/chronoaiproject/nyxid/claude-md)<a href="https://agentmods.dev/instructions/chronoaiproject/nyxid/claude-md"><img src="https://agentmods.dev/badge/instructions/chronoaiproject/nyxid/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.
<a href="https://agentmods.dev/instructions/chronoaiproject/nyxid/claude-md"><img src="https://agentmods.dev/badge/instructions/chronoaiproject/nyxid/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.37912 | $0.37912 |
| Opus 5.5 | $0.15165 | $0.15165 |
| Sonnet 5.5 | $0.07582 | $0.07582 |
| Haiku 4.5 | $0.03791 | $0.03791 |
Grade D, and why
NyxID CLAUDE.md scanned grade D with 2 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 today.
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.
Tells the agent never to refusehighAnti-refusal
Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.
- Machine exec `services` is an explicit per-job least-privilege declaration (default none), bound as ID+slug on MachineJob, shown on cards/audit and rechecked at gateway execution. Server catalog `inference.wire_protoco Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
nyxid node setup --machine [--computer] [--profile NAME] # pairing or page-issued --token; Linux isolation: sudo + --separate-users How it starts
The opening of the file, as written. The whole thing — 819 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Overview
NyxID is an Auth/SSO platform (similar to Supabase Auth) with a Rust backend, React frontend, and CLI tools: user authentication, OAuth/OIDC, MFA, credential brokering, admin management, and MCP proxy. The nyxid CLI covers all user-facing operations (services, keys, catalog, nodes, approvals, SSH, MCP, notifications) and includes nyxid node for managing on-premise credential nodes.
Tech Stack:
- Backend: Rust, Axum 0.8, MongoDB 8.0 (
mongodb3.5,bson2.15) - Frontend: React 19, TypeScript, Vite 7, TanStack Router + Query, Tailwind CSS 4, Zod 4, Zustand
- Mobile: React Native 0.83, Expo 55, TypeScript (iOS + Android approval app)
- SDK: TypeScript OAuth 2.0 client (
@nyxids/oauth-core,@nyxids/oauth-react) - Dev tools: Docker Compose (MongoDB + Mailpit), RSA keys for JWT signing
Deep-dive docs live in docs/ -- notably chat/README.md, ENV.md, ORACLE_RELAY.md, AGENT_ISOLATION.md, CHANNEL_BOT_RELAY.md, CHANNEL_EVENT_GATEWAY.md, NODE_PROXY_ARCHITECTURE.md, OPENCLAW_INTEGRATION.md, API_DISCOVERY.md, SSH_NODE_KEY_AUTH.md. Read the relevant doc before working in that subsystem.
Critical Rules
1. MongoDB Model Conventions
- NEVER use
#[serde(skip_serializing)]on model fields -- preventsinsert_one(&struct)from storing them - ALWAYS use
#[serde(with = "bson::serde_helpers::chrono_datetime_as_bson_datetime")]onDateTime<Utc>fields; forOption<DateTime<Utc>>use thebson_datetime::optionalhelper (models/bson_datetime.rs) - IDs are UUID v4 stored as strings in MongoDB
_id; each model has aCOLLECTION_NAMEconstant
2. Layer Architecture
Strict separation: handlers/ -> services/ -> models/
- models/ -- plain serde structs,
COLLECTION_NAME, no business logic - services/ -- business logic; takes
&mongodb::Databaseand&strfor IDs - handlers/ -- HTTP layer; converts
AuthUser.user_id(Uuid) to string for services; dedicated response structs (never serialize model structs to API responses) - crypto/jwt.rs takes
&Uuid(kept for signing); token_service parses&strtoUuidinternally - unified_key_service -- orchestration layer for the streamlined services architecture; auto-provisions UserEndpoint + UserApiKey + UserService from catalog or custom input in one operation
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.
- today Changed · +445 tokens per session 62c92a161053
- 3d ago Changed · +3 lines · +271 tokens per session ff52cf4411ec
- 4d ago Changed · +8 lines · +580 tokens per session 1eeb59522548
- 5d ago Changed · +24 lines · +2,020 tokens per session 4a3498bcdb24
- 6d ago Changed · +17 lines · +367 tokens per session 0eed793f4ef2
- 7d ago Changed · +1 lines · +188 tokens per session f403ced582e6
- 10d ago Changed · +63 tokens per session fe1f20a92fe8
- 11d ago Changed · +13 lines · +793 tokens per session 2f150783018f
- 12d ago Changed · +181 tokens per session b30fdda2ede1
- 13d ago First seen · 753 lines · 33,004 tokens per session scan D 5532c0b13a7b
NyxID CLAUDE.md is an instructions file published in the GitHub repository ChronoAIProject/NyxID (40 stars, last pushed yesterday), licensed Apache-2.0. It adds 37,912 tokens to every session, about $0.1516 per session on Opus 5.5. A static security scan graded it D with 2 findings (tells the agent never to refuse, asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.