Does Grain replace Claude Code?
No. Claude Code is the coding agent. Grain is the workspace and publishing layer for the files that agent creates.
Grain / Works with / Grain for Claude Code
Works with
Yes, Claude Code works with Grain. Download the Mac app, run grain login and grain init, ask Claude Code to build in that folder, then push, checkpoint and share the result at a URL that stays available after the agent session ends.
# Download the Mac app from rungrain.com, then:
grain login
cd path/to/project
grain init
# Ask Claude Code to create the artifact in this folder.
grain push
grain checkpoint -m "first Claude Code artifact"
grain share --public
# https://<slug>.share.rungrain.com| Part | Claude Code | Grain |
|---|---|---|
| Role | Reads the project, writes files and runs development tasks | Publishes the resulting artifact and keeps its workspace reachable |
| Agent | Supplies the coding agent you direct | Does not include or replace an agent |
| Files | Creates and edits the project files | Keeps artifacts as files that you can fetch with grain pull |
| Runtime | Runs commands during the coding session | Serves a static page or runs a full app workspace |
| Data | Writes application code that uses the data layer | Can provide Postgres for an app artifact |
| Audience | Works with you in the terminal | Gives readers public, password-protected or invite-only access |
| Feedback | Acts on instructions and project context | Lets readers comment so the agent can read and act on feedback |
grain login, and finish the authentication flow before creating a workspace. Keep the desktop app available while you set up the folder.grain init. For Claude Code, this writes the workspace connection to .mcp.json. If that file already carries other MCP servers, inspect the result and keep the existing entries alongside Grain.Build a PR walkthrough for the current branch. Create a page with a plain-language summary, changed-file table, test checklist and known limits. Keep it useful to a reviewer who has not read the chat. This tells Claude Code what to make and who will open it.grain push. This sends the workspace files after the agent has written them. Then run grain checkpoint -m "first Claude Code artifact" so the published state has a named point you can return to.grain share --public for a public link, or grain share --password <pw> when the reader should supply a password. Invited-person sharing is the third access mode when the audience must be named.https://<slug>.share.rungrain.com address outside your signed-in session. Check the page, its access boundary and any data-backed interaction. Send that URL rather than a screenshot or localhost recording.Your Claude plan remains separate and under your control. Grain does not sell or mark up agent tokens. Grain's free tier includes the Mac app, CLI, unlimited published artifacts, ten sandboxes that sleep when idle, one always-on workspace and a self-hostable core, with no card required. Pro is $65 per user per month and adds more always-on workspaces, team seats, shared spaces and custom domains. Enterprise is available by contact for deployment in the customer's cloud with SSO, audit and policy controls and direct support. Paying Grain does not change which Claude plan or model you use.
.mcp.json connection is specific to Claude Code. Do not copy a Cursor or Codex config path into this setup and assume the client will read it.No. Claude Code is the coding agent. Grain is the workspace and publishing layer for the files that agent creates.
Run grain init in the project. It writes the MCP connection to .mcp.json for Claude Code.
Yes. After it writes the files, use push, checkpoint and share. The share command returns a URL shaped like https://<slug>.share.rungrain.com.
Yes. A full app artifact can use Postgres, and it can also have logins and scheduled jobs when the use case requires them.
Yes. Readers can comment on an artifact, and the agent can read those comments and act on them in a later revision.
Download the free Mac app, connect the project and keep the first useful artifact at its own URL.
Free forever. No card. Bring your own agent.