Sonar//Connect AI//Codex

Set up Sonar in Codex

One CLI command, or a TOML block in ~/.codex/config.toml. Once connected, Codex can look up apps, research keywords, audit ASO, mine reviews, and estimate revenue — live from the App Store and Google Play.

1

Get your API key

Create a key in Settings → Developers — keys start with aso_. New accounts get 50 free credits on signup, enough to try every tool. No account yet? Start a free trial.

2

Add the Sonar MCP server

The server is published as @sonarapp/mcp on npm and runs via npx — no global install. One-liner (recent Codex versions):

Shell

codex mcp add sonar --env SONAR_API_KEY=aso_your_key_here -- npx -y @sonarapp/mcp

Manual alternative: ~/.codex/config.toml

Older Codex versions without `codex mcp add` — add this block by hand

[mcp_servers.sonar]
command = "npx"
args = ["-y", "@sonarapp/mcp"]
env = { "SONAR_API_KEY" = "aso_your_key_here" }

Replace aso_your_key_here with the key from step 1.

3

Verify it works

Start a new Codex session — the 22 sonar_* tools are listed under the sonar MCP server. Ask “What Sonar tools do you have?” to confirm.

Try this first prompt

Use Sonar to run an ASO audit on Duolingo on iOS in the US store. Summarize the score and the top 3 fixes you'd make first.

What you get back: a 0–100 ASO score with itemized checks, turned into a prioritized fix list by your AI.

Connected? Raid the prompt library.

Ten copy-paste prompts for keyword gaps, review mining, ASO audits, localization, and launch tracking — they work as-is in Codex. On the Full plan, AI can even set up your workspace — add your app, link competitors, track keywords.