NyxID: Instructions file for Claude Code

CLAUDE.md

NyxID CLAUDE.md is an instructions file for Claude Code from ChronoAIProject/NyxID. It costs 37,912 tokens per session, scanned D, original, Apache-2.0.

Project instructions for NyxID, an authentication and single sign-on platform. They describe its Rust, React, mobile, database, API, and command-line components and their coding conventions.

In plain words
What is it for?
Use them when developing NyxID's authentication, OAuth, admin, mobile approval, CLI, database, or credential-node features.
Why use it?
They give the agent the rules needed to change the right layer and follow the project's data, architecture, and error-handling patterns.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions Codex.

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

Reuse

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.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chronoaiproject/nyxid/claude-md/github.svg)](https://agentmods.dev/instructions/chronoaiproject/nyxid/claude-md)
Your own site
<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.

agentmods 80×15 button for NyxID CLAUDE.md

Your own site · 80×15
<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>
Per session 37,912 This file is loaded in full into every session.
When invoked 37,912 The same file — it is already loaded in full.
Security scan D 2 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.37912 $0.37912
Opus 5.5 $0.15165 $0.15165
Sonnet 5.5 $0.07582 $0.07582
Haiku 4.5 $0.03791 $0.03791

Measured today against content hash 62c92a161053, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
CLAUDE.md · 819 lines

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 (mongodb 3.5, bson 2.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 -- prevents insert_one(&struct) from storing them
  • ALWAYS use #[serde(with = "bson::serde_helpers::chrono_datetime_as_bson_datetime")] on DateTime<Utc> fields; for Option<DateTime<Utc>> use the bson_datetime::optional helper (models/bson_datetime.rs)
  • IDs are UUID v4 stored as strings in MongoDB _id; each model has a COLLECTION_NAME constant

2. Layer Architecture

Strict separation: handlers/ -> services/ -> models/

  • models/ -- plain serde structs, COLLECTION_NAME, no business logic
  • services/ -- business logic; takes &mongodb::Database and &str for 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 &str to Uuid internally
  • unified_key_service -- orchestration layer for the streamlined services architecture; auto-provisions UserEndpoint + UserApiKey + UserService from catalog or custom input in one operation

Read the full file on GitHub · 819 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. today Changed · +445 tokens per session 62c92a161053
  2. 3d ago Changed · +3 lines · +271 tokens per session ff52cf4411ec
  3. 4d ago Changed · +8 lines · +580 tokens per session 1eeb59522548
  4. 5d ago Changed · +24 lines · +2,020 tokens per session 4a3498bcdb24
  5. 6d ago Changed · +17 lines · +367 tokens per session 0eed793f4ef2
  6. 7d ago Changed · +1 lines · +188 tokens per session f403ced582e6
  7. 10d ago Changed · +63 tokens per session fe1f20a92fe8
  8. 11d ago Changed · +13 lines · +793 tokens per session 2f150783018f
  9. 12d ago Changed · +181 tokens per session b30fdda2ede1
  10. 13d ago First seen · 753 lines · 33,004 tokens per session scan D 5532c0b13a7b

Subscribe to this mod's changes

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.

Related

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).

microsoft/vscode · 9,715 tokens

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.

vercel/next.js · 7,786 tokens

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).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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).

microsoft/vscode · 2,731 tokens

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.

denoland/deno · 3,077 tokens