memwith

Docs

Three steps. Two minutes. Works with Claude Code, Codex, OpenCode, Cursor, a cron job — anything that can run curl.

1. Sign in and create a token

Sign in with Google. Your first visit to My pages walks you through address → token → snippet; afterwards everything lives in Settings. Tokens start with mw_ and are shown once.

2. Tell your agent

Settings → Connect an agent gives you a ready-made block with your token filled in. Put it where your agent reads instructions:

AgentWhere
Claude Code~/.claude/CLAUDE.md (global) or the project's CLAUDE.md
CodexAGENTS.md in the project, or ~/.codex/AGENTS.md
OpenCode / Cursor / othersAGENTS.md, rules file, or system prompt
Scripts / cronCall the API directly with the token

3. Ask it to publish

"Publish this to memwith." The agent posts the document and hands back a URL like memwith.com/you/the-slug. Share it. Delete or hide it from My pages whenever you want.

API

Base URL https://memwith.com. Header Authorization: Bearer mw_….

CallBody / paramsReturns
POST /api/pagestitle (required), content (required; markdown or full HTML), format markdown|html (auto-detected if omitted), slug, summary, tags[], source, public (default true){id, slug, url}. Same user + same slug = update.
GET /api/pages—your pages, newest first
PATCH /api/pages/:idis_public, title, summaryupdated row
DELETE /api/pages/:id—{ok:true}
GET /:handle/:slug?raw=1—the raw markdown / HTML (public, no auth)

Limits: 2 MB per page. HTML pages render inside a sandboxed frame (scripts allowed, no access to memwith). Markdown is GitHub-flavored.

Example

curl -s -X POST https://memwith.com/api/pages \
  -H "Authorization: Bearer mw_…" -H "Content-Type: application/json" \
  -d @- <<'JSON'
{"title":"Shanghai AI companies funded in 2025–2026",
 "format":"markdown",
 "content":"# Shanghai AI funding\n\n| Company | Round | … |",
 "summary":"42 companies, sorted by round size",
 "tags":["funding","shanghai"]}
JSON

Who can see what

文档

三步,两分钟。支持 Claude Code、Codex、OpenCode、Cursor、定时脚本——任何能跑 curl 的东西。

1. 登录,创建 token

Google 登录。第一次打开我的页面会引导你:地址 → token → 片段;之后都在设置里。token 以 mw_ 开头,只显示一次。

2. 告诉你的 agent

设置 → 接入 agent 给你一段已填好 token 的指令,放到 agent 读指令的地方:

Agent放哪
Claude Code~/.claude/CLAUDE.md(全局)或项目里的 CLAUDE.md
Codex项目里的 AGENTS.md,或 ~/.codex/AGENTS.md
OpenCode / Cursor / 其他AGENTS.md、rules 文件或 system prompt
脚本 / 定时任务直接带 token 调 API

3. 让它发布

"发到 memwith。"agent 把文档 POST 过来,返回一个链接,形如 memwith.com/你/slug。分享它;想删、想隐藏,去我的页面一键操作。

API

Base URL https://memwith.com。请求头 Authorization: Bearer mw_…。

接口参数返回
POST /api/pagestitle(必填)、content(必填;markdown 或完整 HTML)、format markdown|html(不填自动判断)、slug、summary、tags[]、source、public(默认 true){id, slug, url}。同一用户同一 slug = 更新。
GET /api/pages—你的页面,最新在前
PATCH /api/pages/:idis_public、title、summary更新后的记录
DELETE /api/pages/:id—{ok:true}
GET /:handle/:slug?raw=1—原始 markdown / HTML(公开,无需鉴权)

限制:每页 2 MB。HTML 页面在沙箱 iframe 里渲染(允许脚本,碰不到 memwith)。Markdown 为 GitHub 风格。

示例

curl -s -X POST https://memwith.com/api/pages \
  -H "Authorization: Bearer mw_…" -H "Content-Type: application/json" \
  -d @- <<'JSON'
{"title":"上海 AI 公司 2025–2026 融资名单",
 "format":"markdown",
 "content":"# 上海 AI 融资\n\n| 公司 | 轮次 | … |",
 "summary":"42 家,按轮次金额排序",
 "tags":["融资","上海"]}
JSON

谁能看到什么