epic-llm


Nameepic-llm JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryOrchestration tool for managing third-party LLM API providers
upload_time2025-09-06 00:01:02
maintainerNone
docs_urlNone
authorDre
requires_python>=3.10
licenseMIT
keywords api claude copilot gemini llm orchestration
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Epic LLM

**Break free from vendor lock-in.** Use your personal LLM subscriptions anywhere, with any client.

> **Language**: English | [中文](README-zh.md)

## ⚠️ Important Disclaimers

**READ THIS BEFORE USING**

### Terms of Service Warning
**Using this tool may violate the Terms of Service of LLM providers.** We are not responsible for any consequences including but not limited to:
- **Account suspension or termination**
- **Loss of subscription access**
- **Violation of provider terms**
- **Any damages or losses**

### User Responsibilities
- ✅ **Personal use only** - Use only with subscriptions you personally own and pay for
- ❌ **No sharing** - Do not share API access across multiple users or organizations
- ❌ **No commercial use** - Do not use for commercial API resale or business operations
- ⚖️ **Your risk** - You assume all legal and financial risks of using this tool

### Legal Notice - Third-Party Tools
**IMPORTANT: Epic LLM does NOT include any third-party API tools.** All provider tools are developed by independent third-party developers (NOT affiliated with Epic LLM, Anthropic, Google, GitHub, or other AI companies):

- **claude-code-api**: Third-party tool by independent developers (separate download required)
- **copilot-api**: Third-party tool by independent developers (separate download required)  
- **geminicli2api**: Third-party tool by independent developers (separate download required)

**Epic LLM only provides orchestration and management** - it does not bundle, distribute, or provide any third-party tools. Users are solely responsible for:
- Downloading third-party tools at their own discretion
- Compliance with each tool's license and the AI provider's Terms of Service
- Any legal implications of using unofficial third-party API tools

**This separation protects both users and Epic LLM from potential legal issues with AI service providers.**

### Provider-Specific Risks
- **Claude**: May detect automated usage patterns
- **GitHub Copilot**: Intended for development environments only
- **Gemini**: OAuth usage tracking may flag unusual access patterns

**USE AT YOUR OWN RISK. WE PROVIDE NO WARRANTIES AND ASSUME NO LIABILITY.**

---

## What is Epic LLM?

Epic LLM is a **AI subscription converter service** that helps you manage third-party tools to transform your personal LLM subscriptions (Claude Pro, GitHub Copilot, Gemini Advanced) into unified OpenAI-compatible APIs. Unlike traditional gateways like LiteLLM that require API keys, this orchestration tool helps you leverage your existing consumer subscriptions through **automated third-party repository management**.

### The Problem

- **Vendor Lock-in**: Each LLM provider forces you to use their official clients only
- **Limited Access**: Your Claude Pro subscription only works in Claude's web interface and Claude Code. A lot of LLM subscription service follow the same pattern.
- **Fragmented Workflow**: Switch between different apps for different models
- **Subscription Waste**: Pay for multiple subscriptions but can't use them in your preferred tools
- **Complex Manual Setup**: Each provider requires finding and cloning different GitHub repositories, learning various authentication methods, and managing separate tools
- **Dependency Hell**: Installing Node.js packages, Python tools, CLI utilities, and keeping them updated across different provider repositories

### The Solution

Epic LLM **automatically downloads and manages third-party repositories** created by independent developers to help aggregate your existing subscriptions into standard OpenAI-compatible APIs:

**🤖 Automated Repository Cloning**: One command finds and clones all third-party provider repositories - no manual repo hunting  
**🔧 Unified Management**: Single interface to start/stop/monitor all third-party tools instead of juggling multiple repositories  
**⚡ Zero Configuration**: Intelligent dependency detection and auto-installation of required tools (Node.js, npm packages, CLI tools)  
**🎯 One-Stop Setup**: `epic-llm install` handles everything - clones third-party repos, installs dependencies, sets up authentication

```bash
# Your Claude Pro subscription → Available anywhere
curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

# Your GitHub Copilot → Available anywhere  
curl http://localhost:8081/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4",
    "messages": [{"role": "user", "content": "Write a function"}]
  }'
```

### Why This Matters

**🚀 Skip the Setup Nightmare**: No more hunting through GitHub repos, reading installation docs, or debugging dependency conflicts  
**🔓 Unlock Your Subscriptions**: Use Claude Pro in VSCode, Cursor, or any OpenAI-compatible tool  
**💰 Maximize Value**: Get full utility from subscriptions you're already paying for  
**🔧 Universal Access**: One API format works with hundreds of existing tools  
**🔒 Private & Secure**: Your credentials stay on your machine with optional gateway authentication
**⚡ Team-Friendly**: Share subscription access securely with API key protection
**⏱️ Save Hours**: What takes hours of manual setup now works in minutes with automated installation

