Connect ACE Music in OpenCode

Set ACEDATACLOUD_API_TOKEN in the terminal where OpenCode is started, with its value being the application API Key that can access ACE Music in API Credential Management. Add the following service to ~/.config/opencode/opencode.json. headers references the credential through {env:ACEDATACLOUD_API_TOKEN}.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "acemusic": {
      "type": "remote",
      "url": "https://acemusic.mcp.acedata.cloud/mcp",
      "oauth": false,
      "headers": {"Authorization": "Bearer {env:ACEDATACLOUD_API_TOKEN}"}
    }
  }
}

Run opencode mcp list from the same terminal and confirm that the status of acemusic is connected. In the conversation, request “Use ACE Music’s acemusic_get_capabilities to list the creation and query tools.” When submitting a creation later, save the task_id and query the original task to avoid duplicate paid generation due to waiting.

OpenCode MCP Configuration · ACE Music MCP Tools and Billing