Codex + MagicPath Infinite Design Canvas
Lukas Margeriego watch the original →
the gist
Codex's Preview Browser with MagicPath skill lets you generate, edit, and compare multiple design variants side-by-side in one infinite canvas, plus integrate OpenAI images and Mobbin references.
The Breakthrough
Lukas Margerie demonstrates turning Codex into an infinite design canvas by installing the MagicPath skill and using the Codex Preview Browser pointed at magicpath.ai, which provides full context for generating and viewing multiple landing page variants simultaneously.
Setup and Core Workflow
The author starts a new blank project in Codex at chatgpt.com/codex. He creates a new design file in MagicPath, copies the install command from MagicPath's connect agent button, and pastes it into Codex with the prompt "install this skill" followed by the command. Codex requires a restart after installation. The author then prompts "log into my Magic Path account," which opens a login link.
He opens the Codex Preview Browser panel via the top-right button, clicks the plus sign, selects "browser," and enters the URL magicpath.ai. To test context, he prompts Codex: "hey what are the different projects that I have in my account." Codex lists projects like "project 4" and "demo." He selects the "demo" project and closes the panel for full canvas view.
Generating and Editing Variants
With the browser open to MagicPath's demo project, Codex generates designs on command. Prompt: "make me a landing page for a SaaS that helps landscapers find clients." Codex uses the MagicPath skill and builds sections including hero, lead pipeline, visual proof, metrics, and workflow.
For variants, prompt: "let's make an additional variant of this design where the hero section shows testimonials." Codex adds a new component with a testimonial-focused hero. In MagicPath, users manually edit by selecting components, adjusting spacing, or changing backgrounds.
Prompt for pricing edit (in MagicPath left panel, without Codex): "Let's edit the pricing section to have three different pricing options with three different prices."
API and MCP Integrations
For logos, the author creates an OpenAI API key at platform.openai.com, prompts Codex: "create a .env file," pastes OPENAI_API_KEY=sk-... in the loaded file via VS Code or Cursor, then: "I want to create a new logo for lawn lead i would like for the open AAI image API to create a transparent simple logo for me and then we can just replace it in these designs navbars." He reruns for white version: "rerun this but white."
For backgrounds: "replace the background image of this specific component which is the land landscaper client finder landing page with an image you can generate with the same API of a man mowing a lawn somewhere in South Florida in a South Florida commercial building."
For Mobbin MCP, click install MCP in MagicPath, copy command to Codex: "install this," log into mobbin.com. Restart Codex. Prompt: "research on different three different pricing sections that might be in a similar industry." Codex pulls references like Relevance AI and Height. Prompt: "magic path let's build all of these variants inside of magic path," spawning variants such as "operational SaaS three plan grid," "founder offer," and "premium panel."
Local Run and Deployment
Prompt: "let's run this component in the local host." Codex runs the design on localhost. For custom domain, mention Vercel to Codex, which logs into vercel.com to start deployment.