Cross-Protocol Translation
Serves /v1/chat/completions, /v1/completions, /v1/embeddings, /v1/messages, and /v1beta/models/* while preserving tool calls, strict mode, and signed thinking replay metadata.
One shared gateway core exposing OpenAI, Anthropic, and Gemini APIs across Cloudflare Workers, EdgeOne Makers, Alibaba Cloud ESA, and a self-hosted Node.js 24 + SQLite state service.
AI Translation Notice
This site and documentation have been translated by an AI language model. In case of any discrepancies or ambiguities, please refer to the Chinese documentation as the authoritative source.
What ModelBridge Delivers
/v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models), Anthropic /v1/messages, and Gemini /v1beta/models/* while preserving tool strictness and signed thinking replay metadata.ADMIN_PASSWORD, apiKeys, upstream creds, and MODELBRIDGE_STATE_TOKEN across WAL SQLite or AppConfigStore DO, supporting explicit upstream:<id>:<model> pinning.16 MiB, Makers 1 MiB, ESA 4-fetch limit) and validates custom upstream baseUrl values via public HTTPS checks.Explicit Non-Goals & Hard Boundaries
/v1/responses or image/audio media generation; Gemini :countTokens always returns 501.5xx errors never fail over across accounts to avoid duplicate billing.1 MiB request cap.Requires Node.js 24+ at the repository root (zero third-party runtime dependencies for the core gateway and state service):
# 1. Run syntax checks and full mocked regression tests
pnpm run check
node --test tests/*.test.mjs
# 2. Build all six deployment bundles under dist/
node tools/build-platforms.mjs
# 3. Start the self-hosted SQLite state service locally (127.0.0.1:8788)
MODELBRIDGE_STATE_TOKEN="$(openssl rand -hex 32)" pnpm run start:stateQuick Navigation by Role & Goal
upstream: / alias resolution;createGateway platform / provider adapters;