Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.
Raw Developer Origin & Technical Request
GitHub Issue
Aug 19, 2026
## Problem
Production fx is hard-wired to [Vercel AI Gateway](vercel.com/docs/ai-gateway `fx login`, `fx setup`, and `AI_GATEWAY_API_KEY` all talk to `ai-gateway.vercel.sh` using the Gateway language-model protocol, not OpenAI Chat Completions.
`FX_GATEWAY_CHAT_URL` exists, but it only accepts the canonical Gateway URL or **loopback HTTP**. That is enough for a local shim during CLI development. It is not enough for:
- a **custom / third-party provider** (OpenAI-compatible proxy, self-hosted vLLM/Ollama, company gateway)
- **`libfx` / `fx-term.wasm` embedders**, especially browser and extension hosts, which cannot realistically run a loopback Gateway adapter next to the WASM module
I am embedding `createFxTerminal()` from `libfx/browser` in a Chrome extension. The only credential I can pass today is `env.AI_GATEWAY_API_KEY`. There is no host-trusted way to say “use this provider, this base URL, this key, this model.” Intercepting `fetch` and translating Gateway LM-spec v4 into another protocol is possible but fragile and unofficial.
## Request
Add a first-class, **host-trusted** custom provider — not repository config.
Suggested shape (names flexible):
```js
await createFxTerminal({
env: {
FX_PROVIDER: 'openai-compatible',
FX_MODEL: 'deepseek-chat',
OPENAI_BASE_URL: 'api.example.com/v1&
OPENAI_API_KEY: '…',
},
});
```
Native CLI equivalent could be the `fx setup openai-compatible` / `FX_PROVIDER` surface already sketched...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from vercel-labs/fx.
Frequently Asked Questions
Market intelligence mapped to Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings..
What is the technical positioning of Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.?
Are engineers actively discussing Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.?
What architecture is tied to Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like Chrome extension and OPENAI_API_KEY by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics