Connect Codex to Legnext
Set up in minutes
Choose where it runs
On your computer through your own Codex, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Legnext
A preset of real Legnext operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Legnext
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your Codex first calls in. Codex connects when a session starts — run codex, or restart a running one (in the Codex app, Restart).
Run this in your terminal. The Codex app shares its config, so it gets the server too
<your-link> is your personal server URL — setup mints it for you.
Tools Codex gets
Legnext
20 toolsGenerate an image grid from a Midjourney prompt.
Read the task's status, usage, and completed output URLs.
Upscale one image from a completed grid or draft batch.
Create subtle or strong variations of an image.
Animate a Legnext image job or a public image URL in the motion prompt.
Combine two to five source images.
Generate a fresh grid using the original job's prompt.
Generate prompt suggestions from an image.
Read the account's balance, credits, and points.
Extend a completed video using a new motion prompt.
Upscale one video from a completed video job.
Extend a completed image in one direction.
Expand the image beyond its borders in every direction.
Reinterpret a completed image using a new prompt.
Apply Midjourney Enhance to an image generated in draft mode.
Remove the background from a source image.
Transform an image's materials and textures.
Identify the most influential terms in a prompt.
Read the connected account's profile and plan.
List the account's staged, pending, and processing tasks by model.
About Codex
Frequently asked questions
More ways to connect
Open your Codex agent in one click.
NoClick runs Codex for you with Legnext wired in as tools. Connect your account and run.