___ ___ _ ___ ___ ___
/ _ \ | _ \ | | |_ _| | _ \ | __|
| (_) | | _/ | |__ | | | / | _|
\___/ _|_|_ |____| |___| |_|_\ |___|
_|"""""|_| """ |_|"""""|_|"""""|_|"""""|_|"""""|
"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
OpenCode Limit Reset + Proxy
by Berke Oruc
oplire is a dual-purpose tool:
- WARP Rate Limit Reset - Rotates your IP via Cloudflare WARP to reset OpenCode rate limits
- Anthropic Proxy Bridge - Reverse proxy that connects Claude Code to OpenCode Zen's free models with automatic rate limit recovery
OpenCode tracks users by IP. When you hit the rate limit:
- Stops the current WARP tunnel
- Clears cached session data
- Creates a new tunnel registration (new IP)
- Restarts WARP with a fresh IP
Claude Code → oplire proxy (127.0.0.1:8080) → OpenCode Zen
- Translates Anthropic API format to OpenAI format
- Streams SSE responses in real-time
- Exposes free models via
/v1/modelsendpoint - Auto-resets WARP on 429 rate limits — transparently
yay -S oplirewinget install BerkeOruc.oplirebrew install berkeoruc/oplire/opliregit clone https://github.com/BerkeOruc/oplire.git
cd oplire
cargo build --release
sudo cp target/release/oplire /usr/bin/oplire# One command: starts proxy + launches Claude Code with correct env vars
oplire connect claude-code
# With specific model
oplire connect claude-code --model glm-4.7-free
# With custom upstream
oplire connect claude-code --upstream http://my-opencode-server:3000oplire reset # Full WARP tunnel reset
oplire quick-reset # Fast IP rotation (no service restart)
oplire status # Check WARP connection status
oplire stop # Stop WARP tunnel
oplire install # Install Cloudflare WARPoplire proxy # Start reverse proxy on :8080
oplire proxy --listen 0.0.0.0:9000 # Custom listen address
oplire daemon # Background daemon mode
oplire watch # Monitor OpenCode, auto-reset on 429oplire config show # Show current settings
oplire config set # Save configuration
oplire config reset # Reset to defaultsoplire doctor # Check WARP, Claude Code, OpenCode setup
oplire about # Show version and infooplire connect claude-code# Start proxy in background
oplire daemon &
# Set environment and launch Claude Code
export ANTHROPIC_BASE_URL=http://127.0.0.1:8080
export ANTHROPIC_API_KEY=oplire-proxy-key
claudeclaude
> /config
# Set API Base URL: http://127.0.0.1:8080
# Set API Key: oplire-proxy-keyWhen connected through the proxy, these models appear in Claude Code's /models list:
| Model | ID |
|---|---|
| GLM 4.7 Free | glm-4.7-free |
| MiniMax M2.1 Free | minimax-m2.1-free |
| Kimi K2.5 Free | kimi-k2.5-free |
| Qwen 2.5 72B Free | qwen-2.5-72b-free |
| Llama 3.3 70B Free | llama-3.3-70b-free |
--verbose- Detailed output--dry-run- Preview changes without executing--json- JSON output (status command)
Version: 2.1.0
Language: Rust
Purpose: OpenCode rate limit reset + Anthropic proxy
Infrastructure: Cloudflare WARP + Axum HTTP
Author: Berke Oruc
GitHub: https://github.com/BerkeOruc/oplire
MIT License. See LICENSE for details.
Made by Berke Oruc