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

v0.1.4

Published

Install OpenAI Codex CLI natively on Termux (Android) — no proot, no containers. Official static-musl codex binaries with a local DNS proxy + TLS bridge.

Readme


Requirements

  • Termux from F-Droid (Play Store builds are outdated)
  • aarch64 (ARM64) device — the only architecture Codex ships a Linux build for
  • An internet connection for the ~85 MB download
  • nodejs (installed automatically if missing — needed for the DNS proxy)

Installation

One line — zero prerequisites:

curl -fsSL https://raw.githubusercontent.com/rexroze/codex-termux/main/install.sh | sh

Or via npm (needs nodejs first):

pkg install nodejs-lts
npm i -g codex-termux

[!TIP] codex is on your PATH immediately — the first run downloads the official static-musl binary (~85 MB), verifies its sha256 checksum, and configures your shell (bash, zsh, or fish).

Usage

codex login          # or: export OPENAI_API_KEY=...
codex

The launcher starts a tiny local DNS proxy on demand (Android has no /etc/resolv.conf, which would otherwise break codex's DNS lookups) and points codex at Termux's CA bundle for TLS.

Updating

Updates are manual by design — the update check on startup is disabled (check_for_update_on_startup = false in ~/.codex/config.toml), so new upstream releases don't get pulled automatically. When a new Codex version ships, re-run the installer:

sh install.sh        # or the curl one-liner again — always fetches latest

Pin a specific version with sh install.sh -v rust-v0.148.0. codex update is intentionally not the supported path (it fetches builds outside this verified install).

How it works

Codex ships as a fully static musl binary — it runs on Termux directly, no glibc bridge. Two Termux-specific problems are solved by the launcher:

  1. DNS: Android's /etc is /system/etc (read-only, no resolv.conf), so the static binary's DNS lookups fail. The launcher starts a local HTTP proxy (Node) that resolves hostnames through Android's own resolver and routes codex through it via HTTPS_PROXY.
  2. TLS: the static binary can't find Android's CA store, so the launcher sets SSL_CERT_FILE=$PREFIX/etc/tls/cert.pem.

A first-run ~/.codex/config.toml sets sandbox_mode = "danger-full-access" (codex's bubblewrap sandbox can't run on Android) and check_for_update_on_startup = false. Full technical deep dive: docs/HOW-IT-WORKS.md.

Links