Drive Google Flow from Claude, Codex or a local control panel, on Mac or Windows — using your Google AI subscription credits instead of the pay-per-use video API. No browser extension.
#!/usr/bin/env node
// Standalone Studio: runs the panel without Claude. If Claude's MCP process already serves it, just opens that.
import { LocalCore } from "./core.js";
import { PORT, startServer } from "./server.js";
import { openUrl } from "./platform.js";
const role = await startServer(new LocalCore());
const url = `http://127.0.0.1:${PORT}`;
if (role === "none") {
console.error(`Port ${PORT} is used by another program. Set FLOW_MCP_PORT to a free port.`);
process.exit(1);
}
console.log(role === "owner" ? `Flow Studio running at ${url} (Ctrl+C to stop)` : `Flow Studio is already served by Claude's flow-mcp at ${url}`);
openUrl(url);
if (role === "client") process.exit(0);