JSPM

  • Created
  • Published
  • Downloads 68
  • Score
    100M100P100Q101533F
  • License MIT

LLM cost optimization plugin for Claude Code - Save up to 90% on AI costs

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@plexor-dev/claude-code-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @plexor-dev/claude-code-plugin

    LLM cost optimization plugin for Claude Code. Save up to 90% on AI costs through intelligent prompt optimization and multi-provider routing.

    Installation

    npm install -g @plexor-dev/claude-code-plugin

    This installs slash commands to ~/.claude/commands/.

    Quick Start

    1. Install the plugin (see above)

    2. Open Claude Code and run:

      /plexor-login
    3. Follow the prompts to authenticate via browser

    4. Set the gateway URL in your terminal:

      export ANTHROPIC_BASE_URL="https://api.plexor.dev/v1/gateway/anthropic"
    5. Restart Claude Code - all prompts are now optimized!

    Commands

    Command Description
    /plexor-login Authenticate with Plexor
    /plexor-status View usage stats and savings
    /plexor-mode Set optimization mode (eco/balanced/quality/passthrough)
    /plexor-provider Force specific provider (auto/claude/deepseek/mistral/gemini)
    /plexor-config Quick config (enable/disable/cache/reset)
    /plexor-settings Advanced settings (API URL, mode, provider)
    /plexor-enabled Enable/disable the proxy
    /plexor-logout Sign out and clear credentials

    How It Works

    Plexor acts as an intelligent gateway between Claude Code and LLM providers:

    Claude Code → Plexor Gateway → Best Provider (Anthropic/DeepSeek/Mistral/Gemini/OpenAI)

    The gateway:

    • Optimizes prompts to reduce token usage
    • Routes requests to the most cost-effective provider
    • Maintains quality based on your selected mode
    • Tracks savings so you can see your ROI

    Optimization Modes

    Mode Savings Best For
    eco 60-90% Development, testing, iteration
    balanced 40-60% Most production workloads
    quality 20-40% Critical responses, customer-facing
    passthrough 0% Debugging, comparison

    Pricing

    • Beta: $1/month (unlimited requests)
    • Savings typically 10-100x the subscription cost

    Configuration

    Settings are stored in ~/.plexor/config.json:

    {
      "version": 1,
      "auth": {
        "api_key": "plx_...",
        "email": "user@example.com"
      },
      "settings": {
        "enabled": true,
        "mode": "balanced",
        "preferred_provider": "auto"
      }
    }

    Uninstall

    npm uninstall -g @plexor-dev/claude-code-plugin

    To fully remove:

    unset ANTHROPIC_BASE_URL
    rm -rf ~/.plexor

    Requirements

    • Node.js 16+
    • Claude Code CLI
    • macOS, Linux, or Windows (WSL)

    Support

    License

    MIT