← Back to AI Insights
Gemini Executive Synthesis

Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.

Technical Positioning
Open, extensible AI agent platform supporting diverse model backends and deployment scenarios (e.g., browser extensions, self-hosted LLMs).
SaaS Insight & Market Implications
This issue exposes a critical vendor lock-in for `fx` users, particularly those leveraging `libfx` or WASM embeddings. The hard-wiring to Vercel AI Gateway restricts `fx`'s utility for organizations requiring custom AI model providers, self-hosted LLMs, or direct integration with existing infrastructure. The current `FX_GATEWAY_CHAT_URL` workaround is insufficient for production environments and embedders. This limitation severely constrains `fx`'s market reach beyond the Vercel ecosystem, hindering adoption by enterprises with established AI infrastructure or specific data governance requirements. Introducing a first-class, host-trusted custom provider mechanism is essential for `fx` to compete as a truly versatile and enterprise-ready AI agent platform, enabling broader integration and reducing friction for diverse developer workflows.
Proprietary Technical Taxonomy
Vercel AI Gateway Gateway language-model protocol OpenAI Chat Completions FX_GATEWAY_CHAT_URL loopback HTTP custom / third-party provider OpenAI-compatible proxy self-hosted vLLM/Ollama

Raw Developer Origin & Technical Request

Source Icon GitHub Issue Aug 19, 2026
Repo: vercel-labs/fx
Support a host-configured custom provider for libfx / WASM

## 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.

Extracted Positioning
Skill discovery mechanism that rejects symlinks resolving outside the home or workspace root, specifically impacting Nix-managed skills.
Robust and flexible skill management, compatible with modern package managers and diverse file system structures.
Extracted Positioning
Inability of the native `fx` CLI to use direct vendor API keys (OpenAI, Anthropic, Google Gemini), requiring routing through Vercel AI Gateway.
Flexible, direct, and secure access to leading AI models, respecting user's existing vendor relationships and data routing preferences.
Extracted Positioning
Lack of Homebrew Tap for simplified installation on macOS.
Standardized, user-friendly installation experience on macOS.
Extracted Positioning
Unconditional indexing of compatibility skill roots from other agent harnesses, lacking user control to disable or exclude them.
Configurable and efficient agent skill management, allowing granular control over skill discovery and loading sources.
Top Replies
boozedog • Aug 19, 2026
@ddalcu i took a stab at this on my fork, this is early version that only supports /chat/completions and not /responses https://github.com/boozedog/fx/tree/feature/openai-compatible-transport
boozedog • Aug 19, 2026
i've got a draft PR for (only!) adding openai support https://github.com/vercel-labs/fx/pull/168 this should work fine with local models too!

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.?
Based on our AI analysis of the original developer request, its primary technical positioning is: Open, extensible AI agent platform supporting diverse model backends and deployment scenarios (e.g., browser extensions, self-hosted LLMs).
Are engineers actively discussing Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.?
Yes, we have tracked 1 direct responses and active debates regarding this specific topic originating from GitHub Issue.
What are the foundational technologies related to Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings.?
Our proprietary extraction maps Hard-wiring of `fx` to Vercel AI Gateway, preventing host-configured custom AI model providers for `libfx` and WASM embeddings. to adjacent architectural concepts including Vercel AI Gateway, Gateway language-model protocol, OpenAI Chat Completions, FX_GATEWAY_CHAT_URL.

Engagement Signals

1
Replies
open
Issue Status

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.