Open-Source Terminal Agent · MCP Setup Guide

AgentDomains MCP for OpenCode

Connect OpenCode to AgentDomains using opencode.json remote Streamable HTTP or local stdio configuration with env interpolation.

Setup Time 45 sec
Transport HTTP & stdio
Cost $0 / 30 days
Card Needed None
CLIENT OpenCode HTTP & stdio JSON-RPC 20 MCP TOOLS mcp.agentdomains.co Streamable HTTP or stdio signup · claim · DNS · proxy Bearer adom_... auth AUTO TLS LIVE URL *.agentdomains.co or *.makes.fyi 200 OK · Edge HTTPS Returns live HTTPS URL to agent

MCP tool flow: OpenCode sends JSON-RPC calls to mcp.agentdomains.co and receives a live HTTPS domain.

01

Add Config

Open opencode.json (project) or ~/.config/opencode/opencode.json and paste the snippet below.

02

Reload Tools

Refresh MCP tools in OpenCode. Confirm 20 AgentDomains tools appear.

03

Run Prompt

Paste the test prompt below to check, claim, and route a live domain.

Config path: opencode.json (project) or ~/.config/opencode/opencode.json

1. Install & Configure OpenCode

Choose hosted Streamable HTTP for zero local setup, or pick local stdio to reuse your Go CLI config.

OpenCode — Streamable HTTP config
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "agentdomains": {
      "type": "remote",
      "url": "https://mcp.agentdomains.co",
      "headers": {
        "Authorization": "Bearer {env:AGENTDOMAINS_API_KEY}"
      },
      "enabled": true
    }
  }
}
OpenCode — Local stdio config
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "agentdomains": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "agentdomains-mcp"
      ],
      "environment": {
        "AGENTDOMAINS_API_KEY": "{env:AGENTDOMAINS_API_KEY}"
      },
      "enabled": true
    }
  }
}

2. Tested First Prompt

Reload MCP tools in OpenCode. Run this prompt to check a name, claim it, and set routing.

First prompt for OpenCode
Check if opencode-demo is available on makes.fyi, claim it, and set_proxy to opencode-demo.fly.dev.

3. OpenCode Setup Notes

4. Available MCP Tools (20 total)

OpenCode gets all 20 tools across account auth, domain claims, DNS records, and edge routing.

Account & Auth 5 tools

signupwhoamiattach_emailupgrade_to_promanage_billing

Domains & Stats 6 tools

check_availabilityclaim_domainlist_domainsget_domainget_visitsdelete_domain

DNS & ACME 4 tools

add_dns_recorddelete_recordadd_acme_challengedelegate_nameservers

Edge Proxy & Forward 5 tools

set_proxyremove_proxyset_forwardremove_forwarddelete_account
Test Live MCP Handshake → Browse 45 Host Playbooks

Frequently asked questions

Does OpenCode work with Streamable HTTP or stdio?

OpenCode supports Streamable HTTP & stdio. Pick hosted Streamable HTTP when available for zero local Node setup, or run npx -y agentdomains-mcp for stdio.

Where does OpenCode store its MCP config?

Store it in opencode.json (project) or ~/.config/opencode/opencode.json. Keep your adom_ API key in an env var and never commit it to Git.

How much does it cost to claim domains from OpenCode?

Start with a 30-day free trial for 10 names with no card. Pro costs $10/yr or $1/mo for up to 100 names.

Related MCP Clients

CLI Coding Agent

Claude Code MCP Setup

Connect Claude Code via Streamable HTTP or stdio. Claim hostnames, write DNS records, and wire HTTPS proxies from your terminal.

CLI Coding Agent

OpenAI Codex CLI MCP Setup

Configure AgentDomains in OpenAI Codex CLI via ~/.codex/config.toml with bearer_token_env_var or stdio npx agentdomains-mcp.

Open-Source CLI & Desktop Agent

Goose (Block) MCP Setup

Add AgentDomains as a Goose extension with streamable_http or stdio to automate hostnames and DNS.

Native Code Editor

Zed Editor MCP Setup

Add AgentDomains as a Zed context_server in settings.json. Let Zed claim domains and proxy backends.

30 Days Free · No Card Required

Claim your agent domain now

Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.