## How It Works

1. **Check Dependencies**: `epic-llm check` scans your system and shows what's needed
2. **Auto-Clone Repositories**: `epic-llm install` finds and clones provider repositories automatically  
3. **Authenticate Once**: Use official provider methods (Claude CLI, GitHub CLI, Google OAuth) - Epic LLM guides you through each step
4. **Start & Forget**: `epic-llm start` launches all provider tools with automatic port management and health monitoring
5. **Use Anywhere**: Your subscriptions are now available as standard OpenAI APIs in any compatible tool

*Note: Epic LLM manages external GitHub repositories that use official provider authentication methods. Rate limits from the original services still apply.*

```mermaid
graph LR
    A[Your Tools] --> B[Epic LLM]
    B --> C[Claude Pro]
    B --> D[GitHub Copilot] 
    B --> E[Gemini Advanced]
    
    A --> F[VSCode/Cursor]
    A --> G[Custom Scripts]
    A --> H[AI Tools]
```

## Supported Providers

| Provider | Subscription Required | Port | Authentication |
|----------|----------------------|------|----------------|
| **Claude** | Claude Pro/Team | 8000 | Claude CLI (`claude auth login`) |
| **Copilot** | GitHub Copilot | 8081 | GitHub CLI (`gh auth login`) |
| **Gemini** | Gemini Advanced | 8888 | Google OAuth (web flow) |

## Quick Start

### NOTE: Operating system limitations
Some OS like Windows doesn't support some providers natively. You should run this inside a Linux Subsystem (WSL) layer to get this script to work. 

### 1. Run Epic LLM (No Installation Required!)

```bash
# Run Epic LLM directly with uvx - no installation needed!
uvx epic-llm --help

# Check what's needed for each provider
uvx epic-llm check

# Install third-party provider tools automatically
uvx epic-llm check --install
```

### 2. Alternative: Install Epic LLM

If you prefer to install Epic LLM:

```bash
# Install with uv (recommended)
uv tool install epic-llm

# Or install with pip
pip install epic-llm

# Then use normally
epic-llm --help
```

### 3. Automated Setup (One Command!)

```bash
# Check what's needed and auto-install everything
uvx epic-llm check --install

# This automatically clones and sets up third-party tools:
# ✅ claude-code-api repository (third-party Claude tool)
# ✅ copilot-api repository (third-party GitHub Copilot tool) 
# ✅ geminicli2api repository (third-party Gemini tool)
# ✅ All Node.js dependencies
# ✅ Required Python packages and CLI tools
```

### 4. Authenticate (Epic LLM guides you)

```bash
# Epic LLM will prompt you through each step
uvx epic-llm auth-status  # Shows what authentication is needed

# Claude: One command login
claude auth login

# Copilot: GitHub authentication  
gh auth login

# Gemini: OAuth flow opens automatically when first started
```

### 5. Start Everything

```bash
# One command starts all provider repositories with automatic port management
uvx epic-llm start

# Epic LLM handles:
# ✅ Starting downloaded repository tools
# ✅ Port allocation (avoiding conflicts)
# ✅ Process monitoring
# ✅ Health checks
# ✅ Restart on failure

# Or start specific providers
uvx epic-llm start claude copilot

# Check status anytime
uvx epic-llm status
```

### 6. Use Anywhere (Your Subscriptions Are Now APIs)

```python
# In your Python code
import openai

# Use Claude Pro subscription
client = openai.OpenAI(base_url="http://localhost:8000/v1", api_key="dummy")
response = client.chat.completions.create(
    model="claude-sonnet-4",
    messages=[{"role": "user", "content": "Hello Claude!"}]
)

# Use GitHub Copilot subscription  
client = openai.OpenAI(base_url="http://localhost:8081/v1", api_key="dummy")
response = client.chat.completions.create(
    model="gpt-4", 
    messages=[{"role": "user", "content": "Write a function"}]
)
```

## Management Commands

```bash
# List available providers
uvx epic-llm list

# Install provider dependencies
uvx epic-llm install

# Start/stop services
uvx epic-llm start [provider...]
uvx epic-llm stop [provider...]

# Check status and health
uvx epic-llm status
uvx epic-llm auth-status

# Verify dependencies
uvx epic-llm check [provider]

# Gateway Security (Protect your provider endpoints)
uvx epic-llm set-gateway-key claude --key "your-secure-key"    # Enable authentication
uvx epic-llm set-gateway-key claude                            # Disable authentication  
uvx epic-llm show-gateway-key claude                          # Show current status
```

