Get your iOS app approved with opencode
- Fixes what would get your app rejected on the model you set in opencode, each fix on a branch of its own.
- Added as an entry in
opencode.json, or on opencode 2 with oneopencode mcp addcommand. - Keeps the model’s context light: the address with only Approval and Store setup gives it the tools App Review needs.
https://api.appscend.ai/mcpAppScend checks your iOS app the way App Review does, ranks what will get it rejected, and your own coding agent fixes it on a branch you review.
Last updated November 2026 · All agents
Which blockers are left in Plantly’s code?→ get_app area "approval"Two blockers, both near sign-in:Blocker4.8 Third-party sign-in may lack Sign in with Appleapp/(auth)/login.tsx:31· Jev 89% sureBlocker2.1 Release builds may use test or sandbox service keyslib/config.ts:7· Jev 84% sureThe second is a one-line change. Start there?
An example in your terminal, with a sample app, Plantly.
How do I add AppScend to opencode?
Put AppScend’s entry in opencode.json, then run opencode mcp auth appscend to sign in through your browser. On opencode 2, one opencode mcp add command adds it instead, and it signs in as opencode’s published client.
Add it to
~/.config/opencode/opencode.json(every project) oropencode.jsonin the project:{ "mcp": { "appscend": { "type": "remote", "url": "https://api.appscend.ai/mcp", "enabled": true } } }Then sign in. Your browser opens AppScend: choose what it may do and press Allow.
opencode mcp auth appscendOn opencode 2, one command adds it instead, for every project (without
--global, for this one only); it signs in with opencode’s own published client document:opencode mcp add appscend --global --url https://api.appscend.ai/mcp
Without a browser
With a key in the
APPSCEND_API_KEYenvironment variable:{ "mcp": { "appscend": { "type": "remote", "url": "https://api.appscend.ai/mcp", "enabled": true, "oauth": false, "headers": { "Authorization": "Bearer {env:APPSCEND_API_KEY}" } } } }On opencode 2, with the
APPSCEND_AUTHenvironment variable set to “Bearer <your key>”:opencode mcp add appscend --global --url https://api.appscend.ai/mcp --header 'Authorization={env:APPSCEND_AUTH}'
How your Mac uses opencode
- For a fix, AppScend starts
opencodeon your Mac in a git worktree on a new branch (appscend/fix-…): your working folder and branch are never touched. - What it does for AppScend: fixes that only edit files, checks and analyses, with live steps, on the model you set in opencode (Grok, GPT, Gemini, a local model…). Checks run in a copy of your project, and a fix edits only the app’s own folder. No questions during a fix or forms.
- It runs as opencode is set up on that Mac, on your own plan or key. Pick it in Settings → Preferences, or with
APPSCEND_AGENT=opencodeon the Mac. - AppScend then scans the fix’s branch, and nothing reaches your branch until you press Merge.
These steps follow opencode’s own docs.
What can you ask opencode to do?
Ask opencode in plain words from your app’s folder: it calls AppScend’s tools on the model you picked and changes the code with you. Plantly, in these replies, is a sample app.
Yes. Fix the test key on a branch, then scan.→ get_findingThe release build reads the purchases SDK’s test key. Release builds now read the production key, and the test key stays in debug.⎇ fix/release-keys 2 files +6 −2→ scan_appScanned again: that blocker is gone on the branch. Merge it once the diff looks right to you.
Is last night’s archive ready to upload?→ scan_app check_build→ get_job wait_seconds: 25Your Mac read the newest archive in Xcode’s Organizer: signing, architectures and Apple’s upload checks pass.→ app_review upload_build version "1.4"Upload 1.4 (build 43) to App Store Connect? Nothing goes up until you say yes.
Which way should I connect opencode?
Sign in through the browser for your own work, and send a key in the Authorization header for CI. With more agents on the Mac, npx appscend agents adds AppScend to opencode and the rest at once.
| Way | Signs in | What you get | For |
|---|---|---|---|
| One command in Terminal | Signs inYour browser, once: you choose what it may do | What you getAppScend’s tools, within what you allowed and your plan | ForYou, working in opencode |
| A key from Settings → Agents | Signs inThe key, sent as an Authorization header | What you getWhat you allowed the key when you made it | ForCI, a server, or a run where no browser opens |
npx appscend agents on your Mac | Signs inYour browser, once | What you getAppScend added to opencode and the other coding agents on your Mac, each change shown and asked first | ForA Mac with more than one agent |
| The setup prompt | Signs inYour browser, once | What you getopencode adds AppScend to itself, checks what it may do and offers a block for AGENTS.md | ForLetting opencode set itself up |
What can opencode do in AppScend, and what can’t it?
opencode works both ways round: it calls AppScend’s tools from your terminal, and AppScend starts it on your Mac for fixes and checks on the model you chose. The lists below say where it stops.
It can
- On your Mac, when AppScend starts it: fixes that only edit files, checks and analyses, with live steps, on the model you set in opencode (Grok, GPT, Gemini, a local model…).
- Through AppScend’s MCP server: it reads your apps, findings, Today and test runs and does the work on every plan, and with an Approval Pass it also publishes, each publish after asking you.
It can’t, or works differently
- Checks run in a copy of your project, and a fix edits only the app’s own folder. No questions during a fix or forms.
- Many tools fill its context: the address with only Approval and Store setup keeps AppScend’s list short.
- opencode 2 keeps servers under mcp.servers (opencode 1 under mcp) and still reads an opencode 1 entry; both versions use the opencode command.
- opencode 2’s opencode mcp list can say No MCP servers configured while it has AppScend: opencode run uses it all the same.
Is opencode the same as Claude Code?
No. opencode is an open-source coding agent that runs on whichever model you set, and Claude Code is Anthropic’s own agent. Each keeps a separate list of MCP servers, so you add AppScend to both.
| Product | What it is | With AppScend | Its docs |
|---|---|---|---|
| opencode | What it isAn open-source coding agent for your terminal, editor and desktop, on the model you choose | With AppScendTakes AppScend from opencode.json or opencode mcp add, and your Mac can run it for fixes and checks | Its docsopencode.ai |
| Claude Code | What it isAnthropic’s agent for the terminal, also in editors and its desktop app | With AppScendTakes AppScend with claude mcp add, and your Mac can run it for fixes, checks and Chrome forms | Its docscode.claude.com |
Can opencode work while I sleep?
Yes, with an Approval Pass: Autopilot can start opencode on your Mac at night, on the model you set in it, and every fix it makes waits on a branch until you merge it.
- When
- From 1:00 to 6:00 in your time zone, unless you pick other hours.
- How much
- Up to 10 App Review fixes a night for each app unless you pick another limit; each area has its own limit, and no budget is shared across apps.
- Prepare
- Your agent fixes App Review problems on branches at night, blockers first, then warnings; you check each one and merge it.
- Auto
- The same, and a test run whose build fails is fixed right away. Nothing is merged or submitted by itself.
- Never by itself
- Merge, submit for review, release.
- Plans
- an Approval Pass.
Last night
What Autopilot did on the night of Friday, Oct 16.
Waiting for your OK
Accept or turn it down. Nothing here is live until you do.
Fix on a branch: Accounts can be created but not deleted in the appDone
Waiting for the next night
Or start it yourself today.
Fix on a branch: Placeholder text in the app
An example of the card Autopilot leaves on your app’s Overview.
What does AppScend check before App Review?
AppScend checks what App Review looks at: your code and in-app text against Apple’s guidelines, your App Store Connect setup, and the app itself, used in the Simulator the way a reviewer uses it.
- Approval: the scan of your code and in-app text against App Review’s guidelines, findings ranked by how likely Apple is to reject, each fixed on its own branch by your own coding agent.
- Store setup: App Store Connect checked against your code: subscriptions, purchases, screenshots, App Privacy and the listing, drafted from the code; nothing reaches App Store Connect before you confirm, with Undo.
- Test run: your app used in the Simulator the way a reviewer does: the demo account, the paywall, every screen, iPad, permissions denied. It never spends real money.
- App Review: submitting, review notes, answers to a rejection, and the release.
Questions about opencode and AppScend
- opencode doesn’t see AppScend’s tools: what should I check?
- Run
opencode mcp list: appscend should be there with its sign-in. On opencode 1,opencode mcp debug appscendchecks the connection and the sign-in. opencode 2 keeps the entry undermcp.servers, though an opencode 1 entry undermcpstill works. - Do I need an API key?
- Not for AppScend: opencode signs in through your browser. For CI, turn that off with
oauth: falseand send a key from Settings → Agents in the Authorization header. The model you run in opencode keeps whatever key its provider asks for. - Which model does AppScend use with opencode?
- The one you set in opencode: AppScend doesn’t pick one. opencode calls AppScend’s tools on that model, and the fixes and checks your Mac runs in opencode use it as well.
- Why does opencode do better with fewer tools?
- opencode’s docs say every MCP server adds to the model’s context, and many tools add up fast. The address ending in
/mcp/x/approval,storegives it only Approval and Store setup, which is what taking an app through App Review needs. - Does my code leave my Mac?
- Some of it. A scan sends facts (SDKs, settings, files and lines, the text people see) and your source files with comments and keys removed; AppScend’s checking model reads them and drops them. When opencode fixes a finding on your Mac, AppScend gets its verdict, its steps and the files it changed with their line counts, never the code.
npx appscend factsprints what a scan sends. Your code is never stored, except a few lines: the cleaned code lines where a check was proven right or wrong on an app with an Approval Pass (you can turn that off), snippets you choose to send to correct a check, the one line each problem your coding agent finds quotes as its evidence, and the compiler’s errors when a test run’s build fails. - Can opencode submit my app?
- Yes, with an Approval Pass, and only after asking you.
submit_for_reviewfirst answers with what it would send and a confirm token; it sends only after your yes, or when you approve it on AppScend’s website. AppScend only submits a clean build: an open blocker holds it. Each submission goes with an Approval Pass. - Does it ever buy anything?
- No, never with real money. The test run opens Apple’s purchase sheet, reads what it needs and cancels; when a paywall is the only way in, it buys in a free StoreKit test store on your Mac, which never reaches Apple. It never taps a button that pays or orders outside the App Store, or one that books where a price shows, and any other tap that acts outside your app waits for your yes. Buying through the App Store itself, Restore after a reinstall and a subscription ending stay your own check on your iPhone, in TestFlight. An Approval Pass is something you buy yourself, at checkout.
- Is it free?
- Scanning and fixing on your Mac are free on every plan. Free: 1 agent that reads and does the work; publishing comes with the app’s Approval Pass. Approval Pass: up to 10 agents that read, do the work and publish (each publish asks first). AppScend never bills for opencode or its model: it runs on your own plan or key, and so do the fixes your Mac runs with it.
Also works with
- Claude CodeLet it fix what AppScend finds on a branch on your Mac, and use AppScend’s tools from your terminal.
- CodexLet it fix what AppScend finds inside its own sandbox on your Mac, and run AppScend’s tools from the Codex CLI, its IDE extension or the ChatGPT desktop app.
- AmpLet it fix and check what AppScend finds on your Mac, and run AppScend’s tools from it.
Add AppScend to opencode, or start from your Mac.