Scan your whole stack
Are you using @bman654/clodex?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.22.0
@bman654/clodex was last scanned on 1 Dec 2026 at version 2.22.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.22.0 LATEST | 1 Dec 2026 | No rules fired |
| 2.21.9 | 17 Nov 2026 | No rules fired |
| 2.21.8 | 17 Nov 2026 | No rules fired |
| 2.21.7 | 13 Nov 2026 | Not shown |
| 2.21.6 | 9 Nov 2026 | Not shown |
Findings for v2.22.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.22.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
clodex lets you use your ChatGPT plan, OpenAI API models, OpenCode Go or Ollama Cloud models, or models from a custom OpenAI-compatible server with Claude Code as first-class model choices. You can use them anywhere you use Anthropic models like Opus and Sonnet — as the main session model, and in subagents, workflows, and agent teams. Clodex integrates them directly into Claude Code, using Claude Code's system prompt. It works with your existing Claude Code plan WITHOUT violating Anthropic's ToS, and it signs in to your ChatGPT plan through OpenAI's official Sign in with ChatGPT flow for open-source apps. No messing with CMUX or child codex processes or any of that stuff. You can finally have Fable and Sol work together to solve the hardest problems.
You can also run clodex as a local OpenAI-compatible endpoint in front of an OpenAI API key or another configured provider, so any OpenAI-compatible client can use it. Models from your ChatGPT plan are the exception: OpenAI's terms let clodex offer them to Claude Code only (see ChatGPT plan: Claude Code only).
clodex is derived from the original relay-ai project, heavily modified and streamlined for this one use case, with the full commit history preserved.
Contributions are welcome — see CONTRIBUTING.md for how to scope a PR and what the quality bar is.
npm install -g @bman654/clodex # 1. install the CLI (Node 22+)
clodex providers auth chatgpt # 2. sign in with your ChatGPT plan (Sign in with ChatGPT)
clodex models # 3. pick favorite models and aliases
clodex models --alias sol=clodex:chatgpt:gpt-6.2-sol
clodex models --alias luna=clodex:chatgpt:gpt-6-luna
clodex models --alias terra=clodex:chatgpt:gpt-5.6-terra
clodex patch # 4. (optional) patch Claude Code so those models are first-class
clodex claude # 5. launch Claude Code on an OpenAI model
clodex command on your PATH.127.0.0.1. (API-key users: clodex providers add instead. Already signed in with the older Codex sign-in? See Moving from the Codex sign-in.)sol so you do not need to type the long names. Favorites drive the /model switch menu, proxy-mode routing, and the patcher./model, and report their real context windows. Re-run after each claude update; clodex patch --restore undoes it. This step is required if you want to use clodex-routed models as subagents via the Agent tool.| Provider | Auth | Support |
|---|---|---|
| OpenAI | API key | Fully supported by the clodex maintainer |
ChatGPT plan (Sign in with ChatGPT, chatgpt) |
OAuth | Fully supported by the clodex maintainer — recommended for ChatGPT plans |
ChatGPT plan through the Codex sign-in (openai-oauth) |
OAuth | Deprecated — still works; use chatgpt for new setups |
| OpenCode Go | API key | Community-supported — maintained by its contributor |
| Custom OpenAI-compatible server (OpenRouter, vLLM, …) | API key, or none | Community-supported — maintained by its contributor |
| Ollama Cloud | API key | Community-supported — maintained by its contributor |
Community-supported means the maintainer holds no account for that service, so it cannot be exercised against the live API here or debugged when the vendor changes something. Such an integration is reviewed and tested like everything else and shipped gladly — it just depends on its contributor when upstream moves. New providers land under this tier by default.
| Feature | Clodex | relay-ai | CLIProxyAPI | Various process-based solutions |
|---|---|---|---|---|
| url | https://github.com/bman654/clodex | https://github.com/jacob-bd/relay-ai | https://help.router-for.me/ | |
| Works with Claude Code Plans without violating Anthropic TOS | ✅ | ✅ | ❌ | ✅ |
| Can use all claude models + All Codex models together? | ✅ | ✅ | ❌ | ✅ |
| Claude Code aware of true model context window size | ✅ | ❌ | ❌ | n/a |
| Supports Agent tool | ✅ | ❌ | ✅ | ❌ |
| Supports use in Dynamic Workflows | ✅ | ✅ | ✅ | ❌ |
| Routed models use Claude Code skills/tools | ✅ | ✅ | ✅ | ❌ |
| Routed models use Claude Code system prompt | ✅ | ✅ | ✅ | ❌ |
| Supports use in skill/agent frontmatter | ✅ | ❌ | ✅ | ❌ |
| Supports OpenAI prompt caching | ✅ | ❌ | ? | ✅ |
| Uses Websockets to talk to OpenAI API | ✅ | ❌ | ? | ✅ |
It's important to understand that any tool that duplicates Claude Code's OAuth login flow violates Anthropic's Terms of Service and risks getting your account banned. Any tool that initiates a Claude Code OAuth flow from outside of the Claude Code app falls into this category.
Another way to tell: if a tool needs you to set ANTHROPIC_BASE_URL to a custom value, Claude Code can't run on your plan credentials — so the only way that tool can use your plan is by duplicating Claude Code's OAuth flow, which is against the ToS.
Clodex avoids this. In proxy mode it uses an HTTP proxy to intercept requests bound for api.anthropic.com: requests for an Anthropic model pass through unmodified, still carrying Claude Code's own auth token untouched — your plan credentials are never duplicated or replaced.
clodex providers auth chatgpt uses OpenAI's Sign in with ChatGPT flow for open-source apps. clodex registers itself as a connected app under its own name, you approve it in the browser, and its requests go to the public OpenAI API (api.openai.com) and count against your ChatGPT plan's usage. You can review that usage at chatgpt.com/settings/usage, and clodex is listed in your ChatGPT settings, where you can disable it. While it is disabled, signing in and token renewal still work, but every model request is refused with a usage-limit message; enabling it again restores access. The access token lasts an hour and clodex renews it automatically; according to OpenAI's documentation, the sign-in stays valid as long as clodex is used at least once every 30 days.
clodex providers remove chatgpt deletes the local token and asks OpenAI to revoke it, and tells you if OpenAI did not confirm the revocation. The "clodex" entry stays listed in your ChatGPT settings, where it can be disabled but not deleted. Signing in again after a removal registers clodex anew, so you may see more than one "clodex" entry there.
OpenAI's Sign in with ChatGPT terms don't allow a connected app to offer general-purpose API access to other tools. clodex therefore serves chatgpt models to Claude Code only:
clodex claude works as usual, in proxy and endpoint mode.clodex server's OpenAI-compatible endpoint (/openai/v1/…) doesn't list chatgpt models and refuses requests for them./anthropic/v1/…) serves chatgpt models only to requests from Claude Code, recognized by its claude-cli/ user agent. Other clients get a 403 for these models. This is a good-faith check to honor the terms, not access control.Other providers, including the deprecated openai-oauth sign-in, are not affected.
The older openai-oauth provider signs in with the Codex CLI's identity and talks to ChatGPT's Codex backend. It still works but is deprecated. To move to chatgpt:
clodex providers auth chatgpt # sign in once
clodex models # add the "ChatGPT" models you use as favorites
clodex models --alias sol=clodex:chatgpt:gpt-6.2-sol # re-point each alias you use
clodex patch # if you patch Claude Code, re-run it
clodex providers remove openai-oauth # optional, once you no longer need it
An alias can only point at a favorite, which is why the favorites come first.
Both providers can stay configured side by side; their models differ only in the provider part of the name (clodex:openai-oauth:… versus clodex:chatgpt:…). Additional ChatGPT accounts work the same way as before: clodex providers auth chatgpt --account work, selected at launch with CLODEX_OAUTH_ACCOUNT=work. That variable applies to both ChatGPT providers:
--provider chatgpt) is refused. When no provider has the name, the launch is refused.Both clodex claude and clodex server support two bridge modes. A mode flag applies to that run only; to change a command's default, add --save-mode (e.g. clodex claude --endpoint --save-mode). With no flag and nothing saved, both commands default to proxy mode, which works with your existing Claude auth.
--proxy (the default): a selective man-in-the-middle proxy for api.anthropic.com. Claude Code keeps its normal Anthropic login — Anthropic models work untouched — while models named clodex:<provider-id>:<model-id> (or their saved aliases) route to the selected configured provider. Switch with /model clodex:chatgpt:gpt-6-sol or /model sol after patching.--endpoint: clodex runs a local Anthropic-format gateway and launches Claude Code with ANTHROPIC_BASE_URL pointed at it. All traffic goes through the gateway. With favorites saved, the gateway is multi-route and Claude Code's /model menu lists your starting model plus favorites for live switching.[!TIP] Proxy mode allows you to continue using your Claude Code plan: login to claude code like normal and the proxy will intercept requests and leave requests for Anthropic models untouched, while requests for your favorite clodex models are routed to their configured providers.
flowchart LR
CC["Claude Code<br/>(own Anthropic login)"] -->|"HTTPS via HTTPS_PROXY,<br/>trusts the clodex CA"| MITM["clodex MITM proxy"]
MITM --> DEC{"model is clodex:...<br/>or a saved alias?"}
DEC -->|"yes — routed request,<br/>clodex-managed provider credentials"| UP["Configured provider<br/>(OpenAI / OpenCode Go)"]
DEC -->|"no — passed through untouched,<br/>Claude Code's Anthropic credentials ride along"| ANT["api.anthropic.com"]
In endpoint mode, no Anthropic account is involved — Claude Code is launched pointing at the local gateway with a local API key, and its startup /v1/models fetch powers the /model menu:
flowchart LR
CC["Claude Code<br/>(ANTHROPIC_BASE_URL + local API key,<br/>no Anthropic account credentials)"] -->|"Anthropic-format /v1/messages<br/>+ local API key"| GW["clodex gateway<br/>(:17645/anthropic)"]
CC -->|"GET /v1/models at startup"| GW
GW -->|"model catalog with context windows<br/>(feeds the /model menu)"| CC
GW -->|"routed request,<br/>clodex-managed provider credentials"| UP["Configured provider"]
[!TIP] Using Claude Code's agents view or background agents? Ask your Claude Code agent to read docs/background-agents.md and set it up for you — one global
clodex server --proxyplus theclodex-claudewrapper bin bridges every claude process automatically.
[!TIP] Using the Claude Code VS Code extension?
clodex-claudelaunches your verified clodex-patched install in place of the extension's bundled binary, so clodex models appear in its model picker; follow the VS Code setup. On Windows,clodex install-vscode-launcherfirst builds the.exethe extension needs to launch Claude Code throughclodex-claude; see docs/windows-setup.md.
clodex claude [options] [claude-flags]Launch Claude Code bridged to configured model providers. Unrecognized flags (and everything after --) pass through to Claude Code (-c, --resume, --print, …).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.