npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hijackclaw

v0.1.1

Published

Run Claude Code using your ChatGPT/Codex subscription as the backend

Downloads

28

Readme

HijackClaw

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.

Why

We love Claude Code, but sometimes, we can't use it.

  • Session limits — You've burned through your Claude Pro/Team allocation, and it's only Tuesday
  • No API budget — Anthropic API credits or subscription aren't cheap, and your org won't approve them
  • Workplace restrictions — Corporate firewalls or network policies block api.anthropic.com
  • Regional availability — Claude API isn't available in your region, but ChatGPT is
  • Billing separation — You already pay for ChatGPT Plus/Team and don't want a second AI subscription

HijackClaw 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.

How It Works

  1. Sign in with your ChatGPT account (standard OAuth, no passwords stored)
  2. HijackClaw spins up a local Anthropic-compatible proxy on 127.0.0.1
  3. Claude Code launches in a managed terminal with ANTHROPIC_BASE_URL pointed at the local proxy
  4. Requests are translated from Claude's Messages API format to the Codex subscription wire protocol and sent over WebSocket (with SSE fallback)

Your auth tokens are stored locally in ~/.hijackclaw/auth.json and refresh automatically — no browser needed after the initial login.

Quick Start

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

CLI Commands

| 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 |

Configuration

Config lives at ~/.hijackclaw/config.json:

{
  "port": 8082,
  "model": "gpt-5.4",
  "smallFastModel": "gpt-5.4-mini"
}

Architecture

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:

  • Shell hook conditionally exports ANTHROPIC_* env vars only when the proxy is alive (nc -z guard)
  • When the proxy is down, Claude Code works normally against Anthropic
  • Auth tokens stored locally with automatic refresh
  • WebSocket transport with automatic SSE fallback and 30s timeout
  • Full tool use support (function calls + results round-trip)

Development

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

Current Limitations

  • Unsupported Anthropic features (e.g. image content blocks) fail explicitly rather than degrading silently

Disclaimer

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.

License

MIT