ocx
Skill17k starsChanged 2 months agoMITView on GitHub
Drive a running opencodex (`ocx`) proxy from the CLI — account pools, provider routing, model catalog, usage and cost attribution, request logs, access keys, storage cleanup, and the management API. Use when a task involves controlling or inspecting an opencodex proxy rather than editing the opencodex codebase. Triggers: ocx, opencodex, proxy control, account pool, pause account, pool strategy, provider routing, usage report, cost attribution, access key, request log, conversation trace, storage cleanup, management API.
Trending
More talk lately.about the whole repository
Who's talking about lidge-jun/opencodex
- A Hacker News story“Proxy for OpenAI Codex and Claude Code, use any LLM with those apps”Hacker News · Jul 22, 2026 · 6 points
- @ds-wen.bsky.social“Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, …”Bluesky · Jul 22, 2026 · 3 likes
- router-for-me/CLIProxyAPI“Antigravity 调用 Claude 5.5 返回 404 Requested entity was not found”GitHub · Oct 4, 2026 · 1 reactions
- alphaXiv/OpenResearch“Feature Request: Opencodex Style Codex subscription pooling plan?”GitHub · Sep 18, 2026 · 1 reactions
- NousResearch/hermes-agent“[Provider compatibility]: Nous Portal stealth/ox-alpha returns empty responses with tools”GitHub · Aug 23, 2026 · 1 reactions
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 50
- Oct 4, 2026Antigravity 调用 Claude 5.5 返回 404 Requested entity was not found — router-for-me/CLIProxyAPI1 reaction · 3 comments
- Sep 18, 2026Feature Request: Opencodex Style Codex subscription pooling plan? — alphaXiv/OpenResearch1 reaction
- Aug 23, 2026[Provider compatibility]: Nous Portal stealth/ox-alpha returns empty responses with tools — NousResearch/hermes-agent1 reaction · 1 comment
- Nov 2, 2026tracking: dashboard-first reliability and operator workflows (2026-11-02) — amanverasia/Janus0 reactions
- Nov 2, 2026fix(routing): preserve cooldown expiry and calculate retry time across overlapping scopes — amanverasia/Janus0 reactions
45 more on GitHub
- Nov 2, 2026feat(inventory): provide classified account recovery and safe re-entry into routing — amanverasia/Janus0 reactions
- Nov 1, 2026feat(install): option --opencodex (OpenCodex app, CLI ocx, workers, raccourci zsh) — WhiteRoseLK/ctf-agents0 reactions
- Nov 1, 2026install.sh : option --opencodex (orchestrateur multi-provider) — WhiteRoseLK/ctf-agents0 reactions
- Nov 1, 2026agent-skills.github.lidge-jun.opencodex: 2.95.0 → 2.96.0 — sudosubin/agents.nix0 reactions
- Oct 31, 2026agent-skills.github.lidge-jun.opencodex: 2.94.0 → 2.95.0 — sudosubin/agents.nix0 reactions
- Oct 30, 2026[Bug/错误]: Codex 即便透传也无法调用自带的搜索 — looplj/axonhub0 reactions
- Oct 29, 2026agent-skills.github.lidge-jun.opencodex: 2.93.0 → 2.94.0 — sudosubin/agents.nix0 reactions
- Oct 29, 2026fix(volcengine): carry reviewed Kimi regression coverage — AaronZ345/opencodex0 reactions · 2 comments
- Oct 27, 2026agent-skills.github.lidge-jun.opencodex: 2.92.0 → 2.93.0 — sudosubin/agents.nix0 reactions
- Oct 24, 2026agent-skills.github.lidge-jun.opencodex: 2.91.0 → 2.92.0 — sudosubin/agents.nix0 reactions
- Oct 24, 2026perf(proxy): bound CONNECT header buffering and eliminate repeated prefix copies — luvs01/opencodex0 reactions · 3 comments
- Oct 22, 2026agent-skills.github.lidge-jun.opencodex: 2.90.0 → 2.91.0 — sudosubin/agents.nix0 reactions
- Oct 21, 2026agent-skills.github.lidge-jun.opencodex: 2.89.0 → 2.90.0 — sudosubin/agents.nix0 reactions
- Oct 19, 2026agent-skills.github.lidge-jun.opencodex: 2.88.0 → 2.89.0 — sudosubin/agents.nix0 reactions
- Oct 17, 2026agent-skills.github.lidge-jun.opencodex: 2.87.0 → 2.88.0 — sudosubin/agents.nix0 reactions
- Oct 16, 2026agent-skills.github.lidge-jun.opencodex: 2.86.0 → 2.87.0 — sudosubin/agents.nix0 reactions
- Oct 15, 2026agent-skills.github.lidge-jun.opencodex: 2.84.0 → 2.86.0 — sudosubin/agents.nix0 reactions
- Oct 14, 2026[WRONG BRANCH] fix(cli): treat connected client state as successful ensure and inject OPENCODEX_API_AUTH_TOKEN in system-env — andrew05060414/opencodex0 reactions · 2 comments
- Oct 14, 2026Discovery watchlist — rishibhaskar777/whichai0 reactions
- Oct 14, 2026agent-skills.github.lidge-jun.opencodex: 2.78.0 → 2.84.0 — sudosubin/agents.nix0 reactions
- Oct 6, 2026Recover stalled OpenCodex processes with a Rust liveness watchdog — AutoDevJapan/cc-pc-tools-rs0 reactions · 4 comments
- Oct 5, 2026agent-skills.github.lidge-jun.opencodex: 2.77.0 → 2.78.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.lidge-jun.opencodex: 2.76.0 → 2.77.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.lidge-jun.opencodex: 2.64.0 → 2.76.0 — sudosubin/agents.nix0 reactions
- Sep 29, 2026agent-skills.github.lidge-jun.opencodex: init at 2.64.0 — sudosubin/agents.nix0 reactions
- Sep 29, 2026Add OpenCodex — AppImage/appimage.github.io0 reactions · 1 comment
- Sep 20, 2026[Bug]: Model picker shows one flat list; group models by provider the way Hermes does — hardbeat920/monocode0 reactions · 4 comments
- Sep 20, 2026chore(deps): bump @bitkyc08/opencodex from 2.29.0 to 2.57.0 — Cyberdad247/Camelot-Ecosystem0 reactions · 2 comments
- Sep 19, 2026loop: dispatching lanes without arming a wake leaves every lane stalled after it opens its PR — lidge-jun/codexclaw0 reactions
- Sep 18, 2026[WRONG BRANCH] test(server): validate the #5014 fixture fix against current dev — luvs01/opencodex0 reactions · 4 comments
- Sep 16, 2026docs(workflow): make parallel worktree lanes mergeable across Codex tasks — lidge-jun/codexclaw0 reactions
- Sep 14, 2026Replace the retiring GPT-5.3-Codex-Spark in the Codex live tests — panarch/caffold0 reactions
- Sep 13, 2026Same-model background review can resolve a different cache scope than its gateway parent — NousResearch/hermes-agent0 reactions · 4 comments
- Sep 11, 2026collections: Measure-Object -Line silently counts only non-empty lines, so it undercounts any file with blank lines — lidge-jun/fuck-powershell0 reactions
- Sep 10, 2026feat(discovery): 週に一度、新しく出たツールの候補を集めて PR にする — konweb/nanteyomu0 reactions · 1 comment
- Sep 8, 2026fix(claude): stabilize Responses instructions for Muse/Go prompt cache — Warexpor/opencodex0 reactions · 4 comments
- Sep 8, 2026OpenCode Go rejects requests over missing `x-opencode-session` — raine/claude-code-proxy0 reactions
- Sep 7, 2026ocx: add page — tldr-pages/tldr0 reactions · 2 comments
- Aug 21, 2026feat(gui): Subagents Roles editor and prompt fields — yansigit/opencodex0 reactions · 2 comments
- Aug 21, 2026[WRONG BRANCH] feat(agent): marker-owned Codex role TOML sync — yansigit/opencodex0 reactions · 3 comments
- Aug 10, 2026[Feature]: First-class OpenCodeX integration for Codex and Claude Code sessions — stablyai/orca0 reactions
- Aug 9, 2026[兼容性问题] 请问 兼容 opencodex 代理吗? — architectds/modeldock0 reactions · 1 comment
- Aug 6, 2026Add opencodex package — bet4it/nur-packages0 reactions
- Jul 23, 2026增强自定义供应商模型发现:独立 modelsUrl 与 Anthropic 后缀回退 — makecindy/cindy0 reactions
- Jul 21, 2026docs: add opencodex visual explainer — 53able/docs-site0 reactions
On Bluesky · 2
- Jul 22, 2026Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK,… — @ds-wen.bsky.social3 likes and reposts · 1 reply
- Aug 22, 2026opencodex points Codex, Claude Code, Claude Desktop, and Grok Build at any LLM you like, but the sharper lesson is how it bounds the state… — @agentpalisade.bsky.social1 likes and repost
On Hacker News · 1
- Jul 22, 2026Proxy for OpenAI Codex and Claude Code, use any LLM with those apps6 points · 1 comment
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs-site/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- gui/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- structure/AGENTS.mdAGENTS.md
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 103
Never ask for the plaintext key in chat or offer a pipe, redirection, or API workaround to perform the secret-returning step inside the …
- Very specific: line 167
When disconnect refuses, do not route around it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Operating ocx
ocx controls a locally running opencodex proxy. The CLI covers the dashboard's operational
surface, subject to Consent and Secret-bearing commands below. ocx capabilities
lists the declared index, not every verb.
Be precise about the gap, because guessing costs you more than reading: the capability index below
is complete and authoritative for what it lists, and it does not yet list every management route.
A route with no declared capability may still have a working command — ocx access key and
ocx route policy both work while capabilities --route returns nothing for them. So use the
index first, and fall back to ocx <group> help before concluding a capability is missing.
This skill is for operating a proxy. Two neighbours cover different jobs: AGENTS_INSTALL.md
is for installing one, and the repository AGENTS.md is for changing the codebase.
Start here
ocx capabilities --jsonThat is the machine-readable index of declared verbs, the routes they drive, their flags, and whether they
mutate. Read it first rather than guessing a command name. It is not exhaustive — an unmatched
--route exits 4 when the table has no row, even if a working verb exists. The converse of
generation also holds: a verb can exist without appearing here (ocx access key, ocx route policy).
Narrow it when you already know what you want:
ocx capabilities --mutating-only --json # only state-changing verbs
ocx capabilities --route /api/logs # which verbs drive one routeAn unmatched --route exits 4 rather than printing an empty success.
Three steps before any management call
ocx ready --json— is the proxy up and admitting requests?ocx status --json— is this binary the same build as the running proxy? A version skew means the help and flags you just read describe a different build than the one answering.- Then the real command, with
--json.
Skipping step 2 is how an agent ends up reporting that a flag "does not work" when it simply does not exist in the running build yet.
Exit codes
| Code | Meaning |
| 0 | success |
| 2 | usage error — bad or missing arguments; nothing was sent |
| 4 | not found — the named account, provider, key, or route does not exist |
| 5 | conflict — a lock is held or the state changed under you; usually retryable |
| 1 | everything else, including transport failure and any other HTTP error |
Never read a printed error with exit 0 as success. Commands used to print a failure and exit 0;
they no longer do, and a source scan keeps it that way. Exit 0 means no error was reported;
inspect the result to see whether anything mutated (cleanup without --yes is a preview).
Reading a failure
A management failure prints up to three lines: the message, then reason:, then hint:. The
reason is the machine-actionable part — branch on it, not on the prose.
Four named classes are worth handling specifically:
| Reason | What it means | What to do |
oauth_mutation_busy | another credential write is in flight (503, Retry-After: 1) | retry once after a second |
catalog_busy | a catalog gather is in flight (503, Retry-After: 1) | retry once after a second |
| a config-mutation lock reason | a config write holds the lock | retry shortly |
| a credential-conflict reason | the install is broken, not busy | run ocx doctor; retrying will not help |
The first two are transient by construction and the server tells you how long to wait. The last is the one to stop on: repeating it just produces the same error more times.
Consent: one thing you must not do
Do not star the repository on the user's behalf. ocx inspect star reads the status, and that
is the entire CLI surface for it. The starring POST requires a real dashboard session precisely so
an agent cannot answer that question for its user — it spends their GitHub identity, which no
flag can delegate. Do not route around it with gh, a direct HTTP call, or a minted session. If
starring would be useful, say so and let the user decide.
The same boundary covers the session-gated /api/codex-prompt writes: read them with
ocx inspect codex-prompt, and leave the writes to the dashboard.
Secret-bearing commands
Do not create an access key or start an access-key rotation from an agent session.
This covers the create and rotation-start operations under ocx access key,
ocx access keys, and ocx api-key, their opencodex equivalents and executable
wrappers, and direct POST requests to /api/keys and /api/keys/rotate.
Both text and JSON responses contain a one-time plaintext data-plane credential,
which can enter the agent transcript. Ask the user to perform that step in a
human-operated terminal outside the agent session, configure and verify the
replacement, and report only confirmation plus non-secret key/rotation IDs.
Never ask for the plaintext key in chat or offer a pipe, redirection, or API
workaround to perform the secret-returning step inside the agent session.
ocx hub invite has the same boundary: text and JSON output expose a plaintext pairing
grant or a command embedding it. Use the human-operated terminal handoff in
recipe 10; never ask for
the grant or generated command in chat. Continue non-secret setup and verification normally.
Configuration confirmation is not approval to revoke the existing credential. Identify the existing key ID and obtain separate explicit revocation approval before committing an in-place rotation or removing an old, separately replaced key. An existing explicit approval for that exact revocation remains valid; setup confirmation alone does not supply it. Commit and abort return no plaintext key, but still require authority for their state changes. Follow recipe 5.
Destructive verbs
storage trash restore and storage policy run refuse without --yes (exit 2, nothing sent).
storage cleanup without --yes is a preview that exits 0 having mutated nothing — do not treat
that 0 as a delete. There is no interactive prompt.
The expected sequence is preview, report, then ask:
ocx storage cleanup --percent 25 --json # previews; deletes nothing; exits 0Report the count and bytes from that output and get explicit approval before adding --yes.
--mode quarantine (the default) can be undone with storage trash restore; --mode permanent
cannot.
Remote hub: three things agents get wrong
A hub is one port, and ocx hub invite writes the join command for you. Remote machines dial
hostname:port with their own per-client key; the hub's own processes dial 127.0.0.1:<the same
port> with no credential, through the loopback companion listener
(unauthenticatedLoopbackListener: {"enabled": true}, no port). Have the operator run ocx hub invite
on the hub outside the agent session rather than assembling an ocx connect line: it mints a single-use code and prints the exact
command, with both origins already filled in. Its --management-url is a confirmation of
hub.managementPublicOrigin, not an override. The operator transfers the command directly to the joining machine; keep it out of the transcript.
Two consequences that look like bugs and are not. ocx status on a hub prints a Hub: block —
read it before asking the operator anything about ports or tokens. And a hub does not rewrite its
own Codex/Grok/Claude configs unless that listener is enabled; the skip says so in those words,
and it is a gate, not the clientIntegrations toggle.
Pairing is not hub setup. Configuring a hub — providers, accounts, routing, keys — never
needs a pairing code. GET /opencodex-session mints a session by itself for a loopback
request, and for a hub reached over the trusted Tailscale ingress when the login is in
remoteGui.allowedTailscaleUsers. A pairing grant is the fallback for a remote browser that
neither position nor identity vouches for. The management API is a separate ladder again: an
agent driving a hub uses the admin token and never pairs. When a human asks "do I have to pair
to set this up?", the answer is no.
ocx disconnect is only half of leaving a hub. It restores local state and clears the
connection, then tells you the hub key is still valid. Revoke it too: ocx connect revoke
--admin-token-stdin while still connected, or delete the key in the hub dashboard under
Integrations → API Keys once the device is gone. Stopping after disconnect leaves a working
credential behind.
Credentials for these commands are stdin-only — --pairing-code-stdin and
--admin-token-stdin. There is no argv or environment form, and that is deliberate.
When disconnect refuses, do not route around it. Each refusal means the unwind cannot be
proven safe: another process owns the token, no journal records the pre-connect state, a
different client key owns the journal, or the restore was only partial.
Details, including the one-port recipe, the invite flow and key rotation's two-step commit:
references/05_remote_hub.md. Service and launchd semantics, including why
ocx service repair can correctly do nothing while ocx service restart always restarts —
so a restart is never a hand-written launchctl kickstart:
references/04_failure_semantics.md.
References
| File | Use it for |
references/01_management_surface.md | the full capability → route map (generated) |
references/02_json_shapes.md | response envelopes and error shapes |
references/03_recipes.md | copy-paste sequences for real tasks |
references/04_failure_semantics.md | exit codes, 503 classes, what to retry |
references/05_remote_hub.md | hub/client roles, when pairing is and is not needed, key rotation, disconnection |
01_management_surface.md is generated by scripts/generate-ocx-skill-surface.ts and a test fails
if the committed copy drifts from the capability table. When it and the running binary disagree,
believe ocx capabilities --json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

