Ship is an open-source personal AI agent. You give it things to do from the web
app, the Desktop app, the gsv CLI or a messenger. It works on them with the
computers, browsers and accounts you connect, keeps going between
conversations, and tells you when something changes.
This repository is GSV, the runtime Ship is built on: the control plane, agent processes, protocol, clients and deployment. Use the hosted Ship at ship.space, or deploy GSV to your own Cloudflare account and run your own.
| Path | What it is |
|---|---|
workers/gateway/ |
The Gateway: the Kernel (identity, capabilities, syscalls, routing, schedules), agent processes, conversations and the cloud target |
workers/installations/ |
Accounts: the directory of Ships, sign-in, onboarding and operator administration |
workers/inference/, packages/inference/ |
Model requests and provider integration |
workers/adapters/ |
Messengers: WhatsApp, Telegram, Slack, Discord and email |
workers/instances/ |
Optional cloud browsers and cloud computers |
workers/pds/ |
Optional AT Protocol host for each Ship's public profile |
workers/ripgit/ |
Git-backed repositories and file storage |
web/ |
The web app, also used by Desktop |
host/ |
Rust host apps: the gsv CLI, the gsvd machine daemon and Desktop |
extension/ |
The browser extension, which lets Ship work in your browser |
packages/gsv/ |
The public TypeScript client and protocol |
lexicons/ |
The space.ship.* record types |
deployment/ |
The Cloudflare deployment |
docs/ |
The documentation at docs.gsv.space |
You need a Cloudflare account on Workers Paid, a domain in one of its DNS zones, Node.js 22 or newer, npm and Rust.
git clone https://github.com/deathbyknowledge/gsv.git
cd gsv
npm ci
export CLOUDFLARE_ACCOUNT_ID="your-account-id"
export GSV_DOMAIN="example.com"
export GSV_ZONE_ID="your-zone-id"
npx alchemy login
npx alchemy cloudflare bootstrap
npm run deployment:plan
npm run deployment:deployAdministration lives at https://accounts.example.com and each Ship at
<handle>.example.com. Models run on your account's Workers AI by default, and
each person can add their own provider keys. Messengers are off until you
enable them. Next, create the first Ship
with the one-time link the deployment issues.
Install the CLI, the machine daemon and Desktop:
curl -fsSL https://install.ship.space | bash # Linux and macOS
irm https://install.ship.space/install.ps1 | iex # Windows PowerShellThen sign in and talk to your Ship:
gsv login you.example.com
gsv ship "Hello, what can you help me with?"To connect a computer, open Work, click connect beside Connections and
run the gsv pair command it gives you on that computer. Connections are
outbound only, so there are no ports to open. See
Connect devices,
Messengers and the full
deployment guide.
./scripts/setup-deps.sh # install workspace and worker dependencies
npm run build --workspace web # build the web app the Gateway serves
npm run dev # start the local stacknpm run dev runs Accounts, inference, the Gateway and ripgit at
http://localhost:8976; open /admin to create a local Ship. Read
AGENTS.md before changing code: it is the engineering contract and
lists the checks for each part of the repository.
GSV borrows Linux's ideas, not its compatibility: familiar, composable primitives that people and models both understand.
- Gateway: a small control plane on Cloudflare's edge. It owns identity, permissions, routing, schedules and agent loops; heavy work runs on the device or service it belongs to.
- Syscalls: people, agents and the CLI use the same capability-checked calls for processes, files, shells, networking, repositories and settings.
- Processes: agents are durable processes with their own identity, history, permissions and queue. Ship hands work to helper processes and records what it has promised in a durable ledger, so nothing is forgotten between runs.
- Targets: Ship's cloud home, your computers, your browser and cloud instances offer the same file, shell and network calls. Choosing a target changes where work runs, not what a command means.
- Agent tools: the model sees eight tools: Read, Write, Edit, Delete, Search, Shell, CodeMode and Send. Integrations add capabilities beneath them instead of new tools.
- Adapters: each messenger is a separate Worker that turns its messages into the same people, places and messages for the Kernel.
- Open network: every Ship publishes a public profile on the AT Protocol network, and its owner decides what it shows.
GSV is named after the General Systems Vehicles, the ship Minds of Iain M. Banks' Culture novels. Read more in the architecture docs, the syscall reference and the security model.
Bug reports, ideas and pull requests are welcome. Open an issue or talk to us on Discord.