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

oxcode-cli

v0.1.0

Published

Ox — the open coding agent. A terminal AI pair-programmer powered by ox-alpha via OpenRouter.

Downloads

363

Readme

Ox

The open coding agent. A terminal-native AI pair-programmer in the spirit of Claude Code, powered by the ox-alpha model through OpenRouter.

npm i -g oxcode-cli
cd your-project
ox

No account. No subscription. No key hunting.

What it does

Ox lives in your terminal, reads your codebase, edits files, runs commands, searches, tracks its own progress, asks you questions when stuck, and verifies its work — the full agentic loop:

  • Interactive REPL — streaming answers, message queueing, Esc to interrupt, per-project session history, Shift+Tab permission modes (manual → accept edits → plan → bypass).
  • Tools — Bash (with background tasks + KillShell), Read (line-numbered, images), Write, Edit (exact-string replace), Glob, Grep (ripgrep fast-path), WebFetch, TodoWrite, AskUserQuestion, plus any MCP tool.
  • Subagents — isolated context windows for exploration: built-in Explore and general-purpose, or define your own in .ox/agents/*.md.
  • Memory — AGENTS.md / OX.md loaded from your home dir and every ancestor of your project, with @import support (CLAUDE.md picked up as a compatibility fallback).
  • Skills — custom slash commands from .ox/commands/*.md or .claude/commands/*.md with $ARGUMENTS substitution and allowed-tools.
  • Hooks — shell-command policy on SessionStart/End, UserPromptSubmit, PreToolUse (allow/deny/ask), PostToolUse and Stop events, configured in settings files.
  • MCP — connect stdio servers via .mcp.json or ox mcp add; their tools show up as mcp__server__tool.
  • Headless — ox -p "…" for scripts and CI, with --output-format text|json|stream-json, stdin piping, --max-turns, allow/deny tool lists.

Model access

Ox talks OpenRouter's chat-completions API. Endpoint resolution:

  1. OX_BASE_URL env or gateway in settings (advanced),
  2. your own key (OX_API_KEY > OPENROUTER_API_KEY > ~/.ox/key) against OpenRouter directly,
  3. otherwise the bundled free gateway.

Model selection: OX_MODEL env > model setting > default stealth/ox-alpha.

Settings

Precedence: flags > .ox/settings.local.json > .ox/settings.json > ~/.ox/settings.json.

// .ox/settings.json
{
  "model": "stealth/ox-alpha",
  "permissions": {
    "defaultMode": "default",
    "allow": ["Bash(git status)", "Bash(npm run test *)"],
    "deny": ["Read(./.env)"],
    "additionalDirectories": []
  },
  "env": {},
  "autoCompactTokens": 160000
}

Permission rules use Tool(specifier) grammar: Bash(git diff *) (prefix), Edit(/src/**) (glob), WebFetch(domain:example.com).

Sessions

Transcripts are append-only JSONL under ~/.ox/projects/<project>/. Continue where you left off:

ox -c              # most recent session in this project
ox -r <session-id> # resume by id (any project)

In-session: /resume lists recent sessions, /export writes markdown, /compact summarizes long conversations (also runs automatically near the context limit).

Slash commands

/help /init /compact /clear /model /resume /permissions /memory /config /status /cost /add-dir /agents /hooks /mcp /doctor /export /exit

Development

git clone https://github.com/theabecaster/ox && cd ox
npm install
npm run check   # typecheck + lint + test + build

License

AGPL-3.0 — forks must stay open. See SECURITY.md for key-handling notes.