Connect ACE Music in Codex CLI

Obtain an application API Key with access to ACE Music from API Credential Management, and set it as the terminal environment variable ACEDATACLOUD_API_TOKEN for launching Codex. Codex will read this variable at runtime and send the Bearer request header for the hosted service.

codex mcp add acemusic --url https://acemusic.mcp.acedata.cloud/mcp --bearer-token-env-var ACEDATACLOUD_API_TOKEN
codex mcp get acemusic

Launch Codex from the same terminal, and open /mcp in the session to check the server. Ask Codex to call acemusic_list_models to list the currently supported models. When looking up previous works, ask it to use acemusic_get_task with the original task ID; the audio_url of completed tracks can be played or downloaded directly.

Codex MCP Configuration · ACE Music MCP Tools and Billing