NyxID CLAUDE.md

NyxID CLAUDE.md is an instructions file for Claude Code from ChronoAIProject/NyxID. It costs 15,664 tokens per session, scanned A, 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 Code; mentions Codex; built for openclaw.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/chronoaiproject/nyxid/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 15,664 This file is loaded in full into every session.
When invoked 15,664 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.15664 $0.15664
Opus 5 $0.07832 $0.07832
Sonnet 5 $0.03133 $0.03133
Haiku 4.5 $0.01566 $0.01566

Measured yesterday against content hash 2c3b170b3cfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

NyxID 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 yesterday.

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 · 516 lines

How it starts

The opening of the file, as written. The whole thing — 516 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 · 516 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. yesterday Changed · +17 lines · +1,005 tokens per session 2c3b170b3cfe
  2. 6d ago First seen · 499 lines · 14,659 tokens per session scan A 7613a6b4bbbd

Subscribe to this mod's changes

NyxID CLAUDE.md is an instructions file published in the GitHub repository ChronoAIProject/NyxID (36 stars, last pushed yesterday), licensed Apache-2.0. It adds 15,664 tokens to every session, about $0.0783 per session on Opus 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.