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 🙏

© 2025 – Pkg Stats / Ryan Hefner

glimx

v1.2.2

Published

AI-powered terminal coding agent with free models, MCP support, and smart permissions. Your intelligent coding companion in the terminal.

Readme

✨ Glimx - AI-Powered Terminal Coding Agent

Glimx Home Screen

npm version License: MIT Downloads

The modern AI coding assistant that lives in your terminal

🌐 Website🚀 Quick Start📖 Documentation🆓 Free Models💬 Community


🎯 What is Glimx?

Glimx is a powerful AI-powered coding agent designed for developers who love the terminal. Built on OpenCode's proven architecture with enhanced features, Glimx brings AI assistance directly to your command line without expensive API costs.

✨ Key Features

  • 🆓 Free AI Models - Works with Qwen, DeepSeek, Mistral via OpenRouter, Groq, and Cerebras
  • 🔌 5 Built-in MCP Servers - Filesystem, Git, Sequential Thinking, Fetch, Memory
  • 🧠 Sequential Thinking - AI breaks down complex problems step-by-step
  • 🔒 Smart Permissions - Granular control over dangerous operations
  • 💾 Memory System - Persistent knowledge graph across sessions
  • 🎨 Beautiful UI - Modern terminal aesthetics with 20+ themes and animated elements
  • Lightning Fast - Powered by Bun runtime
  • 🔧 Developer Tools - LSP support, templates, watch mode, and more

📸 Screenshots

Interactive Chat Session

Glimx Chat


🚀 Quick Start

Installation

npm install -g glimx

Get Free API Keys

Choose one (or more) free providers:

  • Groq (Recommended): https://console.groq.com/keys - 1,000 req/day, ultra-fast
  • OpenRouter: https://openrouter.ai/keys - 20 req/min, multiple models
  • Cerebras: https://cloud.cerebras.ai/console - Free tier available

Configure

# Set your API key
export GROQ_API_KEY="your-groq-key-here"

# Add to shell profile for persistence
echo 'export GROQ_API_KEY="your-key"' >> ~/.zshrc

Run

# Start with free model
glimx --model groq/qwen-32b

# Or just run interactive mode
glimx

# Run with a message
glimx run "explain this code"

# Pipe input
git diff | glimx run "explain changes" -

💡 Usage Examples

Basic Commands

# Interactive chat
glimx run "create a REST API with Express"

# Pipe from other commands
ps aux | grep node | glimx run "which process uses most memory?" -
cat error.log | glimx run "find the root cause" -

# File operations
glimx diff old.js new.js -m "explain changes"
glimx goto src/index.ts:42 -m "explain this function"

# Project scaffolding
glimx init react-vite my-app
glimx init python-fastapi my-api

# Watch mode
glimx watch src/ --test

Inside Glimx Session

/chat        # Start new chat
/sessions    # Browse history
/models      # Switch AI model
/commands    # Show all commands
/compact     # Summarize session to save tokens
/undo        # Undo last message
/help        # Show help

🆓 Free AI Models

Glimx supports multiple free AI models:

| Model | Provider | Best For | Speed | Context | |-------|----------|----------|-------|---------| | Qwen 3 32B | Groq | Coding | ⚡⚡⚡ | 32K | | DeepSeek V3.1 | OpenRouter | Reasoning | ⚡⚡ | 64K | | Llama 3.3 70B | Groq/Cerebras | General | ⚡⚡⚡ | 128K | | Qwen 3 235B | Cerebras | Complex Tasks | ⚡⚡ | 128K | | Mistral Small | OpenRouter | Balanced | ⚡⚡ | 32K |

Configure in ~/.opencode/config.json:

{
  "model": "groq/qwen-32b",
  "provider": {
    "groq": {
      "api": "https://api.groq.com/openai/v1"
    }
  }
}

📖 Full Free Models Guide


🎨 Features

🔒 Smart Permissions

Configure granular permissions for commands:

{
  "permission": {
    "bash": {
      "git push *": "ask",
      "rm -rf *": "deny",
      "npm install *": "ask",
      "*": "ask"
    }
  }
}
  • allow - Auto-execute
  • ask - Require approval (default)
  • deny - Block completely

🔌 MCP Integration

5 pre-configured MCP servers out of the box:

  • Filesystem - Local file operations
  • Git - Repository analysis and operations
  • Sequential Thinking - Step-by-step reasoning
  • Fetch - Web content retrieval
  • Memory - Knowledge graph persistence

Customize in ~/.opencode/config.json:

{
  "mcp": {
    "filesystem": { "enabled": true },
    "git": { "enabled": true },
    "sequential-thinking": { "enabled": true }
  }
}

🏗️ Project Templates

Quick start with pre-configured projects:

glimx init --list                    # List templates
glimx init react-vite my-app        # React + Vite + TailwindCSS
glimx init node-typescript my-api   # Node.js + TypeScript
glimx init python-fastapi backend   # Python + FastAPI

📊 Analytics

Glimx collects anonymous usage data to help us improve the product. This data includes:

  • Command usage statistics
  • Feature adoption rates
  • Performance metrics
  • Error reporting (without sensitive data)

All data is anonymous and cannot be used to identify individual users.

glimx analytics status   # Check current status
glimx analytics disable  # Opt out of analytics
glimx analytics enable   # Opt back in

You can also disable analytics by setting analytics: false in your configuration file:

{
  "analytics": false
}

🔄 Checkpoints & Rollback

Glimx provides powerful checkpoint and rollback functionality to save your progress and revert changes when needed.

# Create a checkpoint
glimx checkpoint create "Before major refactor"

# List checkpoints
glimx checkpoint list

# Rollback to a checkpoint
glimx checkpoint rollback [checkpoint-id]

# Rollback to a specific message
glimx rollback message [message-id]

# List available rollback points
glimx rollback list

📚 Documentation


🆚 Why Glimx?

| Feature | Glimx | GitHub Copilot | Cursor | |---------|-------|----------------|--------| | Price | 🟢 Free (with free models) | 💰 $10/month | 💰 $20/month | | Terminal-based | ✅ | ❌ | ❌ | | Multiple AI Models | ✅ 20+ models | ❌ GPT only | ⚠️ Limited | | MCP Support | ✅ 5 built-in | ❌ | ❌ | | Open Source | ✅ | ❌ | ❌ | | Smart Permissions | ✅ | ❌ | ❌ | | Offline Mode | ⚠️ API required | ❌ | ❌ |


🐛 Troubleshooting

Common Issues

API key not found:

echo $GROQ_API_KEY  # Verify key is set
echo 'export GROQ_API_KEY="your-key"' >> ~/.zshrc
source ~/.zshrc

Permission denied:

cat ~/.opencode/config.json  # Check config
rm ~/.opencode/config.json   # Reset to defaults

MCP server failed:

which uvx  # Check if uvx available
curl -LsSf https://astral.sh/uv/install.sh | sh  # Install uv

📖 Full Troubleshooting Guide


🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

git clone https://github.com/codelabs-poliwangi/glimx-cli.git
cd glimx-cli
bun install
cd packages/opencode
bun run dev

📜 License

MIT License - see LICENSE

Based on OpenCode with significant enhancements.


🌟 Credits


💬 Community


Built with 💜 by CodeLabs Poliwangi

⭐ Star🐛 Report Bug✨ Request Feature