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

codex-paperclip

v0.2.11

Published

Codex Paperclip gateway and onboarding CLI

Downloads

972

Readme

ko-fi

codex-paperclip

Standalone Codex gateway and Paperclip onboarding CLI.

It provides two things:

  • a remote Codex gateway compatible with Paperclip's openclaw_gateway adapter
  • a simple onboarding command that accepts a Paperclip invite URL and registers the agent automatically

Install

Global install:

npm install -g codex-paperclip

One-shot with npx:

npx --yes codex-paperclip --help

Requirements

  • Node.js 20+
  • Tailscale installed if you want automatic publish of the gateway URL
  • access to a Codex-capable host
  • a Paperclip invite URL for onboarding

codex-paperclip can:

  • install @openai/codex automatically if codex is missing
  • run codex login --device-auth if login is required
  • generate and persist a gateway token automatically

Quick Start

Install the gateway as a service:

codex-paperclip install-service

If you run as a normal user, it installs a user service.

Useful commands:

systemctl --user status codex-paperclip-gateway.service
systemctl --user restart codex-paperclip-gateway.service
journalctl --user -u codex-paperclip-gateway.service -f

If you run as root, it installs a global service and uses system paths:

systemctl status codex-paperclip-gateway.service
systemctl restart codex-paperclip-gateway.service
journalctl -u codex-paperclip-gateway.service -f

Connect the agent to Paperclip:

codex-paperclip connect \
  --invite-url="https://paperclip.example/api/invites/token/onboarding.txt" \
  --agent-name="Codex Gateway"

Get the Invite URL

In Paperclip, go to Company -> Settings and click Generate OpenClaw Invite Prompt.

Generate OpenClaw Invite Prompt button

Paperclip will show a prompt like this:

You're invited to join a Paperclip organization.

The URLs you should try are:
- https://clawdbot.tail13fff8.ts.net/api/invites/pcp_invite_mzq0gqip/onboarding.txt

Copy the onboarding.txt URL and pass it directly to codex-paperclip connect:

codex-paperclip connect \
  --invite-url="https://clawdbot.tail13fff8.ts.net/api/invites/pcp_invite_mzq0gqip/onboarding.txt" \
  --agent-name="Codex Gateway"

Commands

Show help:

codex-paperclip --help
codex-paperclip connect --help

Run the gateway directly without systemd:

codex-paperclip gateway \
  --gateway-port=18789 \
  --gateway-host=127.0.0.1

Tokens and State

If you do not pass --gateway-token, the CLI generates one and stores it in:

~/.config/codex-paperclip/gateway.json

It also writes:

  • ~/.config/codex-paperclip/gateway.env
  • ~/.codex-paperclip/paperclip-join-state.json
  • ~/.codex-paperclip/paperclip-claimed-api-key.json

When running as root, service-related paths use system locations such as:

  • /etc/codex-paperclip
  • /var/lib/codex-paperclip
  • /etc/systemd/system/codex-paperclip-gateway.service

Tailscale

If there is no existing tailscale serve configuration for the gateway, connect can try to publish it automatically.

Typical local health endpoint:

curl -fsS http://127.0.0.1:18789/health

Package Notes

This repository contains the standalone packaged runtime for codex-paperclip, intended to be distributed and used independently from the original development workspace.