LinJun Documentation
Welcome to the official documentation for LinJun, the cross-platform AI proxy management tool.
LinJun Documentation
Welcome to the official documentation for LinJun, the ultimate cross-platform application for managing AI accounts, tracking quotas, and ensuring high availability for your development workflows.
What is LinJun?
LinJun sits between your tools (IDEs, CLI scripts, Interpreters) and AI Providers (OpenAI, Anthropic, Gemini). It acts as a smart proxy and manager that:
- Aggregates Quotas: See your usage across all keys in one place.
- Prevents Downtime: Automatically switches to a backup key when one fails.
- Saves Money: Routes requests to cheaper models or local fallbacks based on rules.
Getting Started
If you are new to LinJun, start here:
Core Concepts
Understand the building blocks of the system:
- Providers: AI service connections and authentication.
- Quotas: How limits are calculated and enforced.
- Smart Routing: The logic behind automatic account switching.
Integration Guides
Connect LinJun to your favorite tools:
CLI Agents
- CLI Tools: Use
curlor standard scripts. - Claude Code: Power the Claude CLI with failover.
- OpenCode: Manage heavy interpreter workloads.
- Codex CLI: Use OpenAI Codex through the proxy.
- Gemini CLI: Access Google Gemini via CLI.
Developer Resources
- Architecture: How the app works under the hood.
- Contributing: Help us improve LinJun.
Community
Join the LinJun community:
- GitHub Issues: Report bugs or suggest features.
- GitHub Discussions: Ask questions and share ideas.