
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Experimental Project. Use it at your own risk.
Run Claude Code using your ChatGPT/Codex subscription as the backend — no Anthropic API key or Claude session limits required.
We love Claude Code, but sometimes, we can't use it.
api.anthropic.comHijackClaw solves this by routing Claude Code's API requests through your existing OpenAI Codex subscription session. You get the full Claude Code experience — interactive terminal, agentic workflows, file editing — powered by your ChatGPT account at no extra cost.
127.0.0.1ANTHROPIC_BASE_URL pointed at the local proxyYour auth tokens are stored locally in ~/.hijackclaw/auth.json and refresh automatically — no browser needed after the initial login.
npm i hijackclaw -g
# Authenticate with your ChatGPT account
hijackclaw login
# Install daemon + shell hook (adds env vars to new shells when proxy is alive)
hijackclaw install
# Open a new terminal — Claude Code now routes through OpenAI
| Command | Description |
|---|---|
hijackclaw login | Browser-based OAuth PKCE login with your ChatGPT account |
hijackclaw install | Install launchd daemon + shell hook in .zshrc/.bashrc |
hijackclaw uninstall | Remove daemon, shell hook, and env files |
hijackclaw uninstall --purge | Also remove auth tokens and config |
hijackclaw serve | Run the proxy in the foreground (used by launchd) |
hijackclaw status | Check proxy, auth, and install state |
Config lives at ~/.hijackclaw/config.json:
{
"port": 8082,
"model": "gpt-5.4",
"smallFastModel": "gpt-5.4-mini"
}
Claude Code (PTY)
|
| ANTHROPIC_BASE_URL=http://127.0.0.1:8082
v
Local Proxy (POST /v1/messages)
|
| Translate Claude Messages API -> Codex wire protocol
v
chatgpt.com/backend-api/codex/responses (WebSocket / SSE)
|
| Your ChatGPT subscription session
v
OpenAI Codex Backend
Key properties:
ANTHROPIC_* env vars only when the proxy is alive (nc -z guard)git clone https://github.com/yungookim/hijackclaw.git
cd hijackclaw
npm install
npm run build
npm test # Run tests
npm run check # TypeScript type checking
HijackClaw is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by Anthropic or OpenAI. Use of this software may be subject to the terms of service of third-party platforms it interacts with. You are solely responsible for ensuring your usage complies with all applicable terms and policies.
This software is provided "as is", without warranty of any kind. See the MIT License for details.
FAQs
Run Claude Code using your ChatGPT/Codex subscription as the backend
The npm package hijackclaw receives a total of 0 weekly downloads. As such, hijackclaw popularity was classified as not popular.
We found that hijackclaw demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.