droidproxy: Instructions file for Codex

AGENTS.md

droidproxy AGENTS.md is an instructions file for Codex, OpenCode from nikships/droidproxy. It costs 5,803 tokens per session, scanned A, original, MIT.

A repository instruction file for the DroidProxy macOS app, including how to build, run, relaunch, and debug it. The app is a Swift package, and its menu-bar interface needs an assembled application bundle to launch normally.

In plain words
What is it for?
Use it when building the Swift package, creating or launching the macOS app bundle, restarting the development version, or preparing a release bundle.
Why use it?
It prevents common development mistakes such as running commands from the wrong directory, starting an outdated process, or launching the menu-bar app without first building its bundle.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nikships/droidproxy/agents-md"><img src="https://agentmods.dev/badge/instructions/nikships/droidproxy/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,803 This file is loaded in full into every session.
When invoked 5,803 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.05803 $0.05803
Opus 5.5 $0.02321 $0.02321
Sonnet 5.5 $0.01161 $0.01161
Haiku 4.5 $0.00580 $0.00580

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

Security

Grade A, and why

droidproxy 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 3d 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.

- **Usage endpoint**: `GET /droidproxy/usage[?provider=codex|claude|grok|meta&account=<id|email>]` on `:8317` is answered locally by `UsageEndpoint` (never forwarded) with live quota windows as JSON (`remaining_percent`,
AGENTS.md · 186 lines

How it starts

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

AGENTS.md

Build & Run

The Swift package lives in src/. Run all swift build, swift run, and swift package commands from there, not from the repo root.

# Preferred dev loop: kill any running DroidProxy, rebuild the .app bundle, and
# launch the freshly signed build. Use this instead of running create-app-bundle.sh
# + open by hand — it guarantees the old menu-bar process and bundled
# cli-proxy-api are stopped before the new app starts.
./dev-relaunch.sh

# Debug build (no .app bundle, no relaunch)
cd src && swift build

# Run the app manually (menu bar app — swift run does not work for LSUIElement apps)
# Build the .app bundle first, then open it:
./create-app-bundle.sh && open DroidProxy.app

# Release .app bundle at repo root
# Picks up CODESIGN_IDENTITY / APP_VERSION / TARGET_ARCH from env when present
./create-app-bundle.sh

dev-relaunch.sh is the preferred way to run DroidProxy during development. It calls create-app-bundle.sh (which runs swift build -c release and assembles the signed .app) after killing any running CLIProxyMenuBar / cli-proxy-api processes, then launches the fresh bundle. Do not use it for releases — those go through .github/workflows/release.yml.

create-app-bundle.sh currently builds DroidProxy.app at the repo root and bundles resources from src/Sources/Resources/.

Notarization (local)

ditto -c -k --sequesterRsrc --keepParent "DroidProxy.app" "DroidProxy-notarize.zip"
xcrun notarytool submit "DroidProxy-notarize.zip" --keychain-profile "notarytool" --wait
xcrun stapler staple "DroidProxy.app"

Sparkle update signing

src/.build/artifacts/sparkle/Sparkle/bin/sign_update DroidProxy-arm64.zip

Source Of Truth

The compiled app code is under src/. Treat src/Sources/**, src/Info.plist, and create-app-bundle.sh as source of truth. There is no longer a mirrored top-level resources/ tree — older AGENTS notes about it are stale.

Architecture

DroidProxy is a macOS menu bar app (LSUIElement) with:

Read the full file on GitHub · 186 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. 3d ago Changed · +54 tokens per session cf355bda6db6
  2. 12d ago Changed · +33 tokens per session 8e1e3e8d61db
  3. 22d ago Changed · +4 lines · +561 tokens per session 541ac577491d
  4. 24d ago Changed · +7 tokens per session 03a8bced4644
  5. 25d ago Changed · +9 lines · +224 tokens per session e2d23f60dd6f
  6. 1mo ago Changed · +3 lines · +430 tokens per session c7845943c3e2
  7. 1mo ago Changed · -4 tokens per session 62354e1e6bc1
  8. 1mo ago Changed · -10 lines · -575 tokens per session e9e362d9be96
  9. 1mo ago Changed · +5 lines · +251 tokens per session e3ed94cb4b33
  10. 1mo ago First seen · 175 lines · 4,822 tokens per session scan A 770d54548252

Subscribe to this mod's changes

droidproxy AGENTS.md is an instructions file published in the GitHub repository nikships/droidproxy (123 stars, last pushed yesterday), licensed MIT. It adds 5,803 tokens to every session, about $0.0232 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

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,581 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

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens