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

claude-code-onprem

v0.7.0

Published

Interactive setup wizard for on-prem Claude Code with CCS profile management and web search providers

Readme

Run Claude Code with On Premise LLMs

npm version CI

Super easy setup wizard for using Claude Code with on-premise LLMs.

Your original Claude Code configs remain intact and available while a separate config profile for on-premise LLMs will be added with CCS (Claude Code Switch). This ensures that you can keep running claude as you know it, while having a separate ccs onprem command for running Claude Code with on-premise LLMs.

Disclaimer: This is an unofficial community project. We are not affiliated with Anthropic or Claude Code in any way. We're just enthusiastic community members who love building with Claude Code and focus on privacy / sovereign AI. Read more on onprem.ai.

Quick Start

  1. Install prerequisites (if not already installed):
  • Claude Code >= 2.1.72
  • Node.js >= 18 (install via fnm - fast, cross-platform)
  1. Run setup wizard:
npx claude-code-onprem@latest
  1. Start Claude Code with On-prem LLM:
ccs onprem

What It Configures

  1. CCS Profile - Creates ~/.ccs/onprem.settings.json with your LLM endpoint
  2. Web Search MCPs - Optionally configures advanced Exa and/or Brave search MCPs
  3. CCS Config - Also optionally disables built-in CCS websearch when advanced search MCPs are installed

Supported On-Prem LLM Servers

Any LLM server with Anthropic API compatibility (/v1/messages endpoint) works. Popular options:

Important: Make sure to install a version that supports the Anthropic API format. Older versions only support OpenAI-compatible endpoints.

| Server | Min Version | Pros | Cons | |--------|-------------|------|------| | Ollama | v0.14.0+ | Easy setup, runs anywhere | Lower throughput, not for production | | LM Studio | v0.4.1+ | GUI, easy model management | Desktop only, not for production | | vLLM | v0.17.0+ | High throughput, production-ready | More complex setup |

Why Custom Web Search?

Strong web search is critical for on-prem AI coding. On-premise LLMs are typically smaller than cloud-hosted trillion-parameter models and have less factual knowlege memorized in their weights. Solid web search with proper skill instructions acts as a form of RAG, compensating for smaller model sizes by providing access to up-to-date documentation and code examples.

Why custom search plugins? The built-in CCS web search is standardized and limited. We chose two providers: Exa for code-focused search and Brave for privacy-conscious general search. Both search plugins expose their full MCP capabilities with usage instructions (skills) optimized for agentic coding. This made a significant difference for us, though these search plugins are entirely optional.

What about privacy? With on-prem LLMs, your source code never leaves your infrastructure - that's the whole point. Web search only exposes search queries, which typically relate to external libraries and public APIs rather than your proprietary code patterns. Yes, search providers can see which technologies you're working with, which may be compliance-relevant in certain contexts. But the critical risks like source code exposure and potential credential leaks are practically eliminated when LLM processing stays on-premises.

Web Search Providers

| Provider | Strengths | |----------|-----------| | Exa | Code search, API docs | | Brave | Privacy, news/media |

CLI Options

The setup wizard supports command-line arguments for automation and prefilling values:

| Flag | Description | |------|-------------| | --llm-url=<url> | LLM endpoint URL | | --llm-key=<key> | LLM API key | | --model=<name> | Model name (skips model selection) | | --exa-key=<key> | Exa API key | | --brave-key=<key> | Brave API key | | -y, --yes | Non-interactive mode (auto-approve all prompts) |

Examples

# Interactive with prefilled values
npx claude-code-onprem@latest --llm-url=http://localhost:8000/v1

# Fully non-interactive setup
npx claude-code-onprem@latest \
  --llm-url=http://localhost:8000/v1 \
  --llm-key=your-llm-api-key \
  --model=qwen3-coder-next-80b \
  --exa-key=your-exa-api-key \
  -y

In non-interactive mode (-y):

  • Uses provided values without prompting
  • Auto-selects web search providers based on which API keys are provided
  • Auto-selects the first available model if --model is not specified
  • Keeps existing plugin installations

License

MIT