by noviaidrl
GitHub Copilot as Local AI API Bridge for Claude Code 2026
# Add to your Claude Code skills
git clone https://github.com/noviaidrl/copilot-tunnel-proxyGuides for using cli tools skills like copilot-tunnel-proxy.
copilot-tunnel-proxy is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by noviaidrl. GitHub Copilot as Local AI API Bridge for Claude Code 2026. It has 75 GitHub stars.
copilot-tunnel-proxy's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/noviaidrl/copilot-tunnel-proxy" and add it to your Claude Code skills directory (see the Installation section above).
copilot-tunnel-proxy is primarily written in HTML. It is open-source under noviaidrl on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh copilot-tunnel-proxy against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A self-contained, protocol-agnostic API translation and routing layer that converts any local tool’s native API calls into the format expected by remote AI model endpoints, without exposing credentials, altering workflow, or requiring cloud-side changes.
Modern development tools—from terminal-based assistants to in-editor code completions—now demand direct access to proprietary AI model APIs. This creates friction: each tool speaks a different dialect of HTTP, each provider enforces unique authentication schemes, and every endpoint imposes its own rate limits, context windows, and response formats. You end up writing custom middleware for every combination.
API-Mirror inverts that problem. Instead of adapting tools one-by-one, it sits as a local transparent proxy that rewrites requests and responses in flight. You configure it once—pointing it at your preferred remote API—and it exposes a universal local endpoint that speaks any protocol your tools require. The result: you replace a dozen brittle integrations with a single, declarative configuration file.
Think of it as a lingua franca for API communication between your development environment and external model services. No account sharing, no environment variable soup, no duplicated effort when you switch providers.
The original copilot-bridge project demonstrated that GitHub Copilot could be coerced into serving as a generic AI backend. That was clever, but it bound you to Copilot’s specific authentication and rate limits. API-Mirror generalizes the concept: you choose the remote provider (OpenAI, Anthropic, or any compatible service), and API-Mirror handles the translation layer so your local tools never know the difference.
Key insight: the interface your tools expect is not the interface your provider offers. API-Mirror bridges that gap with zero changes to either side.
providers:
- name: my-openai
type: openai
endpoint: https://api.openai.com/v1
credentials_file: /path/to/creds.enc
default_model: gpt-4o
- name: my-anthropic
type: anthropic
endpoint: https://api.anthropic.com
credentials_file: /path/to/creds.enc
default_model: claude-opus-4-20250514
routes:
- match: { tool: codex }
target: my-openai
- match: { tool: claude-code }
target: my-anthropic
api-mirror --config config.yaml
http://localhost:9090/v1 (or whichever port you configure). Use any dummy API key—API-Mirror will substitute the real credentials transparently.| Approach | Requires changes to tools? | Requires changes to providers? | Handles multiple protocols? | Credential isolation? |
|---|---|---|---|---|
| Direct integration | Yes | No | No | Partial |
| Reverse proxy (generic) | No | No | No | Yes |
| API-Mirror | No | No | Yes | Full |
Many tools expect streaming responses in a specific format (e.g., server-sent events with custom fields). API-Mirror can buffer streamed chunks, reassemble responses, and re-chunk them into the target format—preserving the streaming experience while changing the underlying data.
Configure rate limits per provider. API-Mirror will queue requests, retry on 429 responses, and distribute load across multiple endpoints or accounts if you specify fallbacks.
Inject custom logic at any stage of the translation pipeline via JavaScript or Lua scripts. Example use cases:
Local Tool ──HTTP──> API-Mirror (localhost:9090)
│
┌───────┴───────┐
│ Translation │
│ Engine │
└───────┬───────┘
│
┌───────┴───────┐
│ Router │
└───────┬───────┘
│
┌─────────────┼─────────────┐
│ │ │
OpenAI Anthropic Other APIs
All translation happens in-process on your machine. No external proxy services, no data transiting third-party infrastructure. You control exactly where requests go.
API-Mirror never stores credentials in plain text. The encrypted config file uses AES-256-GCM with a key derived from your master password via Argon2id. Even if the config file is exfiltrated, it cannot be decrypted without the password.
Additionally, API-Mirror supports sandbox mode: running with a restricted set of permissions (no filesystem access beyond the config directory, no network access to unknown hosts, no spawning of subprocesses). This prevents the proxy itself from becoming an attack vector.
While the proxy core is written in Rust, its configuration and plugin interfaces support Unicode across all major written languages. Messages, error logs, and documentation can be localized. The translation engine handles non-Latin characters in API payloads without corruption.
API-Mirror is designed to run as a daemon that restarts automatically on failure. It exposes a health check endpoint (/health) that returns 200 when the proxy is operational. Use process managers like systemd or launchd to ensure continuous uptime.
For critical deployments, run multiple API-Mirror instances behind a load balancer, each with its own set of provider credentials and independent encrypted config files.
This project is licensed under the MIT License. See LICENSE for full details.
API-Mirror is a tool for routing and translating API calls. It does not authorize or authenticate you to use any third-party service. You are responsi