# LLM Link
[](https://crates.io/crates/llm-link)
[](https://docs.rs/llm-link)
[](https://opensource.org/licenses/MIT)
[](https://crates.io/crates/llm-link)
π **A user-friendly LLM proxy service with built-in support for popular AI coding tools**
LLM Link provides zero-configuration access to LLM providers through multiple API formats, with optimized built-in support for popular AI applications.
## β¨ Key Features
- **π― Application-Oriented**: Built-in configurations for popular AI coding tools
- **β‘ Zero Configuration**: One-command startup for common use cases
- **π Multi-Protocol**: Simultaneous OpenAI, Ollama, and Anthropic API support
- **π 9 LLM Providers**: OpenAI, Anthropic, Zhipu, Aliyun, Volcengine, Tencent, Longcat, Moonshot, Ollama
- **π‘ Dynamic Model Discovery**: REST API to query all supported providers and models
- ** Hot-Reload Configuration**: Update API keys and switch providers without restart
- ** Production Ready**: Built with Rust for performance and reliability
## π― Supported Applications
| **Codex CLI** | OpenAI API | 8088 | Bearer Token | β
Ready |
| **Zed** | Ollama API | 11434 | None | β
Ready |
| **Aider** | OpenAI API | 8090 | Bearer Token | β
Ready |
| **OpenHands** | OpenAI API | 8091 | Bearer Token | β
Ready |
οΏ½ **[Full Application Documentation β](https://lipish.github.io/llm-link/docs/apps)**
## οΏ½ Quick Start
### Installation
```bash
# Install from crates.io (Recommended)
cargo install llm-link
# Or via Homebrew (macOS)
brew tap lipish/llm-link && brew install llm-link
# Or via pip (macOS / Linux)
pip install pyllmlink
```
οΏ½ **[Complete Installation Guide β](https://lipish.github.io/llm-link/docs/quick-start)**
### Basic Usage
```bash
# For Codex CLI
./llm-link --app codex-cli --api-key "your-auth-token"
# For Zed
./llm-link --app zed
# For Aider (using open-source models)
./llm-link --app aider --provider zhipu --model glm-4.6 --api-key "your-zhipu-key"
# For OpenHands
./llm-link --app openhands --provider anthropic --model claude-3-5-sonnet --api-key "your-anthropic-key"
```
π **[Detailed Configuration Guide β](https://lipish.github.io/llm-link/docs)**
## π Help & Information
```bash
# List all supported applications
./llm-link --list-apps
# Get detailed setup guide for specific application
./llm-link --app-info aider
# List available models for a provider
./llm-link --provider zhipu --list-models
```
## π Protocol Mode
Use multiple protocols simultaneously for maximum flexibility:
```bash
./llm-link --protocols openai,ollama,anthropic --provider zhipu --model glm-4.6
```
οΏ½ **[Protocol Mode Documentation β](https://lipish.github.io/llm-link/docs/protocols)**
## ποΈ Architecture
```
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β AI Tools β β LLM Link β β LLM Providers β
β β β β β β
β β’ Codex CLI βββββΆβ β’ Protocol βββββΆβ β’ OpenAI β
β β’ Zed IDE β β Conversion β β β’ Anthropic β
β β’ Aider β β β’ Format β β β’ Zhipu β
β β’ OpenHands β β Adaptation β β β’ Aliyun β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
```
π **[Architecture Documentation β](https://lipish.github.io/llm-link/docs/architecture)**
## π§ Advanced Usage
### Custom Configuration
```bash
# Custom port and host
./llm-link --app aider --provider zhipu --model glm-4.6 --port 8095 --host 0.0.0.0
# With authentication
./llm-link --app aider --provider zhipu --model glm-4.6 --auth-key "your-secret-token"
```
### Environment Variables
```bash
# Provider API keys
export ZHIPU_API_KEY="your-zhipu-api-key"
export OPENAI_API_KEY="sk-xxx"
export ANTHROPIC_API_KEY="sk-ant-xxx"
# LLM Link authentication
export LLM_LINK_API_KEY="your-auth-token"
```
π **[Advanced Configuration β](https://lipish.github.io/llm-link/docs)**
## π§ͺ Testing
```bash
# Test health endpoint
curl http://localhost:8090/health
# Test OpenAI API
curl -X POST http://localhost:8090/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-token" \
-d '{"model": "glm-4.6", "messages": [{"role": "user", "content": "Hello!"}]}'
```
π **[Testing & Troubleshooting β](https://lipish.github.io/llm-link/docs)**
## π Full Documentation
π **[Complete Documentation Site β](https://lipish.github.io/llm-link/)**
- **[Getting Started](https://lipish.github.io/llm-link/docs/quick-start)** - Installation and basic setup
- **[Application Guides](https://lipish.github.io/llm-link/docs/apps)** - Detailed integration for each tool
- **[Configuration](https://lipish.github.io/llm-link/docs)** - Advanced configuration options
- **[Architecture](https://lipish.github.io/llm-link/docs/architecture)** - System design and internals
- **[API Reference](https://lipish.github.io/llm-link/api)** - REST API documentation
## π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## π Links
- [Documentation Site](https://lipish.github.io/llm-link/)
- [Crates.io](https://crates.io/crates/llm-link)
- [GitHub Repository](https://github.com/lipish/llm-link)
- [API Reference](https://lipish.github.io/llm-link/api)