Grain / Compare / Grain vs open-spaces

Comparison

Grain vs open-spaces

open-spaces is the better choice when you want MIT-licensed code you can open, change and run on your own machine today, and you accept the limits its README states. The Grain workspace is the better fit when an agent you already use should publish pages and apps at a shareable URL for other people. Grain is open source under AGPL-3.0, but its repository isn't public yet (GitHub · coming soon), so on "you can read and run the code today", open-spaces wins.

Updated 2026-11-24Facts verified 2026-11-05By Parsa Khazaeepoul

Quick answer

open-spaces (the README calls it OpenSpaces) is an independent project by Anil Matcha that copies the shape of ChatGPT Space: Spaces, pages and conversations, with a rich-text editor and inline AI. It isn't affiliated with OpenAI. You run a Next.js web app and a FastAPI server yourself and bring a database and a MuAPI key. It is young: on 2026-11-24 GitHub showed 5 stars, 0 forks, a repository created on 2026-10-29 and 7 commits. Third-party directories list higher star counts, so check the repository itself. The Grain workspace solves a different problem. Your agent writes files, and Grain publishes them with public, password or restricted links and, for apps, a SQLite database (data.db). Choose open-spaces to study or extend a Space-like editor. Choose Grain to put agent-made work in front of other people.

Fit first

Dimensionopen-spacesGrain
AudienceDevelopers who want a Space-like codebase to run locally, study or build onDevelopers and small teams whose agents build pages, reports and apps that others need to open
JobGive one person or a trusted setup a workspace of pages, chat and AI writing toolsKeep agent-made artifacts at a URL as files, with data, sharing and comments
ControlMIT; the code is available today and runs where you put itOpen source under AGPL-3.0 (GitHub · coming soon); the code isn't available to run today; you choose the agent
FrictionInstall Node.js and Python 3.10 or newer, set a MuAPI key and a database URL, then start two processesDownload the desktop app and run grain init --template html, or connect the hosted MCP server from your AI tool
EconomicsThe software is free; hosting, the database and AI provider usage can cost money, and no free model inference is includedFree to start: static pages and their share links use no sandbox minutes; Grain sells no model usage; paid builder and viewer seats come with monthly sandbox minutes

What is different, verifiably

open-spaces facts from its README, license, code and commit history on GitHub, checked on 2026-11-05.
Dimensionopen-spacesGrain
PricingNo price; you pay your own hosting, database and MuAPI usageFree to start; paid builder and viewer seats with monthly sandbox minutes, plus minute packs
Free tierAll of the software is free under MIT; no hosted service is documentedStatic pages and their share links are free and use no sandbox minutes; organizations without a subscription get free sandbox minutes every month; no card required
Bring your own agentNo. Chat and inline AI use a configured MuAPI model, the repository doesn't mention MCP, and the README says agent execution isn't a complete production workflowYes. Claude Code, Codex, Cursor and any MCP client, including Claude and ChatGPT through the hosted MCP server
Persistence after the sessionPages stay in the database you run, for as long as your server is up; without a database URL there is an in-memory development fallbackPublished artifacts stay published after the agent session and after a user stops paying
SharingNo public, password or restricted link is documented, and the README says not to expose it as a multi-user service until authentication is enforcedPublic, password-protected or restricted links (signed-in organization members and invited guests); signed-in organization members comment, and you send comments to your agent from the desktop app
DatabaseA PostgreSQL-compatible database you configure, including SupabaseApps keep data in a SQLite database (data.db) in the workspace and run longer work as a bounded job started on request
Custom domainUp to you, since you run the app; the README doesn't cover itShare links are https://<slug>.share.rungrain.com
ExportThe API has no export route as of 2026-11-05; the database is yours, so you can query it directlyArtifacts are files: grain pull, grain checkpoint and grain restore
PlatformA web app and an API you start from source; the repository has no Docker file as of 2026-11-05Desktop app for macOS, Windows and Linux, CLI, and a hosted MCP server
Source code and hostingMIT, public on GitHub today, and meant to run on infrastructure you controlOpen source under AGPL-3.0 (GitHub · coming soon); run the desktop app with local workspaces, or use hosted cloud workspaces on E2B

