Claude Code runs on your phone through Cosyra for iPhone or Cosyra for Android. Cosyra gives the phone a cloud Linux workspace with Claude Code already installed. You tap the Claude Code shortcut, sign in once with your Claude account, and work in a real terminal.
The steps and screenshots below are from the Cosyra 2.8.5 iPhone app with Claude Code 2.1, taken in October 2026. The flow is the same on Android.
What you need
- The Cosyra app. Core is $20 a month and Pro is $30. Eligible new users can start a 7-day free trial in the App Store app. Pricing has the details.
- A Claude account. A Pro, Max, Team or Enterprise plan, or an Anthropic Console account if you want to pay per use.
- A browser on the phone. The sign-in happens on Claude's own page.
Set up Claude Code on a mobile device
Step 1
Install Cosyra and open Terminals
Install the app and sign in. It opens on Terminals. The row at the top is Your shortcuts, and Claude Code is the first one.
The chip next to the title shows your workspace. It reads Sleeping until you open a terminal, then Awake.
Step 2
Tap the Claude Code shortcut
Tap Claude Code. The workspace wakes up and a terminal opens with Claude Code in it.
Cosyra shows a sheet called Connect Claude Code. Tap Connect Claude subscription to sign in from the sheet, or close it and sign in inside the terminal. Both end in the same place. The next steps show the terminal route.
Claude Code first asks for a text style. Press return to keep Auto.
Step 3
Choose how you sign in
Claude Code lists three login methods:
- Claude account with subscription, for Pro, Max, Team or Enterprise.
- Anthropic Console account, billed by API usage.
- 3rd-party platform, for Amazon Bedrock, Microsoft Foundry or Vertex AI.
Move with the arrow keys in the toolbar above the keyboard and press return.
Step 4
Open the sign-in link
Claude Code prints a sign-in link and waits at Paste code here if prompted. Tap the link. It opens in your phone's browser.
Step 5
Sign in and paste the code
Sign in on Claude's page with the account that has your plan and approve the request. Claude shows a code.
Copy the code, switch back to Cosyra, paste it at the prompt and press return. Claude Code confirms the login and opens its prompt.
Step 6
Give Claude Code a task
Claude Code works in the folder the terminal is in. To work on a repository, clone it first, or go back to Terminals, tap New and choose Open folder.
git clone https://github.com/you/your-repo.git
cd your-repo
claude Then type what you want in plain words, for example "find why the login test fails and fix it".
Using Claude Code from a phone keyboard
Claude Code leans on keys a phone keyboard does not have. Cosyra adds a toolbar above the keyboard with Esc, Tab, Ctrl, Alt and the arrow keys, plus a microphone for dictation. The docs list every toolbar key.
- Esc interrupts Claude while it is working.
- The arrow keys move through menus and your earlier prompts.
- Dictation is the fast way to give a long instruction.
Long tasks keep running
The terminal lives in the workspace, not in the app. Start a refactor, lock the phone and it carries on. When you open Cosyra again the same session is on screen, with everything Claude did while you were away.
The same workspace opens from any device you sign in on, so a session you start on the phone is there on a tablet too.
Questions
Can you run Claude Code on a phone?
Yes. Claude Code is a command-line tool, so it needs a terminal and a Linux or macOS environment. Cosyra gives your phone a cloud Linux workspace with Claude Code already installed. You tap the Claude Code shortcut and it opens in a terminal.
Which Claude plan do I need?
Claude Code signs in with a Claude Pro, Max, Team or Enterprise plan. You can also sign in with an Anthropic Console account and pay for API usage, or use Amazon Bedrock, Microsoft Foundry or Vertex AI.
Does Claude Code work the same on iPhone and Android?
Yes. Claude Code runs in the cloud workspace, not on the phone. The shortcut, the terminal and your sessions are the same in the iOS and Android apps.
Does Claude Code keep working when I lock my phone?
Yes. The terminal runs in your workspace, so a long task carries on while the phone is locked or you are in another app. Open Cosyra again and the session is still there.
Do I have to sign in every time?
No. The sign-in is stored in your workspace. New terminals start Claude Code already signed in.
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. Claude usage is separate and comes from your Claude plan or your Anthropic API account.
Related guides
- Claude Code on iPhone, Claude Code on Android and Claude Code on iPad.
- Codex on your phone and OpenCode on your phone.
- Claude Code vs Codex CLI on a phone, if you are choosing between them.
- AI coding agents on mobile, the overview of all of them.