primellm
v1.3.5
Published
Configure Claude Code and Codex to use PrimeLLM as the backend
Maintainers
Readme
PrimeLLM CLI
Configure Claude Code and Codex to use PrimeLLM as the backend
A production-grade CLI installer that configures AI coding tools to use PrimeLLM's unified API.
Quick Start
npx primellmFeatures
- 🎨 Beautiful UI - ASCII art banner and progress indicators
- 🔍 System Detection - Automatically detects OS, shell, and Node version
- 🛠 Tool Selection - Choose between Claude Code or Codex
- 📦 Smart Installation - Only installs tools if not already present
- 🔑 Secure API Key Flow - Masked input with validation
- 📁 Flexible Scope - System-level or project-level configuration
Supported Tools
| Tool | Package | Command |
|------|---------|---------|
| Claude Code | @anthropic-ai/claude-code | claude |
| Codex | @openai/codex | codex |
Usage
Interactive Mode
Simply run the CLI and follow the prompts:
npx primellmWhat it Does
- Detects your system - Shows OS, shell, and Node version
- Asks which tool - Claude Code or Codex
- Checks installation - Skips install if already present
- Gets your API key - Opens browser if you need to create one
- Configures the tool - Writes config with PrimeLLM backend
Configuration
System-level (recommended)
Applies to all projects. Config stored in:
- Claude Code:
~/.claude/config.json - Codex:
~/.codex/config.json
Project-level
Applies to current project only. Config stored in:
- Claude Code:
./.claude/config.json - Codex:
./.codex/config.json
API Key
Your PrimeLLM API key:
- Must start with
primellm_ - Can be created at: https://primellm.in/dashboard/api-keys
Requirements
- Node.js >= 18.0.0
- npm or npx
Development
# Clone the repo
git clone https://github.com/rishuuu-codesss/primellm-backend.git
cd primellm-backend/primellm-cli
# Install dependencies
npm install
# Run in development
npm run dev
# Build
npm run buildLicense
MIT
