Best music tools for Codex game devs
The music tools for Codex game devs worth knowing are three models in the Actionway catalog, from $0.20 per run, and a run returns two full candidate tracks rather than one. We wrote two scene briefs from a Codex session — a tense desert crawl and a safe camp — and both tracks below came back on the first attempt, at $0.20 per run each.
連接你的 AgentBrief one: the desert crawl
The first cue is for exploration under pressure — the player is low on water, the level is long, nothing is chasing them yet. That is a scene, not a genre, and writing it that way is what gets sparse percussion instead of generic action music.
你這樣問
Tense desert exploration loop for a 2D platformer, sparse percussion, low drone, distant strings. Instrumental only, style in the tags, and put "vocals, singing, lyrics" in the negative tags.
Suno v5 · $0.20 per run · 2 minutes 32 seconds · two candidate tracks returned.
Desert crawl · Suno v5 · 3 minutes 4 seconds of audio · $0.20 per run for the run
Brief two: the camp
The second cue is the opposite state — the player has stopped, the danger is outside, the music should stay out of the way. Same service, same price, brief rewritten around the moment rather than around a mood word.
你這樣問
Warm safe-camp theme for a 2D platformer, gentle acoustic guitar, soft pad, slow tempo. Instrumental only, style in the tags, negative tags for vocals.
Suno v5 · $0.20 per run · 40 seconds · two candidate tracks returned.
Camp theme · Suno v5 · 1 minute 2 seconds of audio · $0.20 per run for the run
What the two runs show
| Brief | Price | Render time | Track length | Candidates |
|---|---|---|---|---|
| Desert crawl | $0.20 per run | 2 min 32 s | 3 min 4 s | 2 |
| Camp theme | $0.20 per run | 40 s | 1 min 2 s | 2 |
Same price, same service, three times the length and four times the render time between them. Track length is not something you set — the model decides, and a brief that implies more development gets more of it. For a game that is usually fine: a three-minute bed loops as easily as a one-minute one, and trimming or crossfading is ordinary local work the agent does for nothing. It matters only if you are scoring to picture, where you should generate long and cut rather than hope for an exact duration.
The two candidates per run are the other thing worth planning around. One charge, two takes, and they are genuinely different arrangements rather than two renders of the same idea — so the practical loop is to brief once, listen to both, and keep the one that fits. That makes a five-cue soundtrack five runs, not ten.
Writing a brief that behaves
Describe the moment, not the genre
"Player is low on water, nothing is chasing them yet" produces better material than "tense music". Instrumentation follows from the situation.
Say instrumental as an instruction
Ask the agent to switch instrumental on in the call rather than writing "no vocals" in the sentence. Written as prose, a brief can end up sung — we watched that happen on a previous run.
Put the style in the tags
Genre, mood, and instruments belong in the tags field; what to avoid belongs in the negative tags. The prompt field is for the scene.
Generate long, cut locally
You cannot order a 45-second cue. Take the longer track and let the agent trim and loop it — that pass is free and repeatable when the level changes.
Where a generated cue stops being enough
A generated track is a finished piece of music, and a game needs music that reacts. Neither of the cues above knows when the player enters combat, when the boss health bar drops, or when the level ends. What you get is a bed; the layering, the stingers, and the transitions are still your job, and they are usually done in the engine or in an audio middleware tool rather than in the model. Generate the beds, then treat them as the raw material for that system.
The practical consequence is that briefs should be written per state rather than per level. "Desert level" is one track that has to cover exploration, tension, and combat and does none of them well. "Desert exploration, nothing chasing the player yet" and "desert chase, drums forward" are two runs, two prices, and two beds that cut between each other cleanly because they share instrumentation and tempo — which is worth saying in both briefs.
The three models and what they cost
Suno v5 and v5.5 are both $0.20 per run; MiniMax Music is $0.40 per run and has a different sound. All three go through Actionway's music and sound capability, which sits next to the speech services — so a cue, a barks pass, and a trailer voiceover come out of the same session and the same wallet, with each run itemised.
At these prices a whole soundtrack is a rounding error next to the rest of a project. Five cues, two candidates each, is ten tracks for $1.00 for 5 runs at $0.20 per run — which is why the useful discipline is not saving money on runs but keeping the briefs specific enough that you can tell the takes apart.
Running it from Codex
你這樣問
Write me a cue for the desert crawl level — instrumental, sparse percussion, low drone — and save both candidates.
The agent lists the music models with prices before anything runs; picking one is the approval, and both mp3s land in your project.
Set it up once
npm install --global @actionway/cli@latest
actionway init
mkdir -p "$HOME/.codex/skills"
cp -R "$HOME/.actionway/skill/actionway" "$HOME/.codex/skills/actionway"You need Node.js 20 or newer and an Actionway account. Claude Code users copy the same folder into ~/.claude/skills/actionway instead, and both routes reach the same catalog and the same wallet — the get started page lists the steps per client side by side.
常見問題
Can Codex generate game music?Not on its own — Codex has no audio model. With the Actionway Skill installed it calls Suno v5, Suno v5.5, or MiniMax Music from $0.20 per run and saves the tracks as mp3 files in your project.
Can I ask for a specific track length?No. Our two briefs came back at 1 minute 2 seconds and 3 minutes 4 seconds for the same price. Generate the longer take and trim or loop it locally, which costs nothing.
How much does a game soundtrack cost this way?A Suno run is $0.20 per run and returns two candidates, so five cues with a choice for each is $1.00 for 5 runs at $0.20 per run in total. MiniMax Music is $0.40 per run and returns one.
