← Browse

@deepvite/fix-codex-reconnecting

A

Switch Codex between HTTP-only and WebSocket/default network modes by editing the Codex config. Use when Codex repeatedly retries WebSocket connections, when the user wants to force HTTP, when the user wants to restore the default provider, or when checking the current mode.

skillclaude

Install

agr install @deepvite/fix-codex-reconnecting --target claude

Writes 3 files into .claude/skills/, pinned to git-4c00b9db.

  • .claude/skills/fix-codex-reconnecting/LICENSE
  • .claude/skills/fix-codex-reconnecting/README.md
  • .claude/skills/fix-codex-reconnecting/SKILL.md

Document


name: fix-codex-reconnecting description: Switch Codex between HTTP-only and WebSocket/default network modes by editing the Codex config. Use when Codex repeatedly retries WebSocket connections, when the user wants to force HTTP, when the user wants to restore the default provider, or when checking the current mode.

Fix Codex Reconnecting

Use this skill to change Codex network mode without touching unrelated settings.

Workflow

  1. Read the current ~/.codex/config.toml.
  2. Create a timestamped backup before writing.
  3. Run scripts/switch_codex_network_mode.ps1 for the actual edit.
  4. Preserve unrelated config, plugin, and MCP settings.
  5. Treat third-party config managers such as ccswitch as owners of the same file; they can overwrite these changes later.
  6. Validate with codex debug models.
  7. Tell the user to restart the Codex desktop app.

Modes

  • http: set model_provider = "openai_http" and add [model_providers.openai_http] with supports_websockets = false.
  • websocket: remove the openai_http override and return to the built-in provider.
  • status: report the current mode without modifying files.

User Copy

Use README.md when the user wants a copy-paste prompt instead of installing the skill.

Files

  • scripts/switch_codex_network_mode.ps1: applies the mode change with backup handling.
  • README.md: user-facing prompts, warnings, and recovery notes.

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-4c00b9db4f0f2026-07-31