## 🔒 Gateway Security

Secure your provider endpoints with API key authentication to control access:

### Use Case: IoT Development Teams
**Scenario**: Your IoT development team needs access to Gemini models for device automation and edge AI, but doesn't want to purchase separate API keys when team members already have Gemini subscriptions through their Google accounts.

**Solution**: Use Epic LLM with gateway authentication:

```bash
# Setup Gemini with your existing Google account
uvx epic-llm install gemini
uvx epic-llm start gemini

# Secure the gateway for team access  
uvx epic-llm set-gateway-key gemini --key "iot-team-secure-key-2024"

# Team members access via OpenAI-compatible endpoint
curl -H "Authorization: Bearer iot-team-secure-key-2024" \
     -H "Content-Type: application/json" \
     -d '{"model": "gemini-2.5-flash", "messages": [{"role": "user", "content": "Generate IoT sensor calibration code"}]}' \
     http://your-server:8888/v1/chat/completions
```

**Benefits**:
- ✅ Reuse existing Google subscriptions instead of buying API keys
- ✅ Secure team access with shared gateway authentication  
- ✅ OpenAI-compatible API works with existing codebases
- ✅ Cost-effective solution for development teams
- ✅ Control access to your subscription-based endpoints

## Directory Structure

```
~/.local/share/epic-llm/
├── state.json                     # Service status and configuration
└── pkg/                          # Downloaded provider repositories
    ├── claude-code-api/          # Git repo: https://github.com/codingworkflow/claude-code-api.git
    ├── copilot-api/              # Git repo: https://github.com/ericc-ch/copilot-api.git  
    └── geminicli2api/            # Git repo: https://github.com/gzzhongqi/geminicli2api.git
        └── oauth_creds.json      # Gemini OAuth credentials
```

External authentication (managed by official CLIs):
- **Claude**: `~/.claude/.credentials.json`
- **Copilot**: `~/.config/gh/hosts.yml` 
- **Gemini**: OAuth tokens in pkg directory

## Port Configuration

- **Claude**: `localhost:8000` (configurable)
- **Copilot**: `localhost:8081` (configurable)  
- **Gemini**: `localhost:8888` (configurable)
- **⚠️ Port 8080**: Reserved for Gemini OAuth callback (hardcoded, cannot change)

Override default ports:
```bash
uvx epic-llm start --port claude:8001 --port gemini:8889
```

## Compared to Other Solutions

| Feature | Epic LLM | Manual Setup | LiteLLM | Official APIs |
|---------|----------|--------------|---------|---------------|
| **Uses existing subscriptions** | ✅ | ✅ | ❌ | ❌ |
| **No additional API costs** | ✅ | ✅ | ❌ | ❌ |
| **Automated installation** | ✅ | ❌ | ❌ | ❌ |
| **Unified management interface** | ✅ | ❌ | ✅ | ❌ |
| **Dependency auto-detection** | ✅ | ❌ | ❌ | ❌ |
| **One-command setup** | ✅ | ❌ | ❌ | ❌ |
| **Automatic port management** | ✅ | ❌ | ❌ | ❌ |
| **Health monitoring** | ✅ | ❌ | ❌ | ❌ |
| **Setup time** | 5 minutes | 2-4 hours | 30 minutes | N/A |
| **Unified OpenAI format** | ✅ | ❌ | ✅ | ❌ |
| **Self-hosted** | ✅ | ✅ | ✅ | ❌ |

### Manual Setup Reality Check

**Without Epic LLM, you'd need to:**
- Find and clone 3+ different GitHub repositories:
  - `claude-code-api` for Claude Pro
  - `copilot-api` for GitHub Copilot  
  - `geminicli2api` for Gemini Advanced
- Install Node.js, npm, Python tools, and various CLI utilities
- Read through multiple README files and installation guides
- Debug version conflicts and dependency issues
- Manually configure authentication for each provider repository
- Set up port management to avoid conflicts between tools
- Create your own monitoring and restart scripts
- Keep everything updated as provider repositories change

**With Epic LLM:**
```bash
# That's it. Epic LLM handles the repository management automatically.
epic-llm install  # Clones all repos and installs dependencies
epic-llm start    # Starts all provider tools with management
```

## Use Cases

- **Developers**: Use Claude Pro in VSCode, Cursor, or custom tools
- **Researchers**: Access multiple models through a single interface
- **Teams**: Share subscription access across different applications
- **Automation**: Build scripts using premium models you already pay for
- **Privacy**: Keep everything local - no external API calls or key sharing

