Connectors Gateway
One gateway between your AI clients and everything they should be allowed to
touch. Cloud APIs and software on your own machine, behind one normalized
connector contract, one policy layer, and one audit trail.
Clone it, set four variables, deploy. Current release: v0.4.0 · see
CHANGELOG.md.

What you get
An AI client should not need to know whether an action runs over REST, OAuth,
MCP, a WebSocket, a local socket, or an application SDK.
flowchart LR
AI["ChatGPT / Claude / Cursor / Agent"] --> GW["Connectors Gateway"]
GW --> CR["Connector Registry"]
CR --> CE["Cloud Executor"]
CR --> LE["Local Executor"]
CE --> SaaS["Your APIs / SaaS / any MCP server"]
LE --> RELAY["Secure Device Relay"]
RELAY --> AGENT["Connectors Agent"]
AGENT --> LOCAL["Blender / Unreal / filesystem / local apps"]
One public HTTPS surface. Local machines never expose a public IP or an inbound
port — the agent dials out.
Core invariant: public AI clients talk only to the gateway; local software
talks only to the local agent; the agent opens the connection outward.
Deploy it
The four variables
| Variable | What it is |
|---|
NEXT_PUBLIC_CONVEX_URL | Your *.convex.cloud address |
CONVEX_DEPLOY_KEY | Convex production deploy key, with env read + write |
GATEWAY_SECRET | openssl rand -base64 48 — every other key is derived from it |
CONNECTORS_ENABLED | Which shipped connectors to serve. example to start |
That is the whole list. The AES key for credentials at rest, the Convex service
token and the Ed25519 job-signing keypair are derived from GATEWAY_SECRET
with HKDF — the Convex deployment and the Next.js process agree on them because
they each computed them, not because you copied anything twice.
bun run secrets -- --new # mint a root secret, see what it expands into
Rotating GATEWAY_SECRET re-keys everything at once, including the key that
sealed your stored connection credentials. Once you have live connections, pin
CREDENTIAL_ENCRYPTION_KEY explicitly and keep it — explicit beats derived, per
variable.
The steps
- Deploy the button above, or push your clone and import it into Vercel.
vercel.json already sets the build; leave the root directory alone.
- Create a Convex project and paste its URL and a production deploy key.
The key needs
deployment:deploy + deployment:env:view +
deployment:env:write, because the build provisions the Convex side for you.
- Deploy. The build gates on types and both test suites before it touches
Convex, then pushes functions and schema, then builds the dashboard.
- Sign up on your new deployment, then set an admin ceiling:
bunx convex env set ADMIN_EMAILS "[email protected]".
- Connect a client.
/setup shows the MCP address and mints an API key.
Every push to your production branch redeploys Convex and the frontend together.
docs/20-vercel-template.md explains what the
build actually does and why the secrets are derived.
What runs where
| Deployable | What it is | Vercel? |
|---|
apps/web | Dashboard and the gateway HTTP edge | yes |
| Convex | Control plane: devices, connections, policy, audit | yes |
apps/gateway | Bun edge plus the device relay | no |
apps/agent | Daemon on a user's own machine | n/a |
A Vercel deployment serves cloud connectors. Local connectors (Blender, a
local filesystem) need a WebSocket held open for hours, which a serverless
function cannot do — deploy apps/gateway on Railway, Fly, Render, a VPS or
Dokploy when you want those. Nothing changes in the Vercel deployment when you
do; both hosts derive the same keys from the same GATEWAY_SECRET.