Where open-spaces is better

  • You can read and run the code today. Grain's repository isn't public yet, so if that is your requirement, open-spaces meets it and Grain doesn't.
  • You choose where it runs. The README's whole setup is your machine or your server, with your database, and that is available now.
  • A permissive license. MIT lets you change the code and ship it in your own product with few conditions, while AGPL-3.0 asks more of anyone distributing changes.
  • A page editor people type in. It has a TipTap rich-text editor, Markdown mode, slash commands, autosave and inline AI actions. Grain has no editor; agents write the files.
  • No vendor account. You need a MuAPI key for AI features, but no account with the project itself.

Where Grain is better

  • Built to show other people. Links can be public, password-protected or restricted. The open-spaces README says authentication and per-Space authorization aren't enforced consistently, and warns against sensitive data.
  • Any agent writes to it. Claude Code, Codex, Cursor and other MCP clients use the same workspace, while open-spaces routes AI through its MuAPI integration.
  • Publishing, sharing and comments work today. The open-spaces README says some of its flows are prototypes or simulated, and its WebSocket isn't a collaborative editing system.
  • A running app behind the URL, with a SQLite database (data.db) and bounded jobs you or the agent start (grain job start, up to one hour, with status and cancel).
  • Nothing to operate. There is no server or database to keep up, static pages are free with no card, and the desktop app shows who viewed each artifact.

Moving between them

  1. From open-spaces to Grain: copy each page's content from the editor's Markdown mode, or query the pages from your own database. There is no export route to call.
  2. In a folder with that content, run grain init --template html for a site or report, or grain init for an app. Either writes .mcp.json, or updates .codex/config.toml or .cursor/mcp.json if the project already has them.
  3. Ask your agent to turn the pages into a site, report or app. Put data that people update in the workspace's SQLite database (data.db).
  4. Run grain push, grain checkpoint -m "import from open-spaces" and grain share --public, or --password <pw> for a private link. Conversations, page revisions and comments stay in your open-spaces database.
  5. From Grain to open-spaces: run grain pull, then paste the text into new pages. Apps, SQLite data, share links, comments and view history don't carry over, because open-spaces holds pages rather than running apps.

Choice rule

Choose open-spaces
if you must be able to read and run the code today, want MIT terms, and will keep it private to yourself or a trusted network, as its README advises.
Choose Grain
if your agent's pages and apps need a URL other people can open, with sharing controls, and you don't need the source in hand right now.
Choose neither
if you want a finished shared editor for a team. ChatGPT Space itself, or another option on our ChatGPT Space alternatives page, fits that better.

Frequently asked questions

What is open-spaces on GitHub?

It is a free, MIT-licensed project by Anil Matcha that describes itself as an open source alternative to ChatGPT Space. It offers Spaces, pages and conversations, and it isn't affiliated with OpenAI.

Is open-spaces safe to self-host?

Run it privately. Its README says the code doesn't yet enforce authentication and per-Space authorization consistently, and says not to expose it as a multi-user service or use it with sensitive data until that is implemented and reviewed.

How many GitHub stars does open-spaces have?

GitHub showed 5 stars and 0 forks on 2026-11-24. Some third-party directories list higher numbers, so read the count on the repository itself.

Can I run the Grain workspace from source today?

No. Grain is open source under AGPL-3.0, but the repository isn't public yet (GitHub · coming soon). If you need the code today, open-spaces has it.

Does open-spaces work with Claude Code or Cursor?

The repository doesn't mention MCP or those agents as of 2026-11-05. AI features use a configured MuAPI model. The Grain workspace works with Claude Code, Codex, Cursor and any MCP client.

Publish what your agent builds

Download Grain for macOS, Windows or Linux, or connect the hosted MCP server from the AI tool you already use.

Download Grain

Free forever. No card. Bring your own agent.

Sources · facts verified 2026-11-24

See also: ChatGPT Space alternatives · Grain vs ChatGPT Space