Grain / Works with / Grain for Cursor

Works with

Grain for Cursor

Cursor can build the files while Grain publishes and shares the result. Download the Mac app, run grain login and grain init, work with Cursor in that folder, then push, checkpoint and share the artifact at a lasting URL.

Updated 2026-09-04Facts verified 2026-09-04By the Grain team
# Download the Mac app from rungrain.com, then:
grain login
cd path/to/project
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

What the agent does, what Grain does

LayerCursorGrain
Human interfaceProvides the editor and agent mode where you inspect codeProvides the artifact workspace and sharing surface
CodeReads and changes files in the projectPublishes the files the agent leaves in the connected folder
Model workRuns the coding-agent interaction on your Cursor planDoes not include an agent or mark up tokens
PreviewLets you inspect the project during developmentGives the finished artifact a URL for other readers
DataWrites application behavior and data accessCan supply Postgres to a full app artifact
AccessKeeps development in your editor workflowOffers public, password-protected or invite-only sharing
FeedbackApplies your next instruction to the filesCollects reader comments the agent can read and act on

Setup

  1. Download the Mac app from rungrain.com, open it and sign in. The download flow asks for an early-access phrase and offers a request-access form.
  2. In a terminal, run 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.
  3. Run grain init. For Cursor, the command writes the MCP configuration to .cursor/mcp.json. Open that exact file if the server is missing in Cursor. .mcp.json and .codex/config.toml belong to other clients.
  4. Open the folder in Cursor and confirm the connection in the client. Give agent mode a prompt that names the reader, deliverable and completion checks. Say whether the result is static or needs Postgres, login or a scheduled job.
  5. Keep Cursor as the editor. Grain is downstream from the editing loop, so you can inspect diffs and run project checks before the files are pushed to the artifact workspace.

First artifact

  1. Start with a bounded prompt: 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.
  2. Inspect the files and run the repository's checks. Ask Cursor to remove credentials, local file paths, copied logs and claims that are not supported by the source material. Decide whether sample data is enough before introducing Postgres.
  3. Run 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.
  4. Run 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.
  5. Open the returned 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.
  6. Send the live address and request comments on the artifact. Feed those comments back into Cursor, revise the same folder, then push and checkpoint again. The artifact stays at a useful address while its files change.

What you pay

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 Mac app, CLI and self-hostable core. 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.

Limits and known gaps

  • Grain is not an IDE replacement. It does not provide Cursor's editor, agent mode or human code-navigation workflow.
  • Cursor remains responsible for creating and changing the project. Publishing a result does not prove that the implementation is correct or secure.
  • The integration file is .cursor/mcp.json. A policy-managed Cursor setup may require review before that file can change.
  • A public share is available to anyone with the link. Use a password or invitations for artifacts that should have a narrower audience.
  • The Mac app is the primary desktop surface. Windows has a waitlist, and the core can run on Linux.
  • Use a general deploy platform when the job is a production service with its own repository pipeline. Grain publishes agent output directly and is not a general deployment platform.

Frequently asked questions

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.

Which file connects Cursor to Grain?

grain init writes the Cursor MCP configuration to .cursor/mcp.json.

Can Cursor publish a full app through Grain?

Yes. A full app artifact can have Postgres, logins and scheduled jobs. A static artifact can remain a simple page.

How do I share a Cursor preview with a customer?

Push and checkpoint the reviewed files, then choose public, password-protected or invited-person sharing. Send the returned artifact URL instead of localhost.

Can I take the files out later?

Yes. Artifacts remain files, and grain pull fetches them from the workspace.

Publish what Cursor finishes

Download the free Mac app, connect one folder and replace the local preview with a shareable artifact.

Free forever. No card. Bring your own agent.

Sources · facts verified 2026-09-04