Package Exports
- @plexor-dev/claude-code-plugin
- @plexor-dev/claude-code-plugin/lib/constants.js
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-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-setup |
First-time setup wizard |
/plexor-login |
Authenticate with Plexor API key |
/plexor-logout |
Sign out and clear credentials |
/plexor-status |
View usage stats and savings |
/plexor-enabled |
Enable/disable Plexor routing |
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-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: hello@plexor.dev
License
MIT