Inability of the native `fx` CLI to use direct vendor API keys (OpenAI, Anthropic, Google Gemini), requiring routing through Vercel AI Gateway.
Raw Developer Origin & Technical Request
GitHub Issue
Aug 19, 2026
## Problem
fx can select OpenAI, Anthropic, and Google models through Vercel AI Gateway, but the native CLI cannot use those vendors' API keys directly. Users who already have vendor credentials, need direct billing/data routing, or do not want a Vercel account must build and maintain a loopback adapter that speaks fx's Gateway protocol.
The documented credential sources are Vercel login, `AI_GATEWAY_API_KEY`, and `VERCEL_OIDC_TOKEN`; there is no first-class `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or Gemini/Google API-key backend.
## Request
Add first-class direct vendor API-key backends, initially:
- OpenAI API
- Anthropic API
- Google Gemini API
A possible UX would be provider-specific setup such as `fx setup openai`, `fx setup anthropic`, and `fx setup google`, with secrets kept in profile-owned secure storage and the selected backend/model shown by `fx status` and `/models`.
The provider boundary should preserve the existing agent loop across backends: streaming, tool calls, reasoning controls where available, vision where available, usage reporting, ACP, and subagents. Project `.fx.json` should not be able to inject endpoints or select credential sources.
## Why this is separate from existing work
- #112 requests an OpenAI-compatible transport for **local models**.
- Draft PR #148 adds an OpenAI-compatible URL/key backend and OAuth backends for ChatGPT, Grok, and Cursor.
Those may cover direct OpenAI and OpenAI-compatible servers. This request is specifically fo...
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 Inability of the native `fx` CLI to use direct vendor API keys (OpenAI, Anthropic, Google Gemini), requiring routing through Vercel AI Gateway..
What problem does Inability of the native `fx` CLI to use direct vendor API keys (OpenAI, Anthropic, Google Gemini), requiring routing through Vercel AI Gateway. solve?
What is the general sentiment around Inability of the native `fx` CLI to use direct vendor API keys (OpenAI, Anthropic, Google Gemini), requiring routing through Vercel AI Gateway.?
What architecture is tied to Inability of the native `fx` CLI to use direct vendor API keys (OpenAI, Anthropic, Google Gemini), requiring routing through Vercel AI Gateway.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like streaming and vision by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics