+ {/* Start/Stop Button - always on top */}
+
+ {isRunning ? (
+
+ ) : (
+
+ )}
+
+
+ {message?.type === "error" && (
+
+ error
+ {message.text}
+
+ )}
+
+ {/* When running: API Key + Model Mappings */}
+ {isRunning && (
+ <>
+
+ API Key
+ arrow_forward
+ {apiKeys.length > 0 ? (
+
+ ) : (
+
+ {cloudEnabled ? "No API keys - Create one in Keys page" : "sk_9router (default)"}
+
+ )}
+
+
+ {tool.defaultModels.map((model) => (
+
+ {model.name}
+ arrow_forward
+ handleModelMappingChange(model.alias, e.target.value)}
+ placeholder="provider/model-id"
+ className="flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"
+ />
+
+ {modelMappings[model.alias] && (
+
+ )}
+
+ ))}
+
+
+
+
+ >
+ )}
+
+ {/* When stopped: how it works */}
+ {!isRunning && (
+
+
+ How it works: Intercepts Antigravity traffic via DNS redirect, letting you reroute models through 9Router.
+
+
+ 1. Generates SSL cert & adds to system keychain
+ 2. Redirects daily-cloudcode-pa.googleapis.com → localhost
+ 3. Maps Antigravity models to any provider via 9Router
+
+
+ )}
+
+ )}
+
+ {/* Password Modal */}
+