Code from your phone. Ship from anywhere.
Run Claude Code, Codex CLI, OpenCode, and Gemini CLI from a cloud terminal on your phone. Pre-installed, persistent, and ready to go.
Run Claude Code, Codex CLI, OpenCode, and Gemini CLI from a cloud terminal on your phone. Pre-installed, persistent, and ready to go.
Watch a quick tutorial to see how to set up your cloud terminal, connect your tools, and start coding from your phone in minutes.
See the docsClaude Code, Codex CLI, OpenCode, and Gemini CLI are pre-installed. Bring your API key, open the terminal, and start building.
See the docs$ claude
╭─────────────────────────────────────────╮
│ Claude Code v1.2.3 │
╰─────────────────────────────────────────╯
> refactor the auth middleware to handle token refresh
I'll refactor the auth middleware. Here's my plan:
1. Extract token validation into a helper
2. Add automatic refresh when token expires within 5min
3. Update error handling for refresh failures
src/middleware/auth.ts
- import { verify } from 'jsonwebtoken';
+ import { verify, decode } from 'jsonwebtoken';
+ import { refreshToken } from '../lib/auth';
src/lib/auth.ts (new file)
+ export async function refreshToken(token: string) {
+ const decoded = decode(token);
+ // ... refresh logic
■
┌─ git log ────────────┬─ npm test ───────────┐
│ │ │
│ a3f1c2d
│ fix: token refresh │ ✓ auth middleware │
│ b7e9a01
│ feat: add rate limit│ ✓ rate limiter │
│ c4d2f89
│ chore: update deps │ ✓ token validation │
│ e1b3a56
│ docs: API reference │ ✓ refresh flow │
│ │ │
│ │ 12 passed, 0 failed │
├────────────────────────┴────────────────────────┤
│ $ npm run build │
│ ✓ Compiled successfully in 2.3s │
└─────────────────────────────────────────────────┘
Ubuntu, Node.js, Python, Git, tmux, vim, and cloud CLIs. 30 GB of storage that persists between sessions.
See the docsClone repos, review code, and push changes from your phone. Pro sessions hibernate and resume where you left off.
See the docs$ gh pr view 847 --comments
fix: handle token refresh in auth middleware #847
Open · sarahc wants to merge 3 commits into main
+47 -12 across 2 files
─── Comments ───────────────────────────
@sarahc 2 hours ago
Extracted the refresh logic into a helper
and added retry with backoff.
@you just now
LGTM — nice catch on the race condition.
$ gh pr review 847 --approve
✓ Approved pull request #847
// faq
Direct answers for the questions developers ask before they trust a mobile terminal with real work.
Yes. You get an isolated Ubuntu container with Claude Code, Codex CLI, OpenCode, and Gemini CLI pre-installed. Same experience as your laptop.
Claude Code, Codex CLI, OpenCode, and Gemini CLI come pre-installed. The container includes Node.js, Python, Git, tmux, vim, and standard dev tools. You can install additional packages as needed.
Yes. Cosyra follows a bring-your-own-key model so developers can use their own provider accounts and keep control over usage and billing.
Yes. Cosyra runs on both iOS and Android with the same terminal experience across devices.
Yes. Each user gets their own isolated cloud container. Your code and files are private to your environment.
No infrastructure to manage, no ports to configure, no mobile UX to fight. Cosyra is a ready-to-use dev environment on your phone.
Cosyra comes with a free trial that includes 10 hours or 7 days of full access. After that, Pro is $29.99/month or $300/year and includes 120 hours/month, 30 GB persistent storage, and session hibernation. Subscriptions are available via in-app purchase.
Bring your own API key. Keys are stored securely on your device using platform-native encryption. When you run an AI agent, your key is transmitted to your cloud container over an encrypted connection.
Yes. Your files persist between sessions. Pro users get session hibernation: your container pauses after 10 minutes of inactivity and resumes where you left off.
Free trial included. Subscription required after trial.