CloudCLI keeps bring-your-own-agent development environments continuously available across browser, mobile, VS Code and SSH. Grain keeps what an agent publishes available as an artifact with a URL, sharing and optional application services. Choose CloudCLI when the agent's development environment must stay alive; choose Grain when the finished output needs to stay live for an audience.
Quick answer
Both products let you keep your existing agent subscription, but the persistent object differs. CloudCLI keeps a cloud development environment active so the agent can continue and you can reconnect from several clients. Grain keeps published output active so readers can open it after the development session. CloudCLI is environment infrastructure without an application database; Grain is an artifact hub whose app workspaces can include Postgres, logins and scheduled jobs.
Fit first
| Dimension | CloudCLI | Grain |
|---|
| Audience | Developers who need an always-reachable remote coding environment | Developers and teams who need agent-made output to remain published |
| Job | Keep the agent's shell, context and environment running | Keep the artifact, application services and audience connection running |
| Control | Bring an agent key or subscription into a managed or self-hosted environment | Bring an agent and publish its files into a managed or self-hosted-capable hub |
| Friction | Create an environment and reconnect through browser, PWA, editor or SSH | Initialize a folder, push a checkpoint and create a share |
| Economics | Paid from the first environment after a two-day Hobby trial | Unlimited published artifacts on Free, with paid always-on, team and domain features |
What is different, verifiably
| Dimension | CloudCLI | Grain |
|---|
| Pricing | Hobby at €7 monthly, Growth at €20 plus extra environments, Team at €39, Enterprise custom | Free tier; Pro at $65 per user per month; Enterprise by contact |
| Free tier | No continuing free tier; Hobby has a two-day trial | Unlimited published artifacts, ten sleeping sandboxes and one always-on workspace, no card required |
| Bring your own agent | Yes. Bring a key or subscription for Claude Code, Cursor, Codex or Gemini CLI | Yes. Claude Code, Codex, Cursor or any MCP-capable CLI agent |
| Persistence after the session | Environments remain continuously active across laptop closures and disconnects | Published artifacts remain online after the session and after payment stops |
| Sharing | Team provides shared MCP servers and context files, with isolated developer containers | Public, password-protected or invite-only artifact links, plus reader comments |
| Database | No application database product; CloudCLI sells development-environment infrastructure | Full apps can use Postgres, logins and scheduled jobs |
| Custom domain | Not documented on the pricing page | CNAME custom domains on Pro |
| Export | AGPL-3.0 codebase and a self-hosting option | Artifact files are available through grain pull; the core is self-hostable |
| Platform | Browser, mobile PWA, VS Code and SSH | Mac desktop app and CLI; Windows waitlist; core runs on Linux |
Where CloudCLI is better
- The coding session itself must stay alive while you close a laptop or move between devices. CloudCLI makes continuous environments its primary job.
- You want to reconnect from a browser, mobile PWA, VS Code or SSH. Grain's client surface is a Mac app and CLI.
- A team needs shared MCP servers and context files while each developer keeps an isolated container.
- You specifically require an AGPL-3.0 environment codebase. Grain says its core is self-hostable but does not claim an open-source license.
Where Grain is better
- The output, not the development shell, is what other people need. Grain gives it a dedicated share URL and access mode.
- The published app needs Postgres, login or scheduled jobs. CloudCLI does not position itself as an application backend.
- You do not need CloudCLI's continuously active terminal across browser, mobile, VS Code and SSH; you need the finished output to remain reachable.
- The audience consists of artifact readers and commenters, not developers reconnecting to a paid remote environment from several clients.
- You need a Pro custom domain for the artifact or a promise that published work remains after payment stops.
Moving between them
- From CloudCLI to Grain: copy or clone the project files from the remote environment into a folder where the Grain CLI is available. Environment processes, shared context and container state are not the artifact itself.
- Run
grain init for that folder. The command creates a workspace and writes configurations for Claude Code, Codex and Cursor unless agent configuration is disabled. - Ask the agent to turn any development-only service into a workspace application dependency. Use Postgres for durable app data and define login or scheduled jobs where the published artifact needs them.
- Run
grain push, grain checkpoint -m "publish from CloudCLI", then grain share --public or use a protected share. Send the resulting URL rather than access to the development environment. - From Grain to CloudCLI: run
grain pull, place the files in a CloudCLI environment and configure the agent subscription there. Grain database contents, identities, job schedules, comments and sharing rules do not accompany the source files.
Choice rule
- Choose CloudCLI
- if the lasting thing you need is a remote agent development environment that survives disconnects and works across several clients.
- Choose Grain
- if the lasting thing is the page, app, report or job that an agent made, especially when other people must open it.
- Use both
- if agents work in persistent CloudCLI environments and publish reviewable or operational results into Grain workspaces.
Frequently asked questions
Are Grain and CloudCLI the same kind of workspace?
No. CloudCLI centers the continuing development environment. Grain centers the continuing artifact and can supply application services behind it. The word workspace covers different persistent objects in each product.
Can both use Claude Code or Codex?
Yes. CloudCLI accepts an existing key or subscription for several agents. Grain accepts output from those agents through its CLI and MCP configuration.
Does CloudCLI host the finished app?
Its referenced pricing page describes development environments, not an application database or artifact publishing product. You can run development software there, but that is different from Grain's dedicated share URL and app workspace.
Which product is free?
CloudCLI offers a two-day Hobby trial but no continuing free tier. Grain Free includes unlimited published artifacts, ten sleeping sandboxes and one always-on workspace.
Can I use CloudCLI and Grain together?
Yes. Run the agent in CloudCLI, then initialize and publish the project to Grain. Keep environment secrets and container state separate from the files and application data you intentionally publish.
Keep the result, not only the session
Download the free Mac app and publish work from the agent environment you prefer.
Free forever. No card. Bring your own agent.
Sources · facts verified 2026-09-04