## Contributing

We welcome contributions! Epic LLM is designed to be extensible with new providers.

### Quick Start
```bash
# Set up development environment
git clone https://github.com/your-username/epic-llm.git
cd epic-llm
uv sync --dev

# Test your changes
./scripts/quick-test.sh

# Check code quality
uv run ruff check .
```

### Common Contributions
- 🚀 **Add New Providers**: Support for OpenAI API, Anthropic API, Local models
- 🐛 **Fix Bugs**: Check [GitHub Issues](https://github.com/epic-llm/epic-llm/issues)  
- 📚 **Improve Documentation**: User guides, examples, translations
- 🧪 **Add Tests**: Increase coverage and reliability

### Detailed Guide
See **[CONTRIBUTING.md](CONTRIBUTING.md)** for:
- Adding new LLM providers (step-by-step guide)
- Bug fix workflow
- Code style guidelines
- Testing requirements
- Security considerations

### Getting Help
- 📖 Read [CONTRIBUTING.md](CONTRIBUTING.md) first
- 🐛 Check [GitHub Issues](https://github.com/epic-llm/epic-llm/issues) 
- 💬 Start a [GitHub Discussion](https://github.com/epic-llm/epic-llm/discussions)
- 🧪 Look at existing provider implementations for examples

## Legal & Ethics

**⚠️ WARNING: Use at your own risk. Account bans possible.**

This tool may violate LLM provider Terms of Service. Users assume all responsibility for:

### Prohibited Uses
- ❌ **Multi-user sharing** - Do not share API access with others
- ❌ **Commercial resale** - Do not resell or monetize API access
- ❌ **Terms violations** - Respect each provider's usage policies
- ❌ **Rate limit abuse** - Do not exceed reasonable usage patterns

### Recommended Practices
- ✅ **Personal use only** - Use with your own subscriptions exclusively
- ✅ **Moderate usage** - Don't abuse or exceed normal usage patterns
- ✅ **Monitor ToS changes** - Provider terms may change and affect this tool

### Liability Disclaimer
**THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. WE ARE NOT LIABLE FOR:**
- Account suspensions, bans, or terminations
- Loss of subscription access or services  
- Violation of third-party terms of service
- Any direct, indirect, incidental, or consequential damages

**You acknowledge that using this software may result in account restrictions and you assume all risks.**

## License

MIT License - see [LICENSE](LICENSE) for details.

---

**💡 Tip**: Star this repo if it helps you get more value from your LLM subscriptions! Share this with a friend to free them from vendor lock-in. 
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "epic-llm",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "api, claude, copilot, gemini, llm, orchestration",
    "author": "Dre",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/63/75/5078e2fbe93e0534fb26c51be01f5e21de520d4c8c49047f5adb320688dc/epic_llm-0.1.1.tar.gz",
    "platform": null,
    "description": "# Epic LLM\n\n**Break free from vendor lock-in.** Use your personal LLM subscriptions anywhere, with any client.\n\n> **Language**: English | [\u4e2d\u6587](README-zh.md)\n\n## \u26a0\ufe0f Important Disclaimers\n\n**READ THIS BEFORE USING**\n\n### Terms of Service Warning\n**Using this tool may violate the Terms of Service of LLM providers.** We are not responsible for any consequences including but not limited to:\n- **Account suspension or termination**\n- **Loss of subscription access**\n- **Violation of provider terms**\n- **Any damages or losses**\n\n### User Responsibilities\n- \u2705 **Personal use only** - Use only with subscriptions you personally own and pay for\n- \u274c **No sharing** - Do not share API access across multiple users or organizations\n- \u274c **No commercial use** - Do not use for commercial API resale or business operations\n- \u2696\ufe0f **Your risk** - You assume all legal and financial risks of using this tool\n\n### Legal Notice - Third-Party Tools\n**IMPORTANT: Epic LLM does NOT include any third-party API tools.** All provider tools are developed by independent third-party developers (NOT affiliated with Epic LLM, Anthropic, Google, GitHub, or other AI companies):\n\n- **claude-code-api**: Third-party tool by independent developers (separate download required)\n- **copilot-api**: Third-party tool by independent developers (separate download required)  \n- **geminicli2api**: Third-party tool by independent developers (separate download required)\n\n**Epic LLM only provides orchestration and management** - it does not bundle, distribute, or provide any third-party tools. Users are solely responsible for:\n- Downloading third-party tools at their own discretion\n- Compliance with each tool's license and the AI provider's Terms of Service\n- Any legal implications of using unofficial third-party API tools\n\n**This separation protects both users and Epic LLM from potential legal issues with AI service providers.**\n\n### Provider-Specific Risks\n- **Claude**: May detect automated usage patterns\n- **GitHub Copilot**: Intended for development environments only\n- **Gemini**: OAuth usage tracking may flag unusual access patterns\n\n**USE AT YOUR OWN RISK. WE PROVIDE NO WARRANTIES AND ASSUME NO LIABILITY.**\n\n---\n\n## What is Epic LLM?\n\nEpic LLM is a **AI subscription converter service** that helps you manage third-party tools to transform your personal LLM subscriptions (Claude Pro, GitHub Copilot, Gemini Advanced) into unified OpenAI-compatible APIs. Unlike traditional gateways like LiteLLM that require API keys, this orchestration tool helps you leverage your existing consumer subscriptions through **automated third-party repository management**.\n\n### The Problem\n\n- **Vendor Lock-in**: Each LLM provider forces you to use their official clients only\n- **Limited Access**: Your Claude Pro subscription only works in Claude's web interface and Claude Code. A lot of LLM subscription service follow the same pattern.\n- **Fragmented Workflow**: Switch between different apps for different models\n- **Subscription Waste**: Pay for multiple subscriptions but can't use them in your preferred tools\n- **Complex Manual Setup**: Each provider requires finding and cloning different GitHub repositories, learning various authentication methods, and managing separate tools\n- **Dependency Hell**: Installing Node.js packages, Python tools, CLI utilities, and keeping them updated across different provider repositories\n\n### The Solution\n\nEpic LLM **automatically downloads and manages third-party repositories** created by independent developers to help aggregate your existing subscriptions into standard OpenAI-compatible APIs:\n\n**\ud83e\udd16 Automated Repository Cloning**: One command finds and clones all third-party provider repositories - no manual repo hunting  \n**\ud83d\udd27 Unified Management**: Single interface to start/stop/monitor all third-party tools instead of juggling multiple repositories  \n**\u26a1 Zero Configuration**: Intelligent dependency detection and auto-installation of required tools (Node.js, npm packages, CLI tools)  \n**\ud83c\udfaf One-Stop Setup**: `epic-llm install` handles everything - clones third-party repos, installs dependencies, sets up authentication\n\n```bash\n# Your Claude Pro subscription \u2192 Available anywhere\ncurl http://localhost:8000/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"claude-sonnet-4\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]\n  }'\n\n# Your GitHub Copilot \u2192 Available anywhere  \ncurl http://localhost:8081/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"gpt-4\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Write a function\"}]\n  }'\n```\n\n### Why This Matters\n\n**\ud83d\ude80 Skip the Setup Nightmare**: No more hunting through GitHub repos, reading installation docs, or debugging dependency conflicts  \n**\ud83d\udd13 Unlock Your Subscriptions**: Use Claude Pro in VSCode, Cursor, or any OpenAI-compatible tool  \n**\ud83d\udcb0 Maximize Value**: Get full utility from subscriptions you're already paying for  \n**\ud83d\udd27 Universal Access**: One API format works with hundreds of existing tools  \n**\ud83d\udd12 Private & Secure**: Your credentials stay on your machine with optional gateway authentication\n**\u26a1 Team-Friendly**: Share subscription access securely with API key protection\n**\u23f1\ufe0f Save Hours**: What takes hours of manual setup now works in minutes with automated installation\n\n## How It Works\n\n1. **Check Dependencies**: `epic-llm check` scans your system and shows what's needed\n2. **Auto-Clone Repositories**: `epic-llm install` finds and clones provider repositories automatically  \n3. **Authenticate Once**: Use official provider methods (Claude CLI, GitHub CLI, Google OAuth) - Epic LLM guides you through each step\n4. **Start & Forget**: `epic-llm start` launches all provider tools with automatic port management and health monitoring\n5. **Use Anywhere**: Your subscriptions are now available as standard OpenAI APIs in any compatible tool\n\n*Note: Epic LLM manages external GitHub repositories that use official provider authentication methods. Rate limits from the original services still apply.*\n\n```mermaid\ngraph LR\n    A[Your Tools] --> B[Epic LLM]\n    B --> C[Claude Pro]\n    B --> D[GitHub Copilot] \n    B --> E[Gemini Advanced]\n    \n    A --> F[VSCode/Cursor]\n    A --> G[Custom Scripts]\n    A --> H[AI Tools]\n```\n\n## Supported Providers\n\n| Provider | Subscription Required | Port | Authentication |\n|----------|----------------------|------|----------------|\n| **Claude** | Claude Pro/Team | 8000 | Claude CLI (`claude auth login`) |\n| **Copilot** | GitHub Copilot | 8081 | GitHub CLI (`gh auth login`) |\n| **Gemini** | Gemini Advanced | 8888 | Google OAuth (web flow) |\n\n## Quick Start\n\n### NOTE: Operating system limitations\nSome OS like Windows doesn't support some providers natively. You should run this inside a Linux Subsystem (WSL) layer to get this script to work. \n\n### 1. Run Epic LLM (No Installation Required!)\n\n```bash\n# Run Epic LLM directly with uvx - no installation needed!\nuvx epic-llm --help\n\n# Check what's needed for each provider\nuvx epic-llm check\n\n# Install third-party provider tools automatically\nuvx epic-llm check --install\n```\n\n### 2. Alternative: Install Epic LLM\n\nIf you prefer to install Epic LLM:\n\n```bash\n# Install with uv (recommended)\nuv tool install epic-llm\n\n# Or install with pip\npip install epic-llm\n\n# Then use normally\nepic-llm --help\n```\n\n### 3. Automated Setup (One Command!)\n\n```bash\n# Check what's needed and auto-install everything\nuvx epic-llm check --install\n\n# This automatically clones and sets up third-party tools:\n# \u2705 claude-code-api repository (third-party Claude tool)\n# \u2705 copilot-api repository (third-party GitHub Copilot tool) \n# \u2705 geminicli2api repository (third-party Gemini tool)\n# \u2705 All Node.js dependencies\n# \u2705 Required Python packages and CLI tools\n```\n\n### 4. Authenticate (Epic LLM guides you)\n\n```bash\n# Epic LLM will prompt you through each step\nuvx epic-llm auth-status  # Shows what authentication is needed\n\n# Claude: One command login\nclaude auth login\n\n# Copilot: GitHub authentication  \ngh auth login\n\n# Gemini: OAuth flow opens automatically when first started\n```\n\n### 5. Start Everything\n\n```bash\n# One command starts all provider repositories with automatic port management\nuvx epic-llm start\n\n# Epic LLM handles:\n# \u2705 Starting downloaded repository tools\n# \u2705 Port allocation (avoiding conflicts)\n# \u2705 Process monitoring\n# \u2705 Health checks\n# \u2705 Restart on failure\n\n# Or start specific providers\nuvx epic-llm start claude copilot\n\n# Check status anytime\nuvx epic-llm status\n```\n\n### 6. Use Anywhere (Your Subscriptions Are Now APIs)\n\n```python\n# In your Python code\nimport openai\n\n# Use Claude Pro subscription\nclient = openai.OpenAI(base_url=\"http://localhost:8000/v1\", api_key=\"dummy\")\nresponse = client.chat.completions.create(\n    model=\"claude-sonnet-4\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello Claude!\"}]\n)\n\n# Use GitHub Copilot subscription  \nclient = openai.OpenAI(base_url=\"http://localhost:8081/v1\", api_key=\"dummy\")\nresponse = client.chat.completions.create(\n    model=\"gpt-4\", \n    messages=[{\"role\": \"user\", \"content\": \"Write a function\"}]\n)\n```\n\n## Management Commands\n\n```bash\n# List available providers\nuvx epic-llm list\n\n# Install provider dependencies\nuvx epic-llm install\n\n# Start/stop services\nuvx epic-llm start [provider...]\nuvx epic-llm stop [provider...]\n\n# Check status and health\nuvx epic-llm status\nuvx epic-llm auth-status\n\n# Verify dependencies\nuvx epic-llm check [provider]\n\n# Gateway Security (Protect your provider endpoints)\nuvx epic-llm set-gateway-key claude --key \"your-secure-key\"    # Enable authentication\nuvx epic-llm set-gateway-key claude                            # Disable authentication  \nuvx epic-llm show-gateway-key claude                          # Show current status\n```\n\n## \ud83d\udd12 Gateway Security\n\nSecure your provider endpoints with API key authentication to control access:\n\n### Use Case: IoT Development Teams\n**Scenario**: Your IoT development team needs access to Gemini models for device automation and edge AI, but doesn't want to purchase separate API keys when team members already have Gemini subscriptions through their Google accounts.\n\n**Solution**: Use Epic LLM with gateway authentication:\n\n```bash\n# Setup Gemini with your existing Google account\nuvx epic-llm install gemini\nuvx epic-llm start gemini\n\n# Secure the gateway for team access  \nuvx epic-llm set-gateway-key gemini --key \"iot-team-secure-key-2024\"\n\n# Team members access via OpenAI-compatible endpoint\ncurl -H \"Authorization: Bearer iot-team-secure-key-2024\" \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"model\": \"gemini-2.5-flash\", \"messages\": [{\"role\": \"user\", \"content\": \"Generate IoT sensor calibration code\"}]}' \\\n     http://your-server:8888/v1/chat/completions\n```\n\n**Benefits**:\n- \u2705 Reuse existing Google subscriptions instead of buying API keys\n- \u2705 Secure team access with shared gateway authentication  \n- \u2705 OpenAI-compatible API works with existing codebases\n- \u2705 Cost-effective solution for development teams\n- \u2705 Control access to your subscription-based endpoints\n\n## Directory Structure\n\n```\n~/.local/share/epic-llm/\n\u251c\u2500\u2500 state.json                     # Service status and configuration\n\u2514\u2500\u2500 pkg/                          # Downloaded provider repositories\n    \u251c\u2500\u2500 claude-code-api/          # Git repo: https://github.com/codingworkflow/claude-code-api.git\n    \u251c\u2500\u2500 copilot-api/              # Git repo: https://github.com/ericc-ch/copilot-api.git  \n    \u2514\u2500\u2500 geminicli2api/            # Git repo: https://github.com/gzzhongqi/geminicli2api.git\n        \u2514\u2500\u2500 oauth_creds.json      # Gemini OAuth credentials\n```\n\nExternal authentication (managed by official CLIs):\n- **Claude**: `~/.claude/.credentials.json`\n- **Copilot**: `~/.config/gh/hosts.yml` \n- **Gemini**: OAuth tokens in pkg directory\n\n## Port Configuration\n\n- **Claude**: `localhost:8000` (configurable)\n- **Copilot**: `localhost:8081` (configurable)  \n- **Gemini**: `localhost:8888` (configurable)\n- **\u26a0\ufe0f Port 8080**: Reserved for Gemini OAuth callback (hardcoded, cannot change)\n\nOverride default ports:\n```bash\nuvx epic-llm start --port claude:8001 --port gemini:8889\n```\n\n## Compared to Other Solutions\n\n| Feature | Epic LLM | Manual Setup | LiteLLM | Official APIs |\n|---------|----------|--------------|---------|---------------|\n| **Uses existing subscriptions** | \u2705 | \u2705 | \u274c | \u274c |\n| **No additional API costs** | \u2705 | \u2705 | \u274c | \u274c |\n| **Automated installation** | \u2705 | \u274c | \u274c | \u274c |\n| **Unified management interface** | \u2705 | \u274c | \u2705 | \u274c |\n| **Dependency auto-detection** | \u2705 | \u274c | \u274c | \u274c |\n| **One-command setup** | \u2705 | \u274c | \u274c | \u274c |\n| **Automatic port management** | \u2705 | \u274c | \u274c | \u274c |\n| **Health monitoring** | \u2705 | \u274c | \u274c | \u274c |\n| **Setup time** | 5 minutes | 2-4 hours | 30 minutes | N/A |\n| **Unified OpenAI format** | \u2705 | \u274c | \u2705 | \u274c |\n| **Self-hosted** | \u2705 | \u2705 | \u2705 | \u274c |\n\n### Manual Setup Reality Check\n\n**Without Epic LLM, you'd need to:**\n- Find and clone 3+ different GitHub repositories:\n  - `claude-code-api` for Claude Pro\n  - `copilot-api` for GitHub Copilot  \n  - `geminicli2api` for Gemini Advanced\n- Install Node.js, npm, Python tools, and various CLI utilities\n- Read through multiple README files and installation guides\n- Debug version conflicts and dependency issues\n- Manually configure authentication for each provider repository\n- Set up port management to avoid conflicts between tools\n- Create your own monitoring and restart scripts\n- Keep everything updated as provider repositories change\n\n**With Epic LLM:**\n```bash\n# That's it. Epic LLM handles the repository management automatically.\nepic-llm install  # Clones all repos and installs dependencies\nepic-llm start    # Starts all provider tools with management\n```\n\n## Use Cases\n\n- **Developers**: Use Claude Pro in VSCode, Cursor, or custom tools\n- **Researchers**: Access multiple models through a single interface\n- **Teams**: Share subscription access across different applications\n- **Automation**: Build scripts using premium models you already pay for\n- **Privacy**: Keep everything local - no external API calls or key sharing\n\n## Contributing\n\nWe welcome contributions! Epic LLM is designed to be extensible with new providers.\n\n### Quick Start\n```bash\n# Set up development environment\ngit clone https://github.com/your-username/epic-llm.git\ncd epic-llm\nuv sync --dev\n\n# Test your changes\n./scripts/quick-test.sh\n\n# Check code quality\nuv run ruff check .\n```\n\n### Common Contributions\n- \ud83d\ude80 **Add New Providers**: Support for OpenAI API, Anthropic API, Local models\n- \ud83d\udc1b **Fix Bugs**: Check [GitHub Issues](https://github.com/epic-llm/epic-llm/issues)  \n- \ud83d\udcda **Improve Documentation**: User guides, examples, translations\n- \ud83e\uddea **Add Tests**: Increase coverage and reliability\n\n### Detailed Guide\nSee **[CONTRIBUTING.md](CONTRIBUTING.md)** for:\n- Adding new LLM providers (step-by-step guide)\n- Bug fix workflow\n- Code style guidelines\n- Testing requirements\n- Security considerations\n\n### Getting Help\n- \ud83d\udcd6 Read [CONTRIBUTING.md](CONTRIBUTING.md) first\n- \ud83d\udc1b Check [GitHub Issues](https://github.com/epic-llm/epic-llm/issues) \n- \ud83d\udcac Start a [GitHub Discussion](https://github.com/epic-llm/epic-llm/discussions)\n- \ud83e\uddea Look at existing provider implementations for examples\n\n## Legal & Ethics\n\n**\u26a0\ufe0f WARNING: Use at your own risk. Account bans possible.**\n\nThis tool may violate LLM provider Terms of Service. Users assume all responsibility for:\n\n### Prohibited Uses\n- \u274c **Multi-user sharing** - Do not share API access with others\n- \u274c **Commercial resale** - Do not resell or monetize API access\n- \u274c **Terms violations** - Respect each provider's usage policies\n- \u274c **Rate limit abuse** - Do not exceed reasonable usage patterns\n\n### Recommended Practices\n- \u2705 **Personal use only** - Use with your own subscriptions exclusively\n- \u2705 **Moderate usage** - Don't abuse or exceed normal usage patterns\n- \u2705 **Monitor ToS changes** - Provider terms may change and affect this tool\n\n### Liability Disclaimer\n**THE SOFTWARE IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND. WE ARE NOT LIABLE FOR:**\n- Account suspensions, bans, or terminations\n- Loss of subscription access or services  \n- Violation of third-party terms of service\n- Any direct, indirect, incidental, or consequential damages\n\n**You acknowledge that using this software may result in account restrictions and you assume all risks.**\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n---\n\n**\ud83d\udca1 Tip**: Star this repo if it helps you get more value from your LLM subscriptions! Share this with a friend to free them from vendor lock-in. ",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Orchestration tool for managing third-party LLM API providers",
    "version": "0.1.1",
    "project_urls": {
        "Changelog": "https://github.com/epic-llm/epic-llm/releases",
        "Homepage": "https://github.com/epic-llm/epic-llm",
        "Issues": "https://github.com/epic-llm/epic-llm/issues",
        "Repository": "https://github.com/epic-llm/epic-llm"
    },
    "split_keywords": [
        "api",
        " claude",
        " copilot",
        " gemini",
        " llm",
        " orchestration"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9b7d5dd37566965465667e4d46562566dab5d0788e86c811949799673922961b",
                "md5": "c3640d25abd2be151043440ce176a445",
                "sha256": "c1dab45284bf3851f003b9fff5e50d35c6b700cf54f1484399f419d52cfbb1a3"
            },
            "downloads": -1,
            "filename": "epic_llm-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c3640d25abd2be151043440ce176a445",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 62781,
            "upload_time": "2025-09-06T00:01:00",
            "upload_time_iso_8601": "2025-09-06T00:01:00.148381Z",
            "url": "https://files.pythonhosted.org/packages/9b/7d/5dd37566965465667e4d46562566dab5d0788e86c811949799673922961b/epic_llm-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "63755078e2fbe93e0534fb26c51be01f5e21de520d4c8c49047f5adb320688dc",
                "md5": "8f25bd1536c54ab65dc77b57a7e5f598",
                "sha256": "07bad498007843a250044319718c7b02487367dca2d7e74003dcc7bc8c89f9d3"
            },
            "downloads": -1,
            "filename": "epic_llm-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8f25bd1536c54ab65dc77b57a7e5f598",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 577357,
            "upload_time": "2025-09-06T00:01:02",
            "upload_time_iso_8601": "2025-09-06T00:01:02.272058Z",
            "url": "https://files.pythonhosted.org/packages/63/75/5078e2fbe93e0534fb26c51be01f5e21de520d4c8c49047f5adb320688dc/epic_llm-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-06 00:01:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "epic-llm",
    "github_project": "epic-llm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "epic-llm"
}
        
Dre
Elapsed time: 1.11826s