Connect OpenCode to Legnext
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, 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 OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode 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 OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Legnext with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Legnext wired in as tools. Connect your account and run.