How to Install Mercury 3 in OpenCode

How to Install Mercury 3 in OpenCode
Last updated: October 20, 2026
Mercury 3 is a new language model from Inception.
It uses a diffusion approach to generate text. This differs from models that generate one token after another. A token is a small piece of text.
Inception released Mercury 3 on October 19, 2026. The company positions speed as its main advantage. Its published performance figures come from Inception, so treat them as vendor claims until independent tests appear. (Inception announcement)
This guide shows you how to connect Mercury 3 to OpenCode.
One important correction first: you do not install Mercury 3 locally. You install OpenCode on your computer. OpenCode then sends requests to Mercury 3 through Inception's API.
An API is a secure connection between two software tools.
What you need
You need three things:
- A computer with Windows, macOS, or Linux.
- OpenCode installed on that computer.
- An Inception account and API key.
An API key is a private password used by software. Never publish it or commit it to GitHub.
OpenCode is an open-source coding agent. It can read a project, explain code, plan changes, and edit files with your permission. It is available in the terminal, as a desktop app, and through supported code editors. (OpenCode documentation)
Step 1: Install OpenCode
Choose the method that matches your computer.
Windows
OpenCode recommends Windows Subsystem for Linux, also called WSL, for the best Windows experience.
If you already use WSL, open its terminal and run:
curl -fsSL https://opencode.ai/install | bash
You can also install OpenCode directly in Windows.
With Chocolatey:
choco install opencode
With Scoop:
scoop install opencode
With npm:
npm install -g opencode-ai
npm is a package installer that comes with Node.js. Use this method only if Node.js is already installed.
macOS
Use the official installation script:
curl -fsSL https://opencode.ai/install | bash
Or use OpenCode's Homebrew tap:
brew install anomalyco/tap/opencode
OpenCode recommends its own tap because it receives releases faster than the general Homebrew formula.
Linux
For most Linux systems, run:
curl -fsSL https://opencode.ai/install | bash
For Arch Linux stable:
sudo pacman -S opencode
For the latest Arch User Repository build:
paru -S opencode-bin
These commands come from the official OpenCode installation guide.
Confirm the installation
Close and reopen your terminal. Then run:
opencode --version
You should see an OpenCode version number.
If the command is not found, restart the terminal first. Then check whether the installation folder was added to your system path.
OpenCode warns that versions 1 and 2 use the same opencode command. They cannot use that default command side by side. Check the migration note if you already have another OpenCode version installed.
Step 2: Create an Inception account
Open the Inception Platform.
Sign in with Google, GitHub, or your email. Create an account if you do not have one.
This platform provides access to Inception's API. It is separate from the public Mercury chat page.
Step 3: Generate your API key
After signing in, open the API key area in your Inception account.
Create a new API key. Give it a clear name, such as:
OpenCode on Ahmed's laptop
Copy the key when it appears.
Store it in a password manager. Do not place it inside a public document, screenshot, repository, or shared message.
The exact dashboard labels can change. If the key area looks different, use the official Inception Platform and follow its current interface.
Step 4: Start OpenCode
Open your terminal and move into your project folder:
cd /path/to/your/project
Replace the example path with your real folder.
Then start OpenCode:
opencode
You should now see OpenCode's terminal interface.
Step 5: Connect Inception
Inside OpenCode, type:
/connect
Start typing Inception in the provider search.
Select Inception from the list.
Choose Add account.
Paste your Inception API key when OpenCode asks for it.
OpenCode includes Inception as a built-in provider. You do not need an MCP server, proxy, or custom provider file for this basic setup. (Official Inception OpenCode guide)
Step 6: Select Mercury 3
Choose Mercury 3 as your model.
If you need to change models later, run:
/models
Then select Mercury 3 again.
Inception lists the API model name as mercury-3. Its API uses this base address:
https://api.inceptionlabs.ai/v1
You should not need to enter that address manually in OpenCode. The built-in provider handles it. (Inception integrations)
Step 7: Initialize your project
Inside the project, run:
/init
OpenCode will study the project and create an AGENTS.md file.
That file gives coding agents instructions about your project. Review it before accepting it. OpenCode recommends committing it to Git after review. (OpenCode documentation)
Step 8: Test the connection safely
Start with a read-only request:
Explain this project in plain English. Do not change any files.
Then ask for a plan:
Find one small improvement. Create a plan only. Do not edit anything yet.
Review the plan before allowing changes.
Do not begin with a request that can delete files, change production data, or publish code. A fast model can still make a fast mistake.
No-terminal option for non-technical users
You do not need OpenCode if you only want to chat with Mercury 3.
Open Mercury Chat in your browser.
Sign in, start a new conversation, and type your question.
This route is better for writing, research, summaries, and general questions. It does not provide the same project-level coding workflow as OpenCode.
Use the browser chat when you want a simple assistant. Use OpenCode when you want the model to work with files inside a coding project.
Common problems
OpenCode does not start
Run:
opencode --print-logs
You can also update OpenCode:
opencode upgrade
The API key is rejected
Run /connect again and reconnect Inception.
Check that you copied the full key. Also confirm that your Inception account has access and available usage.
Mercury 3 does not appear
First confirm that Inception is connected. Then run:
/models
If the model list still looks old, exit OpenCode and refresh its model data:
opencode models --refresh
OpenCode's official troubleshooting guide also recommends checking authentication, model access, and the provider connection. (OpenCode troubleshooting)
The practical setup
The full process is simple:
- Install OpenCode.
- Sign in to Inception.
- Generate an API key.
- Start OpenCode in your project.
- Run
/connect. - Select Inception.
- Paste the API key.
- Select Mercury 3.
- Test it with a read-only request.
The installation is the easy part. The real work is controlling what the agent can change.
Start with a small project. Ask for a plan before edits. Review every important change.
Follow @salama_win for practical AI tools and workflows.
Sources
Stay ahead of the curve
Join my private newsletter for exclusive insights, tools, and thoughts straight to your inbox. No spam, just value.