config-codex-cli
Skill0 starsChanged 3 months agoMITView on GitHub
Step-by-step agent workflow to configure the OpenAI Codex CLI on any machine (Linux, macOS, Windows) to use Nerve as an OpenAI-compatible backend. Detects OS and shell, writes config.toml and 7 named profiles, sets environment variables, and verifies the setup.
- Installs packages
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- MMACABRE/SKILLSedited, first seen Nov 8, 2026
- cheaper-inference/OmniRouteedited, first seen Oct 25, 2026
- diegosouzapw/OmniRouteedited, first seen Oct 22, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- cheaper-inference/OmniRoute★ 86k90% same
- diegosouzapw/OmniRoute★ 86k90% same
- MMACABRE/SKILLS★ 190% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- app_backup/AGENTS.mdAGENTS.md
- app_backup/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- cli-a2aSkill
- cli-backup-syncSkill
- cli-batchesSkill
- cli-chatSkill
- cli-compressionSkill
- cli-contextsSkill
- cli-cost-usageSkill
- cli-evalSkill
- cli-healthSkill
- cli-keysSkill
- cli-mcpSkill
- cli-modelsSkill
- cli-plugins-skillsSkill
- cli-policy-auditSkill
- cli-providersSkill
- cli-resilienceSkill
- cli-routingSkill
- cli-serveSkill
- cli-setupSkill
- cli-skill-collectorSkill
- cli-tunnelSkill
- nerve-inferenceSkill
- nerve-mcpSkill
- omni-agents-a2aSkill
- omni-api-keysSkill
- omni-authSkill
- omni-budgetSkill
- omni-cacheSkill
- omni-cli-toolsSkill
- omni-combos-routingSkill
- omni-compressionSkill
- omni-context-rtkSkill
- omni-db-backupsSkill
- omni-github-skillsSkill
- omni-modelsSkill
- omni-providersSkill
- omni-proxiesSkill
- omni-resilienceSkill
- omni-settingsSkill
- omni-sync-cloudSkill
- omni-tunnelsSkill
- omni-usage-logsSkill
- omni-version-managerSkill
- omni-webhooksSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Default 0 = disabled. Each turn can land on a different account and break prompt-cache / session continuity.
- Very specific: line 55
Do not flip ship defaults in code for this skill: sessionAffinityTtlMs stays 0 and STREAM_IDLE_TIMEOUT_MS stays 600000.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->Overview
Step-by-step agent workflow to configure the OpenAI Codex CLI on any machine (Linux, macOS, Windows) to use Nerve as an OpenAI-compatible backend. Detects OS and shell, writes config.toml and 7 named profiles, sets environment variables, and verifies the setup.
Quick install
npm install -g nerve # or: npx nerve
nerve --versionSubcommands
No CLI subcommands mapped for this family yet.
<!-- skill:custom-start -->Long-running Codex tasks (#7287)
Two Nerve defaults silently break multi-hour Codex sessions. Document them whenever configuring Codex for overnight / multi-hour work. Full guide: docs/guides/CODEX-CLI-CONFIGURATION.md → Long-running tasks.
Session affinity (default off)
- Setting:
sessionAffinityTtlMs(ms; UI shows Affinity TTL (seconds) under Dashboard → Settings → Routing → Session affinity). Legacy alias:codexSessionAffinityTtlMs. - Default
0= disabled. Each turn can land on a different account and break prompt-cache / session continuity. - Codex session keys (
x-codex-session-id,x-session-id,x-nerve-session, bodyprompt_cache_key/session_id) are only used for pinning when TTL > 0. - Max:
86400seconds /86400000ms (24h). Set TTL above the expected task length (e.g.43200s for ~12h).
Stream idle timeout (default 10 minutes)
- Env:
STREAM_IDLE_TIMEOUT_MS(default600000). Also considerFETCH_BODY_TIMEOUT_MS(same baseline;0disables). - Synthetic SSE heartbeats do not reset the idle clock — only real upstream chunks do.
- A quiet reasoning turn past the idle window is force-closed (
stream_idle_timeout/StreamIdleTimeoutError). Grep logs forIdle timeout: no data from.
Recommended multi-hour recipe
- Dashboard → Settings → Routing → Session affinity → Affinity TTL =
43200(12h) or86400(24h max). - Nerve environment:
STREAM_IDLE_TIMEOUT_MS=0
FETCH_BODY_TIMEOUT_MS=0- Restart Nerve. Leave Codex
config.tomlas usual (wire_api = "responses", correctbase_url).
Defaults decision
Do not flip ship defaults in code for this skill: sessionAffinityTtlMs stays 0 and STREAM_IDLE_TIMEOUT_MS stays 600000. Long-running operators must opt in. See Discussion #5718 and issue #7287.
<!-- skill:custom-end -->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.

