Skip to content

Run OpenCode on Your Phone (iPhone + Android)

One tap opens OpenCode in a cloud terminal. The first prompt runs on a free model.

Updated 5 min read By Adam Roman, Co-founder of Cosyra

Cosyra Terminals screen with the workspace Awake and the Your shortcuts row
OpenCode on a phone after writing hello.py and running it, printing Hello, World!
OpenCode Connect a provider list on a phone, showing OpenCode Zen, OpenAI, GitHub Copilot, Anthropic and Google

OpenCode runs on your phone through Cosyra for iPhone or Cosyra for Android. Cosyra gives the phone a cloud Linux workspace with OpenCode already installed. You tap the OpenCode shortcut, it opens in a terminal, and you can send a prompt straight away because OpenCode starts on a free model.

I took the steps and screenshots below in the Cosyra 2.9.0 iPhone app on November 3, 2026. The reply and provider screens are OpenCode's own and date from October. The flow is the same on Android.

What you need

Open OpenCode on a mobile device

Step 1

Install Cosyra and open Terminals

Install the app and sign in with Apple, Google, GitHub or email. It opens on Terminals. The row at the top is Your shortcuts: Claude Code, Codex, Cursor, Grok, Antigravity and OpenCode.

The chip next to the title shows your workspace. On a new account it says Not started; tap Start your workspace once and it turns Awake.

Cosyra Terminals screen: workspace Awake, the Your shortcuts row and the Home project

Step 2

Tap the OpenCode shortcut

Swipe the shortcuts row to the left until you reach the end and tap OpenCode. It opens in a terminal in your workspace. There is no install step and no sign-in screen. The workspace had OpenCode 2.2.4 when I took these screenshots.

The line under the prompt shows the agent and the model: Build and Big Pickle, a free model from OpenCode Zen. The footer shows the folder you are in.

OpenCode 2.2.4 start screen in a Cosyra terminal on a phone, on the Build agent with the Big Pickle model

Step 3

Send a first prompt

Tap the terminal to bring up the keyboard, type a request and press return. I asked for a hello world script in Python and for it to be run.

OpenCode wrote hello.py, ran it and printed the output in 9.1 seconds. The file is in your workspace home folder and stays there.

The free model has a daily message limit. When you reach it, OpenCode says so, tells you when it resets, and points you to /connect and /models.

OpenCode wrote hello.py, ran python3 hello.py and printed Hello, World! in 9.1 seconds

Step 4

Connect your own provider

For real work you will want a stronger model. Type /connect and press return. OpenCode lists its providers, with the popular ones first:

  • OpenCode Zen and OpenCode Go
  • OpenAI, with a ChatGPT Plus or Pro plan or an API key
  • GitHub Copilot
  • Anthropic, with an API key
  • Google

Pick one and follow its sign-in. Then switch models with /models.

OpenCode Connect a provider dialog with Popular providers and a searchable full list

Typing in OpenCode on a phone

OpenCode expects keys a phone keyboard does not have. Cosyra adds a toolbar above the keyboard: Esc, + to attach a photo or a file, Tab, Ctrl, the arrow keys, a microphone for dictation and a button that hides the keyboard.

Step 5

Use the Ctrl menu for key combinations

Tap Ctrl and a menu of combinations opens:

  • Shift+Tab switches between OpenCode's Build and Plan agents.
  • Ctrl+C interrupts. Press it twice to quit OpenCode.
  • Paste pastes from the phone's clipboard.
  • Esc on the toolbar closes an OpenCode dialog.
Cosyra Ctrl menu over a terminal: Paste, Ctrl+C, Ctrl+D, New line, Shift+Tab, F12, Ctrl+A and Ctrl+E

Prefer a chat to a terminal?

Step 6

Open Code and pick a free model

Open the sidebar and tap Code. It is a chat with the same workspace behind it: you type what you want and the agent edits files and runs commands there. It asks before it acts unless you change the Ask first setting next to the message box.

The model chip opens the picker. New chats start on OpenCode's free models: GLM-5.3-Flash and DeepSeek V4.1 Flash when I checked. They share the same daily free limit as the terminal.

Cosyra chat model picker listing OpenCode Free models GLM-5.3-Flash and DeepSeek V4.1 Flash

Your session keeps running

The terminal lives in the workspace, not in the app. Lock the phone, take a call or switch apps and OpenCode carries on. When you come back the same session is on screen. You can also open the same workspace from another phone or a tablet.

To work in a repository, go back to Terminals, tap New and choose Open folder. Then start OpenCode from that folder.

Questions

Can you run OpenCode on a phone?

Yes. OpenCode needs a real Linux environment, and a phone does not give it one. Cosyra gives your phone a cloud Linux workspace with OpenCode already installed, so you tap the OpenCode shortcut and it opens in a terminal.

Do I need an API key to try OpenCode on mobile?

Not for the first prompt. OpenCode opens on Big Pickle, a free model served by OpenCode Zen, with a daily limit on free messages. To use Claude, GPT or Gemini models, run /connect and sign in to that provider or paste its API key.

Does OpenCode work the same on iPhone and Android?

Yes. OpenCode runs in the cloud workspace, not on the phone, so the same shortcut, the same terminal and the same sessions are there on both.

Does my OpenCode session survive closing the app?

Yes. The terminal keeps running in your workspace when you lock the phone or switch apps. Open Cosyra again and the session is where you left it.

What does it cost?

Cosyra is a subscription: Core is $20 a month and Pro is $30 a month. Eligible new users can start a 7-day free trial in the App Store app. Model usage is separate and is billed by the provider you connect.