[PLATFORM]
Platform
- OS and version: Linux Mint 22.3 (Zena)
- Node.js version: 24.16
- Shell: bash
- How you started the proxy: ./start -p 8443
What happened
Started (see my comment in #1 for the fix to be done before) and the panel opens. I'm not sure of that but it looks like the environment variables are not taken into account. My API keys are stored in environment variables so I should not have to create a .env file. E.g. I have OPENROUTER_API_KEY=sk-or-v1-***** in the envt but in the UI, I don't see the key for openrouter.
So, when I start antigravity, I still continue to see only the usual LLMs (gemini, claude, ...)
Relevant output
$ cat /home/olivier/devt/antigravity-proxy/proxy/logs/proxy_20260612_194658.log
◇ injected env (16) from .env // tip: ⌘ suppress logs { quiet: true }
[2026-06-12T17:46:58.579Z] [INFO] [registry] Registered provider: openai (OpenAI)
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: anthropic (Anthropic)
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: google (Google Gemini)
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: nvidia (NVIDIA NIM)
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: openrouter (OpenRouter)
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: groq (Groq)
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: zen (Zen (OpenCode))
[2026-06-12T17:46:58.580Z] [INFO] [registry] Registered provider: ollama (Ollama (Local))
[2026-06-12T17:46:58.581Z] [INFO] [registry] Registered provider: vllm (vLLM (Local))
[2026-06-12T17:46:58.581Z] [INFO] [registry] Registered provider: lmstudio (LM Studio (Local))
[2026-06-12T17:46:58.581Z] [INFO] [plugins] Registered 10 built-in providers
[2026-06-12T17:46:58.608Z] [INFO] === Antigravity Proxy (openrouter) ===
[2026-06-12T17:46:58.622Z] [INFO] Google backend resolved {"ip":"216.239.38.223"}
[2026-06-12T17:46:58.625Z] [INFO] openrouter: https://openrouter.ai/api/v1
[2026-06-12T17:46:58.627Z] [INFO] Ready
[2026-06-12T17:46:58.628Z] [INFO] Port 4000 (HTTP) → Dashboard + init calls
[2026-06-12T17:46:58.628Z] [INFO] Dashboard: http://localhost:4000
[2026-06-12T17:46:58.629Z] [INFO] Port 8443 (HTTPS) → Intercept: [/v1internal:streamGenerateContent, /v1internal:cascadeGenerateContent, /v1internal:cascadeStreamGenerateContent]
[2026-06-12T17:46:58.640Z] [WARN] [provider-cache] Failed to fetch lmstudio models: fetch failed
[2026-06-12T17:46:58.668Z] [INFO] [local-discovery] Ollama found at http://localhost:11434 (0 models)
[2026-06-12T17:46:58.722Z] [WARN] [provider-cache] Failed to fetch google models: HTTP 400
[2026-06-12T17:46:58.766Z] [WARN] [provider-cache] Failed to fetch vllm models: HTTP 404
[2026-06-12T17:46:58.808Z] [INFO] Local providers found: Ollama (0 models)
[2026-06-12T17:46:58.810Z] [INFO] [engine] Router, config, and model maps reloaded
[2026-06-12T17:53:37.210Z] [INFO] Shutdown
[2026-06-12T17:46:58.625Z] [INFO] openrouter: https://openrouter.ai/api/v1
[2026-06-12T17:46:58.627Z] [INFO] Ready
[2026-06-12T17:46:58.628Z] [INFO] Port 4000 (HTTP) → Dashboard + init calls
[2026-06-12T17:46:58.628Z] [INFO] Dashboard: http://localhost:4000
[2026-06-12T17:46:58.629Z] [INFO] Port 8443 (HTTPS) → Intercept: [/v1internal:streamGenerateContent, /v1internal:cascadeGenerateContent, /v1internal:cascadeStreamGenerateContent]
[2026-06-12T17:46:58.640Z] [WARN] [provider-cache] Failed to fetch lmstudio models: fetch failed
[2026-06-12T17:46:58.668Z] [INFO] [local-discovery] Ollama found at http://localhost:11434 (0 models)
[2026-06-12T17:46:58.722Z] [WARN] [provider-cache] Failed to fetch google models: HTTP 400
[2026-06-12T17:46:58.766Z] [WARN] [provider-cache] Failed to fetch vllm models: HTTP 404
[2026-06-12T17:46:58.808Z] [INFO] Local providers found: Ollama (0 models)
[2026-06-12T17:46:58.810Z] [INFO] [engine] Router, config, and model maps reloaded
[2026-06-12T17:53:37.210Z] [INFO] Shutdown
What you tried
Thanks for the report! The proxy was already reading system environment variables for actual routing (via config.ts → process.env), so it should have been working functionally. But the dashboard display was only reading from the .env file, so your API keys appeared empty in the UI even when they were correctly loaded from your shell environment.
Fixed in 1317e74 — readEnv() now overlays .env file contents with process.env for all known environment variables. So if you have "export OPENROUTER_API_KEY=sk-or-v1-..." in your shell, the dashboard will now show it correctly (masked).
One thing to check on your side: make sure Antigravity 2.0 Desktop is configured to point to the proxy (localhost:8443 with your --port 8443 flag) rather than directly to Google's servers. The proxy only intercepts traffic that hits its port. If Antigravity is still talking directly to Google, that would explain why you're still seeing only the usual models.