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

@jiayunxie/aerial

v0.2.6

Published

Local GitHub Copilot proxy for Codex CLI and Claude Code with smart HTTP(S)/SOCKS5 upstream proxy support.

Readme

Aerial

CI npm version

Aerial lets Codex CLI and Claude Code use your own GitHub Copilot subscription through a local proxy on your machine.

It runs locally on 127.0.0.1:18181. Your GitHub token and Aerial key stay on your machine. It is built for personal local use, not for public hosting or account sharing.

Install

Requirements:

  • Node.js 20.18.1+
  • A GitHub account with an active Copilot subscription
  • Codex CLI and/or Claude Code installed
npm install -g @jiayunxie/aerial

Quick Start

If you are on a restricted network or Claude models are missing from aerial probe, enable Aerial's upstream proxy mode first:

aerial proxy enable

proxy enable discovers local HTTP(S) and SOCKS5 proxies from macOS network settings, PAC files, environment hints, and common local proxy ports, then validates the route before saving anything.

  1. Sign in to GitHub:
aerial login
  1. Configure the client you use:
# Codex CLI
aerial setup codex

# Claude Code
aerial setup claude

During setup, Aerial reads your Copilot model list, shows the models that work for that client, and asks which one to write into the client config. Codex uses models with the responses route. Claude Code uses models with the messages route.

  1. Start Aerial in the background:
aerial service install
  1. Check everything from one place:
aerial status

If Aerial prints a hint, follow it before expecting the background service to work after reboot.

Restart Codex CLI or Claude Code if either one was already open while you ran setup.

What Setup Changes

aerial setup codex updates ~/.codex/config.toml.

  • It points Codex at http://127.0.0.1:18181/v1.
  • It uses Codex's command-backed auth helper so Codex can read the local Aerial key automatically.
  • It creates a timestamped backup before writing.

aerial setup claude updates ~/.claude/settings.json.

  • It points Claude Code at http://127.0.0.1:18181.
  • It configures an API key helper so Claude Code can read the local Aerial key automatically.
  • It creates a timestamped backup before writing.

You normally do not need to create, copy, or export an API key yourself.

Choosing A Model

The easiest path is to let setup show the compatible models and ask for reasoning effort:

aerial setup codex
aerial setup claude

To skip the prompts:

aerial setup codex --model <responses-model-id> --effort <low|medium|high|xhigh|max>
aerial setup claude --model <messages-model-id> --effort <low|medium|high|xhigh|max>

To inspect the full model matrix:

aerial probe

Upstream Proxy

Aerial can route its own GitHub and Copilot upstream traffic through a local HTTP(S) or SOCKS5 proxy while keeping the Codex/Claude client-facing server on 127.0.0.1:18181.

aerial proxy status   # show direct/proxy egress IP, region, and Copilot route counts
aerial proxy enable   # auto-discover and validate a working local proxy
aerial proxy disable  # return upstream traffic to direct mode

This is useful when Copilot exposes different model routes by region. In direct mode, proxy status reports the direct egress. In enabled mode, it reports the selected local proxy endpoint, proxied egress, and whether the messages route is visible for Claude Code. SOCKS5 endpoints, including Shadowsocks PAC entries, are bridged internally; users do not need to find or configure an HTTP proxy port by hand.

Advanced override: AERIAL_UPSTREAM_PROXY can be set to a bare http://, https://, socks://, socks5://, or socks5h:// proxy endpoint. Path-prefixed proxy URLs are intentionally ignored.

Daily Commands

aerial status           # setup, login, service, and health summary
aerial proxy status     # upstream proxy mode, egress, and route visibility
aerial service install  # install and start the background service
aerial doctor           # local diagnostics
aerial teardown          # restore client configs and uninstall the service

aerial start is for foreground debugging in the current terminal. Most users should use aerial service install.

Advanced service lifecycle commands are documented in docs/usage.md.

Troubleshooting

  • Missing GitHub token: run aerial login.
  • Invalid or missing Aerial API key: rerun aerial setup codex or aerial setup claude, then restart the client.
  • No models listed during setup: run aerial login first, then retry setup.
  • Claude models or the messages route are missing: run aerial proxy enable, then aerial probe.
  • Port conflict on 18181: run aerial status to see whether another process is using the port.
  • Need to undo setup: run aerial teardown, or restore one client with aerial setup restore <codex|claude> --latest.

Notes

  • macOS background service support uses a user LaunchAgent.
  • Windows background service support uses a user Task Scheduler task.
  • Linux service management is not built in yet; run aerial start or use your own init system.
  • Copilot inference routes are an observed compatibility target and may change upstream.

More details: docs/usage.md.