@plexor-dev/claude-code-plugin
v0.1.0-beta.2
Published
LLM cost optimization plugin for Claude Code - Save up to 90% on AI costs
Maintainers
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-pluginThis installs slash commands to ~/.claude/commands/.
Quick Start
Install the plugin (see above)
Open Claude Code and run:
/plexor-loginFollow the prompts to authenticate via browser
Set the gateway URL in your terminal:
export ANTHROPIC_BASE_URL="https://api.plexor.dev/v1/gateway/anthropic"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": "[email protected]"
},
"settings": {
"enabled": true,
"mode": "balanced",
"preferred_provider": "auto"
}
}Uninstall
npm uninstall -g @plexor-dev/claude-code-pluginTo fully remove:
unset ANTHROPIC_BASE_URL
rm -rf ~/.plexorRequirements
- Node.js 16+
- Claude Code CLI
- macOS, Linux, or Windows (WSL)
Support
- Documentation: https://plexor.dev/docs
- Issues: https://github.com/plexor-ai/claude-code-plugin/issues
- Email: [email protected]
License
MIT
