GravityPort
# GravityPort
English | [简体中文](README.zh-CN.md)
[](https://github.com/fengseekling-coder/gravityport/actions/workflows/ci.yml)
[](LICENSE)
[](#downloads)
[](https://mcprush.com/to/gravityport-mcp?ref=badge)
> **Every AI creation leaves a trail**
> 自动收录 AI 生成的图片与视频,完整保留提示词、参考图、来源与版本记录,全部存储于本地设备。
GravityPort is an AI asset manager for ChatGPT, Gemini, Flow, Google AI Studio, Codex, Grok, Jimeng, and Lovart. It automatically captures generated images and videos into your library, preserves prompts, reference images, and provenance with every asset, and stores all assets and metadata locally on your device.

- **Auto-Capture:** Automatically captures generated images and videos into your library.
- **Prompts & Context:** Preserves prompts, reference images, and provenance with every asset.
- **Version Tree:** Tracks every round of iterations within a conversation.
- **Smart Stacks:** Organizes related assets by generation source and conversation.
- **100% Local:** Stores all assets and metadata locally on your device.
- **GravityPort MCP:** Enables AI assistants to access and manage your library directly.
- **Free Download:** macOS · Windows · gravityport.azhuilab.com
[Downloads](#downloads) · [First launch](#first-launch) · [中文使用指南](docs/guide.zh-CN.md) · [Privacy](PRIVACY.md) · [Documentation](#documentation)
## Downloads
Get GravityPort from the [official download page](https://gravityport.azhuilab.com/#download). It always lists the current packages with their sizes; the Windows package also shows its SHA-256 value.
- **GravityPort Desktop for macOS** (Apple silicon or Intel, from 0.3.13): a DMG for each chip; the download page offers both. Pick the one that matches your Mac (Apple menu → About This Mac). Drag `GravityPort.app` into Applications.
- **GravityPort Desktop for Windows 10/11** (x64): an installer. Double-click it; it installs GravityPort for your Windows account without asking for an administrator, adds it to the Start menu and the desktop, and opens it. Remove it in Settings → Apps; your library stays. (0.3.3 and earlier came as a portable ZIP: extract it and run `GravityPort.exe`.)
- **GravityPort Web Capture** (Chrome / Chromium, optional): included with the desktop app and updated with it. In GravityPort, open Settings → Connect and follow the steps on the browser extension card to load the folder it shows once in Chrome; then click Connect to GravityPort on the settings page it opens and Allow Connection in GravityPort. See the [install guide](https://gravityport.azhuilab.com/guide/).
Installed desktop apps check for updates themselves in **Settings → About**. The [release manifest](https://gravityport.azhuilab.com/releases/gravityport/latest.json) is the machine-readable source for the newest version.
## First launch
- **macOS:** the first time you open GravityPort, macOS asks whether to open an app downloaded from the internet. Click **Open**. Only once.
- **Windows:** the installer is not code-signed yet, so SmartScreen may say "Windows protected your PC". Click **More info → Run anyway**. Only once, when you install.
## Why GravityPort
An image alone rarely tells you how to use it again. The Prompt may be in another conversation, the source tool may be forgotten, and the version you actually want may be buried among near-duplicates.
GravityPort reconnects each asset with the context that makes it reusable: its available Prompt, generation source, provenance, and version history. The library remains under your control on your machine.
## What you can do
### Keep the context with the asset
Archive generated images and videos together with their available Prompt, source, model or tool context, timestamps, and provenance. GravityPort records when a Prompt is unavailable instead of inventing one.
### Organize by drag and drop
Browse and search one gallery with adjustable column counts, marquee selection, and multi-select. Drag cards onto a sidebar group to file them, onto another card to build or join a stack, inside a stack to reorder it, or out of the window to hand the files to another app. A stack built or joined by drag can be undone for a few seconds.
### Iterate on the version tree
The Inspector shows each asset's version tree, with generations from a ChatGPT conversation grouped by conversation round so you can see how the image evolved turn by turn. Images edited from an existing Lovart image in your library automatically attach beneath the original. Any two versions in a family can be compared side by side. Open the version tree from the Inspector or an image's context menu to see every version and how they relate on a canvas, link versions by dragging between them, and mark what to change in the next round.
### Let AI agents search your library
GravityPort MCP lets Claude, Codex, and other MCP clients list, search, and record assets, Prompts, versions, and generation history in the same local library. `asset_search` combines text and a time range. The desktop app ships the server: copy a ready-made config for Claude Desktop, Claude Code, or Codex from Settings → Connect, with no Node.js or source checkout needed. From source, run `npm run mcp`. See [MCP 与接口](docs/guide.zh-CN.md#mcp-与接口) for setup and the tool list.
### Recover deleted work
Removed assets move to Trash, where they are kept for 90 days with a per-asset countdown. Right after a deletion an undo button offers to reverse it; Trash has its own menu for restoring, deleting permanently, and emptying.
Settings → Feedback sends bug reports and ideas, optionally with a redacted diagnostic log that you can read in full before sending. The Pinterest entry is already shown in the app; connecting opens up once Pinterest approves production API access.
## MCP setup
GravityPort MCP is a local stdio server built into the desktop app. It opens no port and needs no Node.js or npm package.
1. Install GravityPort and open it once.
2. Go to Settings → Connect → AI assistants (MCP), pick Claude Desktop, Claude Code or Codex, and click Copy.
3. For Claude Desktop, paste the config into its config file. For Claude Code and Codex, send the copied message to the assistant; it installs the server itself (replacing an existing gravityport entry). Then restart the client.
On macOS the config looks like this. On Windows the paths depend on where the app is installed, so use the Copy button in Settings.
```json
{
"mcpServers": {
"gravityport": {
"command": "/Applications/GravityPort.app/Contents/MacOS/GravityPort",
"args": ["/Applications/GravityPort.app/Contents/Resources/app.asar/mcp/server.mjs"],
"env": { "ELECTRON_RUN_AS_NODE": "1" }
}
}
}
```
With Node.js 18 or newer installed, `npx -y gravityport-mcp` also works: the package finds the installed app automatically, and when the app is missing it tells your AI assistant to install GravityPort first.
```json
{
"mcpServers": {
"gravityport": {
"command": "npx",
"args": ["-y", "gravityport-mcp"]
}
}
}
```
## Tools
GravityPort MCP provides 25 tools:
- **Search:** `asset_search` (text and time range), `asset_list`, `asset_get`
- **Add:** `asset_create`, `asset_import_folder`
- **Edit:** `asset_update_metadata`, `asset_attach_prompt`, `asset_duplicate`
- **Trash:** `asset_trash` (move to Trash), `asset_restore` (restore from Trash)
- **Stacks:** `stack_list`, `stack_get`, `stack_create`, `stack_rename`, `stack_add_assets`, `stack_remove_assets`, `stack_dissolve`
- **Versions:** `asset_version_create`, `asset_version_history`, `asset_recipe_history`
- **Generation history:** `generation_record`, `generation_list`, `generation_relation_record`, `generation_lineage`
- **Export:** `asset_provenance_export` (provenance without file paths or user names)
## Fits into your workflow
| You create in | GravityPort keeps |
| --- | --- |
| **Codex Desktop** | Generated images and the matching local generation context when available |
| **ChatGPT, Gemini, Flow, Google AI Studio, Jimeng, or Lovart in Chrome** | Optional visible web-generated images/videos and conservative page-scoped context through the local extension |
| **ChatGPT desktop app** | Images from desktop chats, picked up by the same extension (auto capture on) through your browser's ChatGPT session |
| **Grok** (Grok Build CLI) | Images and videos from local sessions, with matched tool context when available |
Cowart canvas archiving and other integrations are also supported; see the [Chinese guide](docs/guide.zh-CN.md) for setup.
Whatever the source, everything lands in the same local gallery with groups, stacks, Trash with undo, and the version tree. GravityPort does not generate media or replace any of these tools.
## Platform status
| Target | Status |
| --- | --- |
| macOS arm64 | Main desktop target. DMG for first install, in-app updates afterwards. |
| macOS x64 (Intel) | From 0.3.13. Separate DMG for first install, in-app updates afterwards. |
| Windows 10/11 x64 | Installer for first install, in-app updates afterwards. Not code-signed yet. |
## Run from source
For development, or to run GravityPort as a local web app without the desktop shell. Requires Node.js 22 or newer and npm.
```bash
git clone https://github.com/fengseekling-coder/gravityport.git
cd gravityport
npm ci # installs dependencies and builds the UI
npm start # starts the local service on 127.0.0.1:43517
```
Open <http://127.0.0.1:43517>. Run `npm test` to check your checkout. Codex Desktop and the Cowart plugin are optional integrations; the [Chinese guide](docs/guide.zh-CN.md) covers their setup and the complete source-by-source behavior.
The Electron desktop shell uses the same Web UI and local runtime:
```bash
npm run desktop:start
# macOS arm64 DMG
npm run desktop:make
# macOS x64 (Intel) DMG
npm run desktop:make:x64
# Windows 10/11 x64 package directory
npm run desktop:package:windows
```
Desktop packaging needs Node.js 22.x; the repository pins `22.23.1` in `.nvmrc` and `.node-version`, and packaging commands stop with a clear message on any other major. Release tracks, signing, notarization, and manifest publishing are described in the [release guide](docs/releasing.md).
## Local by design
- GravityPort is a local Web UI bound to loopback; it is not a cloud service and must not be exposed through a public port or reverse proxy.
- It reads only its configured Codex, Grok, and approved Cowart locations. It does not scan Downloads, Desktop, or arbitrary image folders.
- Web Capture is optional. Packaged Desktop provisions its local ingest Token and fixed approved extension origins automatically; a standalone `npm start` runtime keeps capture disabled until those values are configured explicitly. The extension sends captured image bytes and page provenance only to the configured local GravityPort address. ChatGPT retains message-scoped context when available; the other supported sites retain only narrowly associated visible user Prompt text when it can be safely matched and mark it unverified — the extension's full site list is documented in [PRIVACY.md](PRIVACY.md#web-capture-chrome-extension). With auto capture on, the extension also captures images from conversations you just used in the ChatGPT desktop app by opening them briefly in a minimized browser window; see [PRIVACY.md](PRIVACY.md#chatgpt-desktop-app-conversations).
- Eligible reference images are stored as private, content-hash-deduplicated generation-record attachments, not ordinary gallery assets.
- The desktop app ships and downloads no AI model. GravityPort adds no remote sync or automatic upload of your library.
- Packaged desktop builds send minimal install/activity metadata, keyed by a random installation ID, through a separate bodyless request to the same first-party release endpoint used for update metadata. This contains only the installation ID, version, platform, architecture, and first-launch/daily-active event, and never includes assets, Prompts, or local paths. See [PRIVACY.md](PRIVACY.md), which also explains how to turn it off.
See [PRIVACY.md](PRIVACY.md) for the full data boundary and [SECURITY.md](SECURITY.md) for private vulnerability reporting.
## Community
- [Discord](https://discord.gg/rArXAShSkQ): chat, ask questions, and share what you make.
- [GitHub Discussions](https://github.com/fengseekling-coder/gravityport/discussions): ask questions and share ideas.
## Documentation
User guides:
- [中文使用指南](docs/guide.zh-CN.md) (中文): setup, sources, local library, search, versions, MCP, and maintenance.
- [Context menu](docs/context-menu.md) (中文): sidebar, card, and empty-grid actions.
- [Web Capture extension guide](extensions/chatgpt-web-capture/README.md) (中文): local setup, permissions, capture behavior, and limitations.
Running and developing GravityPort:
- [Operations guide](docs/operations.md) (English): operating modes, migration, backup, verification, bridge health, and recovery boundaries.
- [Release guide](docs/releasing.md) (English): distribution tracks, signing, update manifests, release notes, and optional pack publishing.
- [Architecture](ARCHITECTURE.md) (中文): current runtime, storage, and integration layout.
- [Design system](DESIGN.md) (中文): colors, type, spacing, components, and copy rules for the desktop interface.
- [Contributing guide](CONTRIBUTING.md): development workflow, checks, and privacy requirements.
Policies and history:
- [Privacy policy](PRIVACY.md): data sources, local storage, extension permissions, and network boundaries.
- [Security policy](SECURITY.md): supported versions and private vulnerability reporting.
- [Support guide](SUPPORT.md): questions, bug reports, and feature requests.
- [Changelog](CHANGELOG.md) and [Web Capture changelog](extensions/chatgpt-web-capture/CHANGELOG.md): user-visible changes and release status.
- [Third-party notices](THIRD_PARTY_NOTICES.md): upstream projects and models that GravityPort builds on or redistributes.
## License
GravityPort is source-available under the [PolyForm Shield License 1.0.0](LICENSE).
- Anyone can use GravityPort for free, including at work and for client projects.
- You can modify it and share copies, as long as you keep the license terms and the required copyright notice.
- You may not use GravityPort's code to provide a product that competes with GravityPort, including renamed or lightly modified copies, even when offered for free. If you are unsure whether your use competes, see [COMMERCIAL-LICENSE.md](COMMERCIAL-LICENSE.md).
GravityPort is source-available software, not OSI-approved open-source software. `v0.1.0` is the final release published under the MIT License; versions 0.2.0 through 0.3.5 were published under the PolyForm Noncommercial License 1.0.0, and copies obtained under those terms keep them.
Third-party attribution is documented separately in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) and does not change GravityPort's own license terms.
TDQS
Scored across 25 tools
Most tools target clearly distinct resource+action pairs, and the descriptions explicitly route agents between pairs (asset_list vs asset_get, stack_remove_assets vs stack_dissolve, asset_trash vs archive). There is residual overlap: asset_list accepts a search-text filter while asset_search performs lexical search with time bounds, and asset_version_create / asset_attach_prompt / asset_update_metadata all write recipe state, as do asset_version_history vs asset_recipe_history for reading history.
Names are uniformly snake_case and namespace-prefixed by domain (asset_, stack_, generation_), which makes the set predictable and greppable. Minor deviations exist in ordering: asset_version_create and asset_version_history put the sub-resource before the verb, whereas asset_create, asset_attach_prompt, asset_update_metadata, and stack_rename put the verb second or in a different position.
25 tools is at the heavy end of the range and sits right at the rubric's 'too many' boundary. The domain (assets, versions, recipes, stacks, generations, provenance) is genuinely broad and most tools earn their place, but the generation_* and stack_* families could plausibly be slimmed.
Coverage is strong: create/import/list/search/get/duplicate, versioning and recipe history, metadata and prompt editing, trash/restore, full stack lifecycle, generation recording and lineage, and provenance export. Gaps remain: the asset_trash description warns against using it for 'archive' operations yet no archive/unarchive tool exists, and there is no permanent purge or provenance-bundle import counterpart to asset_provenance_export.