Claude Code model router

Opendray

Self-hosted gateway for Claude Code, Codex, Antigravity, Grok Build, OpenCode. Run AI coding agents on your own infra with a shared local-first memory layer. Drive from web, mobile, Telegram / Slack / Discord / Feishu / DingTalk / WeCom. Open REST + WebSocket API. Apache 2.0.

Install

Install
npx opendray            # or: npm install -g opendray

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/Opendray/opendray.git

From the README

opendray

  Run Claude Code, Codex, Antigravity, Grok Build & OpenCode on your own server, and drive them from web, mobile, or chat.

  opendray.dev

  🌐 English · 简体中文 · فارسی · Español · Português · 日本語 · 한국어 · Français · Deutsch · Русский

Running an AI coding agent over SSH means it dies the moment your laptop sleeps. opendray runs it on a host that stays awake (a Mac mini, a NAS, a VPS) and lets you reattach from a browser, a phone, or a chat message. The session keeps executing whether or not anyone is connected.

One Go binary. Your infrastructure. No cloud account, no telemetry, no subscription.

Why opendray

- Sessions that never drop. The agent runs on your host and survives client disconnect, laptop sleep, and host reboot. Reattach hours later; the transcript is exactly where you left it.
- Drive from anywhere. A React web admin, a Flutter mobile app, and six chat channels (Telegram, Slack, Discord, Feishu, DingTalk, WeCom), every one bidirectional. Get pinged when a session goes idle; reply to feed the next prompt back in.
- Five agents, one gateway. Claude Code, Codex, Antigravity, Grok Build, OpenCode, plus any shell. Adding a CLI is a JSON descriptor drop-in.
- Multi-account fleet. Drop several logged-in accounts on the host; opendray pools them, balances new sessions, and switches a live session between accounts without losing the conversation.
- Local-first memory. Cross-session recall across user / project / session scopes, embeddings from ONNX, Ollama, or LM Studio. No vector data leaves your network.
- Built to build on. REST + WebSocket API with scoped keys, per-call audit log, and reverse-proxy mounts. Use opendray as your own product's agent runtime.
- Self-hosted & licence-clear. Apache 2.0, one static binary, cosign-signed releases.

Quick…
Read the full README on GitHub

Details

Language
Dart
License
Apache-2.0
Last updated
1 November 2026
Topics
agent-runtimeai-agentsai-codingai-gatewayantigravityclaude-codecodex-clidingtalkdiscord-botfeishufluttergateway

FAQ

What is Opendray?

Self-hosted gateway for Claude Code, Codex, Antigravity, Grok Build, OpenCode. Run AI coding agents on your own infra with a shared local-first memory layer. Drive from web, mobile, Telegram / Slack / Discord / Feishu / DingTalk / WeCom. Open REST + WebSocket API. Apache 2.0. It is a model router for Claude Code, from Opendray/opendray on GitHub.

How do I install Opendray?

Run npx opendray # or: npm install -g opendray, then follow the setup in the README.

Is Opendray popular?

Opendray/opendray has 69 GitHub stars and 14 forks. It was last updated on 1 November 2026.

More model routers & proxies

Claude CLI

77

codingauto/claude_cli

Claude Code Proxy 是一个 完全开源 的住宅代理服务,为 Claude / Anthropic API 等 AI 服务提供稳定、持久、难以被检测的住宅 IP 访问能力,支持多代理供应商与企业级防风控功能。

Model routers & proxies

AegisGate

71

ax128/AegisGate

Open-source security gateway for LLM APIs — prompt injection detection, PII redaction, dangerous response sanitization, and audit logging. OpenAI/Claude compatible, MCP & Agent SKILL support. Drop-in proxy for AI coding agents (Cursor, Claude Code, Codex).

Model routers & proxies11

Claude Code Wsl2 Setup

55

congmnguyen/claude-code-wsl2-setup

Guides and scripts for Claude Code on WSL2: screenshot paste, Windows notifications, LSP, and statusline.

Model routers & proxies

Claude Code Proxy

67

kiyo-e/claude-code-proxy

Proxy that translates between the Anthropic API and OpenAI-compatible APIs, so Claude Code can run against other models.

Model routers & proxies16

Cloud CLI Proxy

73

ZaneL1u/cloud-cli-proxy

更强大的 Claude Code Wrapper,通过容器化将你包装成一个地地道道的美国人,从根源上规避 Claude Code 风控。

Model routers & proxies19

CC Simplerouter

83

kdsuomi/cc-simplerouter

Install and setup in 26 seconds. Simplerouter configures Claude Code to use any compatible OpenRouter model in seconds, WITHOUT manual editing of config files, environment variables, or messing with local webservers/webUIs. It also doesn't overwrite your existing Claude Code subscription sign-in!

Model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.