Does Grain replace the Cursor editor?
No. Cursor remains the editor and coding agent. Grain is where the resulting artifact is published, kept and shared.
Grain / Works with / Grain for Cursor
Works with
Cursor can build the files while Grain publishes and shares the result. Download the desktop app, run grain login and grain init, work with Cursor in that folder, then push, checkpoint and share the artifact at a lasting URL.
# Download the desktop app from rungrain.com, then:
grain login
cd path/to/project
mkdir -p .cursor && [ -f .cursor/mcp.json ] || echo '{}' > .cursor/mcp.json
grain init
# Ask Cursor to build the artifact in this folder.
grain push
grain checkpoint -m "first Cursor artifact"
grain share --public
# https://<slug>.share.rungrain.com| Layer | Cursor | Grain |
|---|---|---|
| Human interface | Provides the editor and agent mode where you inspect code | Provides the artifact workspace and sharing surface |
| Code | Reads and changes files in the project | Publishes the files the agent leaves in the connected folder |
| Model work | Runs the coding-agent interaction on your Cursor plan | Does not include an agent or mark up tokens |
| Preview | Lets you inspect the project during development | Gives the finished artifact a URL for other readers |
| Data | Writes application behavior and data access | Can supply Postgres to a full app artifact |
| Access | Keeps development in your editor workflow | Offers public, password-protected or invite-only sharing |
| Feedback | Applies your next instruction to the files | Collects reader comments the agent can read and act on |
grain login. Change into the project folder that Cursor opens. Connect the narrowest folder containing the artifact rather than a broad directory with unrelated material..cursor/mcp.json containing {} if the project does not have one, then run grain init. It adds the Grain server to .cursor/mcp.json and keeps other servers. Without that file, init writes only .mcp.json, which Cursor does not read. Open .cursor/mcp.json if the server is missing in Cursor.Build a working customer prototype for the onboarding flow in this folder. Include a three-step form, a confirmation view and a short assumptions panel. Use sample data, require no login, and make every limitation visible on the page. This gives Cursor a product task instead of the vague request to make a demo.grain push, followed by grain checkpoint -m "first Cursor artifact". The checkpoint records the published state after review. It does not replace the repository history you use for the source code.grain share --public when anyone with the link may view it. Use grain share --password <pw> for a password boundary, or invited-person sharing when access belongs to specific people.https://<slug>.share.rungrain.com address in a signed-out browser. Complete the main path as the customer would and confirm that the chosen sharing boundary behaves as expected.Your Cursor subscription and model choices remain yours. Grain does not bundle a coding agent or add a token charge. The free tier has no card requirement and includes unlimited published artifacts, ten sandboxes that sleep when idle, one always-on workspace, the desktop app, CLI and open source code under AGPL-3.0. Pro is $65 per user per month for more always-on workspaces, team seats, shared spaces and CNAME custom domains. Enterprise is offered by contact for the customer's cloud, SSO, audit and policy controls and direct support. You pay for Grain capabilities only when the free publishing boundary is not enough.
.cursor/mcp.json. A policy-managed Cursor setup may require review before that file can change.No. Cursor remains the editor and coding agent. Grain is where the resulting artifact is published, kept and shared.
.cursor/mcp.json in the project. grain init adds the Grain server to it when the file exists, so create it with {} first in a new project.
Yes. A full app artifact can have Postgres, logins and scheduled jobs. A static artifact can remain a simple page.
Push and checkpoint the reviewed files, then choose public, password-protected or invited-person sharing. Send the returned artifact URL instead of localhost.
Yes. Artifacts remain files, and grain pull fetches them from the workspace.
Download the free desktop app, connect one folder and replace the local preview with a shareable artifact.
Download GrainFree forever. No card. Bring your own agent.