openproxy: Instructions file for Codex

AGENTS.md

openproxy AGENTS.md is an instructions file for Codex, OpenCode from quangdang46/openproxy. It costs 1,905 tokens per session, scanned A, original, MIT.

Project-specific instructions for openproxy, a Rust software project that routes requests to AI services. They cover the project’s purpose, architecture, development approach, and beads.

In plain words
What is it for?
Use them when working on openproxy’s Rust code, architecture, development workflow, or beads.
Why use it?
They explain how the repository is organised and how its maintainers expect changes to be made.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions OpenCode.

This is quangdang46/openproxy's own configuration. It tells Codex and OpenCode how to work on openproxy 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 openproxy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to quangdang46/openproxy. 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/quangdang46/openproxy/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/quangdang46/openproxy

Made for: Codex, OpenCode.

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 openproxy AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/quangdang46/openproxy/agents-md"><img src="https://agentmods.dev/badge/instructions/quangdang46/openproxy/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,905 This file is loaded in full into every session.
When invoked 1,905 The same file — it is already loaded in full.
Security scan A 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.01905 $0.01905
Opus 5.5 $0.00762 $0.00762
Sonnet 5.5 $0.00381 $0.00381
Haiku 4.5 $0.00191 $0.00191

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

Security

Grade A, and why

openproxy AGENTS.md scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:4623/health
AGENTS.md · 103 lines

How it starts

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

OpenProxy — Rust AI Proxy Router

What

OpenProxy is an AI proxy router written in Rust — OpenAI-compatible endpoint that routes requests to 40+ AI providers with format translation, account fallback, token refresh, usage tracking, and SSE streaming.

Why

Replace 9router (Node.js) with a faster, safer Rust implementation that avoids 235+ bugs found in the JS version. Critical patterns: type-safe format handling, encrypted secrets, immutable data flow, thread-safe by design.

How (Architecture)

  • Core: model parsing → format detection → request translation → provider execution → response translation → SSE streaming
  • Account mgmt: credential selection → token refresh → model-level fallback → combo/fusion
  • Executor trait: ProviderExecutor with default+specialized impls
  • Persistence: SQLite WAL + encrypted columns + usage tracking
  • Security: HMAC API keys, bcrypt auth, SSRF protection

Beads

Parity work: epic openproxy-9router-parity-v0550-pnc (9router v0.5.50 → openproxy, 122 specs) (+ children). Prior v0.5.30 epic openproxy-9router-parity-mj1 is closed. See br ready / bv --robot-next.

Key References

  • docs/parity-9router.md — intentional divergences, pipeline order, executor dispatch
  • 9router reference: /tmp/9router (open-sse) — do NOT copy JS bugs blindly
  • OmniRoute v3.8.50 (/tmp/omniroute_v3850, SHA 6cd4d38) — authoritative reference for provider parity. When a provider behaves unexpectedly, compare against OmniRoute's src/managed/ implementations, not the legacy JS 9router. Key files: credentialHealth.ts (HealthStatus: 200/401/429/503/500), healthCheck.ts, modelDiscovery.ts (discoverProviderModels — GET /v1/models with provider-specific headers), managedModelImport.ts (merge/sync remote catalog → local config, preserveRemovedCustomModelCompat). Header-fidelity rules for parity: OpenRouter must send HTTP-Referer + X-Title; nvidia/llm7 omit HTTP-Referer; gemini sends x-goog-api-key; kiro/opencode/free-providers use the appropriate OAuth token flow. Always check /tmp/omniroute_v3850 before making provider-specific decisions.

Read the full file on GitHub · 103 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. 1mo ago First seen · 103 lines · 1,905 tokens per session scan A 2cf5343e83f3

Subscribe to this mod's changes

openproxy AGENTS.md is an instructions file published in the GitHub repository quangdang46/openproxy (29 stars, last pushed 5d ago), licensed MIT. It adds 1,905 tokens to every session, about $0.0076 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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