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

omnicodex

v1.1.5

Published

CLI launcher for Claude Code with interactive model selection via Antigravity Proxy

Readme

Omnicodex

npm version License: MIT Node.js Version

A minimal, lightning-fast CLI launcher and MCP middleware for Claude Code with interactive model selection and dynamic mid-session model switching via an Antigravity proxy.

 ░███░ █░░░█ █░░░█ ░███░ ░████ ░███░ ████░ █████ █░░░█
 █░░░█ ██░██ ██░░█ ░░█░░ █░░░░ █░░░█ █░░░█ █░░░░ ░█░█░
 █░░░█ █░█░█ █░█░█ ░░█░░ █░░░░ █░░░█ █░░░█ ████░ ░░█░░
 █░░░█ █░░░█ █░░██ ░░█░░ █░░░░ █░░░█ █░░░█ █░░░░ ░█░█░
 ░███░ █░░░█ █░░░█ ░███░ ░████ ░███░ ████░ █████ █░░░█

    Claude Code launcher  ·  powered by Antigravity

│
◇  Proxy is running
│
◇  10 models available
│
◆  Choose a starting model
│  ○ Claude Opus 4.6 (Thinking)        (Anthropic)
│  ○ Claude Sonnet 4.6 (Thinking)      (Anthropic)
│  ● Gemini 3.6 Flash (High)           (Google)
│  ○ Gemini 3.6 Flash (Medium)         (Google)
│  ○ Gemini 3.6 Flash (Low)            (Google)
│  ○ Gemini 3.1 Pro (High)             (Google)
│  ○ GPT-4o                            (OpenAI)
└

Key Features

  • 🎯 Interactive Model Selection: Select from available Google, Anthropic, and OpenAI models with color-coded provider previews.
  • Auto Proxy Initialization: Automatically checks and starts the Antigravity proxy (acc start) if not running.
  • 🤖 Built-in MCP Server: Auto-registers omnicodex Model Context Protocol (MCP) server into Claude Code settings with pre-approved permissions.
  • 🔄 Dynamic Mid-Session Switching: Switch models mid-conversation without losing context or restarting Claude Code via CLI, natural language chat, or the /model command.
  • 🛠️ Middleware Routing Proxy: Local proxy server dynamically swaps model endpoints on-the-fly and ensures seamless API compatibility.

Quick Start

Install globally via npm:

npm install -g omnicodex

Launch instantly using omnicodex or the short alias omni:

omnicodex
# or short alias:
omni

(Or run instantly without global installation: npx omnicodex)


Requirements

| Requirement | Version | Purpose | |---|---|---| | 🟢 Node.js | ≥ 18 | JavaScript runtime | | 🤖 Claude Code | latest | CLI tool launched by omnicodex | | ⚡ Antigravity Claude Proxy (acc) | latest | Local proxy providing LLM endpoints |


Usage & Commands

Interactive Launch & Quick Flags

omnicodex                 # Launch with interactive model picker
omni                      # Short alias
omnicodex -m <model-id>   # Direct launch (e.g. omnicodex -m gemini-pro-agent)
omnicodex -q              # Launch without displaying the ASCII banner

Management Commands

omnicodex switch          # Interactive mid-session model switcher picker
omnicodex set <model-id>  # Switch active session model directly (e.g. omnicodex set opus)
omnicodex current         # Display active session model
omnicodex list            # List all available models & providers
omnicodex status          # Show upstream proxy & middleware status
omnicodex --help          # Show help and command summary
omnicodex --version       # Display version

Mid-Session Model Switching (Zero Context Loss)

Need to switch from Sonnet to Gemini 3.1 Pro or Claude Opus mid-session? You can change models instantly without losing conversation state:

Option 1: Direct Natural Language in Claude Chat (MCP)

Thanks to the auto-configured MCP server, you can tell Claude Code directly:

  • "Switch model to Gemini 3.1 Pro"
  • "Use Opus model for this task"
  • "Switch model to Flash High"
  • "What model am I currently using?"

Option 2: Native /model Command

Inside Claude Code chat, type /model:

  • Opus $\rightarrow$ maps to Gemini 3.1 Pro (gemini-pro-agent)
  • Sonnet $\rightarrow$ maps to Claude Sonnet 4.6 (claude-sonnet-4-6)
  • Haiku $\rightarrow$ maps to Gemini 3.6 Flash (gemini-3.6-flash-high)

Option 3: Second Terminal

Run from any terminal window:

omnicodex switch
# or set directly:
omnicodex set gemini-pro-agent

⚙️ How It Works Behind The Scenes

  1. Proxy Check: Verifies if the Antigravity proxy is active on port 8080 (starts acc start automatically if offline).
  2. Model Discovery: Queries http://localhost:8080/v1/models for available provider models.
  3. Interactive Selection: Presents a terminal picker powered by @clack/prompts.
  4. MCP & Settings Injection: Updates ~/.claude/settings.json with middleware port, token variables, MCP server declaration, and pre-approved tool permissions.
  5. Middleware Server: Spawns a lightweight local HTTP middleware that dynamically rewrites model requests to the active LLM.
  6. Launcher: Executes Claude Code CLI seamlessly attached to your active terminal.

Interactive Navigation

| Key | Action | |---|---| | / | Navigate model options | | Enter | Select model and launch | | Esc / Ctrl+C | Exit picker |


Development & Building

git clone https://github.com/lokeshhh-10/omnicodex.git
cd omnicodex

npm install          # Install dependencies
npm run build        # Build TypeScript output (dist/)
npm run dev          # Rebuild automatically on change
npm run test         # Run Vitest test suite
npm run lint         # Check formatting and linting

Troubleshooting

  • omnicodex: command not found
    Ensure global npm binaries are in your system PATH:
    export PATH="$HOME/.local/share/npm/bin:$PATH"
  • Proxy not running / acc missing
    Verify Antigravity CLI is installed and executable via acc --version.
  • Permission Prompt for MCP tools in Claude Code
    OmniCodex automatically adds tool permissions to ~/.claude/settings.json. If prompted, select "Always allow".

License

MIT