Can Grain deploy an app built by Codex?
Grain publishes files produced by Codex or another CLI coding agent as an artifact. Use a general deployment platform instead when the app is a production service with its own CI.
Grain / Learn / Deploying apps built by Claude Code or Codex
Switching guide
Deploy an app built by Claude Code or Codex through a conventional repository pipeline when it is a production service, or publish it through Grain when it is an artifact that needs a durable URL without a deploy pipeline. Grain fits internal tools, reports, prototypes and walkthroughs; Vercel, Railway and Northflank fit services whose repository, build and operations are part of the product.
A coding agent starts in a repository, writes an application and proves it on localhost. The usual next step is to push a branch, connect the repository to a deployment platform, define a build, add environment variables, provision data services and choose a domain. Vercel, Railway and Northflank are general deployment destinations in this workflow. Northflank explicitly publishes guidance for deploying apps built with coding agents. This route is appropriate when the repository and pipeline are long-term operational assets. It can be excessive when the result is a review dashboard, research report or temporary internal tool whose main requirement is simply to stay open for the people using it.
| Path | Best fit | What you operate | What the viewer gets |
|---|---|---|---|
| Repository deploy | Production service with established CI and ownership | Repository, build, environment, services and release policy | A production application route |
| Grain artifact | Agent-built page, app, report, prototype or scheduled tool | Workspace files, access mode and artifact state | A lasting share URL with optional data and login |
| Local preview | Developer inspection during the coding session | Laptop process and local dependencies | Nothing reachable after the process stops |
grain login. Grain does not include an agent, so keep using your Claude Code or Codex plan.grain init. It creates the workspace and writes .mcp.json for Claude Code, .codex/config.toml for Codex and .cursor/mcp.json for Cursor. Use --no-agent-config only when you do not want those files.Build an account-health app from the CSV files in this folder. Include a responsive summary page, a Postgres table for owner notes, login access and a weekday refresh job. Keep adapters separate so the data source can change. This names the page, database, login and schedule rather than requesting a screenshot.grain push. If a pushed static workspace needs an app runtime, grain upgrade --target react-vite or grain upgrade --target nextjs promotes it; the command fails when the checkout has unpushed changes.grain checkpoint -m "account health app ready". A checkpoint marks the exact artifact state that readers evaluate.grain share --public or grain share --password <pw>. The returned address follows https://<slug>.share.rungrain.com. Invite-only access is available when a link should be restricted to named people.grain pull and move them into the deployment path your team operates.Grain is free for unlimited published artifacts, ten sleeping sandboxes, one always-on workspace and a self-hostable core, with no card required. You pay your coding-agent provider directly; Grain does not sell or mark up tokens. Pro is $65 per user per month for more always-on workspaces, team seats, shared spaces and custom domains. Enterprise is priced by contact. Vercel, Railway and Northflank each apply their own deployment and infrastructure model, so compare them against the production resources your service actually consumes rather than inventing one cross-platform number. A repository deploy may be the better economic choice when it joins infrastructure your team already operates.
share.rungrain.com.Grain publishes files produced by Codex or another CLI coding agent as an artifact. Use a general deployment platform instead when the app is a production service with its own CI.
Yes. The init command writes Claude Code MCP configuration to .mcp.json, alongside configuration for Codex and Cursor.
Yes. Apps can have a Postgres database, logins and scheduled jobs. Static artifacts can remain simple pages.
Move when the app becomes a production service that needs repository-governed builds, independent infrastructure policy and an operational owner.
Yes. Artifacts are files you can pull through the CLI. Published artifacts stay published if you stop paying.
Start with a durable artifact URL, and keep production deployment for services that need a pipeline.
Free forever. No card. Bring your own agent.