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

@alialf/copilot-adapter

v0.1.0

Published

Secure local GitHub Copilot adapter for Codex and Claude Code

Readme

Copilot Adapter

Use GitHub Copilot models in Codex and Claude Code through a local adapter. @alialf/copilot-adapter translates the APIs used by those clients into official @github/copilot-sdk sessions.

The adapter runs only on your computer, binds to 127.0.0.1, and limits each process to the project you choose.

Requirements

  • Node.js 22.12 or newer
  • A GitHub Copilot Business or Enterprise seat
  • GitHub Copilot CLI enabled by your organization
  • GitHub CLI authentication (gh auth login)
  • Codex or Claude Code

Quick start

Install the adapter and check your setup:

npm install --global @alialf/copilot-adapter
copilot-adapter doctor

Start it from the project you want your client to access:

cd /path/to/your/project
copilot-adapter start --cwd "$PWD" --policy read-only

Keep that terminal open. In another terminal, confirm that the adapter is running and list the models available to your Copilot account:

copilot-adapter status --models

Then connect a client.

Codex CLI

copilot-adapter setup codex --scope profile
codex --profile copilot

Use /model and /reasoning inside Codex to change the model and reasoning level.

Codex Desktop or VS Code

copilot-adapter setup codex --scope global

Restart Codex Desktop or reload VS Code, then open the same project used with --cwd. Only local tasks can connect to the adapter.

Claude Code CLI

copilot-adapter setup claude-cli
claude

Run /status to confirm the base URL is http://127.0.0.1:4141. Use /model and /effort to change settings.

Claude Code for VS Code

copilot-adapter setup claude-vscode

Reload VS Code, then open the same project used with --cwd.

For Claude Desktop and detailed setup instructions, see the client setup guide.

Access policies

The policy controls which tools Copilot may use inside the selected project:

  • chat: no project tools
  • read-only: read, search, and list files (default)
  • workspace-write: also create and edit files
  • unsafe-shell: also run shell commands
  • unsafe-all: also use configured MCP servers

Start with read-only. Use the unsafe-* policies only when you trust the client and understand the additional access.

Useful commands

copilot-adapter status --models   # Check the adapter and available models
copilot-adapter models sync       # Refresh Codex models after a policy change
copilot-adapter token             # Print the local client token
copilot-adapter token --rotate    # Replace the local client token
copilot-adapter --help            # Show all commands

Run a setup command with --remove to undo its changes, for example:

copilot-adapter setup codex --scope profile --remove
copilot-adapter setup claude-cli --remove

Security and limitations

  • The adapter accepts connections only from localhost. Do not expose it through a tunnel or public proxy.
  • One adapter process serves one project. Use another port and process for a second project.
  • The local bearer token protects the adapter; it is not a GitHub token.
  • Codex and Claude permission dialogs do not control tools run by the Copilot SDK. The adapter policy does.
  • unsafe-shell is not a hardened sandbox.

Documentation

License

MIT. The protocol translation layer is based on the MIT-licensed copilot-sdk-proxy.