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

openhorizon-cli

v2.0.1

Published

Official CLI for OpenHorizon — run Claude Code and Codex on local models served by Sapient

Readme

OpenHorizon CLI

Run Claude Code and Codex on local models served by Sapient — on your own machine, with no API key.

GitHub: SkidGod4444/openhorizon · packages/cli

Installation

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/SkidGod4444/openhorizon/main/packages/cli/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/SkidGod4444/openhorizon/main/packages/cli/install.ps1 | iex

via npm / bun / pnpm (all platforms)

npm install -g openhorizon-cli

Quick Start

openhorizon

That opens a menu: launch Claude Code, launch Codex, switch model, or update. On first launch the CLI:

  1. Offers to install Sapient, Claude Code or Codex if one is missing (it asks first).
  2. Starts the Sapient server if it is not already running.
  3. Picks a model for your machine and downloads it once.
  4. Starts the agent, pointed at your local model.

Commands

| Command | Description | |---|---| | openhorizon | Interactive menu | | openhorizon claude [-- args] | Run Claude Code on a local model | | openhorizon codex [-- args] | Run Codex on a local model | | openhorizon model [name] | Choose the Sapient model both agents use | | openhorizon remove [name] | Delete a downloaded model from this device (alias: unload) | | openhorizon update | Update Sapient, Claude Code, Codex and this CLI |

Anything after -- is passed to the agent unchanged:

openhorizon claude -- -p "explain this repo"
openhorizon codex -- exec "explain this repo"

Switching models

| Where | How | |---|---| | Saved default, both agents | openhorizon model (pick from a list) or openhorizon model qwen2.5-3b-q4 | | One session | openhorizon claude --model qwen2.5-3b-q4 / openhorizon codex --model qwen2.5-3b-q4 | | Inside Claude Code | /model openhorizon/qwen2.5-3b-q4 |

A model that is not downloaded yet is pulled automatically. Coding agents need a model whose chat template supports tool calls. The built-in choices are the Qwen2.5 family (1.5B / 3B / 7B); a model without tool support returns a clear error from Sapient instead of answering.

Removing models

openhorizon remove                    # pick from a list
openhorizon remove qwen2.5-3b-q4      # asks before deleting
openhorizon remove qwen2.5-3b-q4 -y   # no question

Models you have used through this CLI are also removed automatically once they go more than 7 days without being used again; the CLI checks when you open it and tells you what it freed. The model you are about to use is never removed. Models you pulled with Sapient for other work, and never used through this CLI, are left alone.

How it works

Claude Code speaks the Anthropic Messages API and Codex speaks the OpenAI Responses API. Sapient serves OpenAI chat completions. The CLI runs a small translator on 127.0.0.1 for the lifetime of the agent and converts between them, including streaming and tool calls.

Your Claude Code and Codex setup is left alone. The agent is started as a child process and pointed at the translator with environment variables and command-line flags for that one run, so plain claude and codex keep working exactly as before.

The one exception is folder trust: launching in a folder marks that folder as trusted, so the agent does not stop to ask "Do you trust this folder?". For Claude Code that is one entry in ~/.claude.json; for Codex it is a flag on that run and nothing is written.

Updates

Sapient, Claude Code and Codex are checked for updates at most once a day when you launch, and updated quietly. openhorizon update updates all three and this CLI immediately. To turn that off:

export OPENHORIZON_NO_UPDATE=1

Environment

| Variable | Purpose | Default | |---|---|---| | SAPIENT_URL | Where the Sapient server listens | http://localhost:11435 | | OPENHORIZON_MODEL | Model for this shell, overriding the saved one | — | | OPENHORIZON_NO_UPDATE | Disable automatic updates | — | | OPENHORIZON_DEBUG | Log translated requests to ~/.openhorizon/translator.log | — |

Lean mode

openhorizon claude starts Claude Code in a lean session: four tools (Bash, Read, Edit, Write) and none of your CLAUDE.md, hooks, skills or MCP servers. Sapient re-reads the whole prompt on every turn, and Claude Code's full prompt is about 15,000 tokens, most of it tool descriptions a small model does not need. Measured on a 16 GB Mac with the 1.5B model, a turn drops from about 28 seconds to about 3.

To send the full prompt anyway:

openhorizon claude --full

What to expect from small models

Local models in the 1–7B range are far weaker than the hosted models these agents were designed for. They can answer questions and make simple tool calls; multi-step coding tasks will often go wrong. Codex still sends its full prompt (about 7,500 tokens), so each Codex turn takes around ten seconds on a laptop.

Development

bun install
bun test
bun run build

License

MIT