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

opencode-for-business

v1.0.0

Published

AI-powered development tool

Readme


📖 Introduction

OpenCode Sentinel is a security-enhanced version of OpenCode, specifically designed for development environments within corporate intranets or offline networks.

Compared to the original version, it allows you to connect only to private AI servers, completely cutting off external network access. This not only ensures that code data absolutely never leaves the intranet but also completely resolves application freezes caused by unstable external network connections.

Why Choose Sentinel?

  • 📦 Offline Ready: Provides a one-click packaging tool that pre-downloads all dependencies, allowing you to simply copy the package to an intranet machine, unzip, and run.
  • 🛡️ Strict Access Control: Supports a "whitelist" mode, allowing you to force the application to only connect to internal AI services, blocking all other insecure network requests.
  • Zero Lag: Optimized network connection logic with intelligent timeout and retry mechanisms ensures the interface never freezes due to network jitter.
  • 🏢 Private Model Support: Seamlessly integrates with enterprise private deployments of DeepSeek, vLLM, Ollama, and other large model services.

Version Info: Based on anomalyco/opencode v1.1.28 (commit dac7357).

👉 View Detailed Changelog

🚀 Offline Deployment Workflow

This project provides a one-click packaging tool, allowing you to complete deployment in an isolated environment in just three steps.

1. Prepare Build Environment

On a machine with internet access (Windows/macOS/Linux), install the basic dependencies:

git clone https://github.com/oneoflzx/opencode-sentinel.git; cd opencode-sentinel

2. Generate Offline Package

Run the packaging script on the internet-connected machine to automatically pull all dependencies and generate a self-contained installation package:

bun offline-scripts/pack.ts

🎉 Upon success, an opencode-offline.tar.gz file will be generated in offline-scripts/ directory.

3. Install in Target Environment

Transfer opencode-offline.tar.gz to the target host and extract it. Run the corresponding installation script based on your operating system (the script automatically configures the Node.js environment and PATH):

| OS | Command | Note | | :--- | :--- | :--- | | Linux / macOS | ./install.sh | Recommended to run with bash | | Windows | .\install.bat | Or run install.ps1 with PowerShell |

Directory structure after extraction:

dir/
├── install.sh    # Linux/macOS install script
├── install.bat   # Windows install script
├── deps/         # Offline dependencies
├── bin/          # Executable binaries
└── node/         # Built-in Node.js environment

⚙️ Configuration Guide

Before the first run, configure security policies and model access in ~/.config/opencode/opencode.json.

Core Configuration Example

{
  "$schema": "https://opencode.ai/config.json",
  "network": {
    "policy": "whitelist",
    "whitelist": [
      "my-private-llm.com"
    ]
  },
  "provider": {
    "my_provider": {
      "options": {
        "baseURL": "https://my-private-llm.com/v1",
        "apiKey": "sk-private-key"
      },
      "models": {
        "qwen3-32b": { "name": "Qwen3-32B" }
      }
    }
  }
}

Configuration Options

Network Policy (network)

  • policy:
    • allow-all: Allow all outbound connections (not recommended for sensitive environments).
    • deny-all: Deny all outbound connections.
    • whitelist: Recommended. Only allow access to domains in the whitelist.
  • whitelist: Array of domain strings, supporting exact matches and subdomain matches.

Model Provider (provider)

Follows the standard OpenCode configuration format.


▶️ Run

After installation and configuration, start the application directly:

# Ensure environment variables are loaded (or restart terminal)
opencode

📚 Documentation