Skip to content
deathbyknowledgePublic

About

The personal assistant from the future.

Topics

Resources

Stars

134 stars

Watchers

2 watching

Forks

Latest commit

 

History

5,434 Commits

Folders and files

Repository files navigation

Ship

A conversation with Ship. Ship: Hey, still no refund confirmation for those shoes you returned. Want me to follow up? You: yes please. Ship: Cool, email sent. I'll keep an eye on the reply. Ship: Your refund has been processed! They just confirmed it by email. Ship: By the way, your streaming trial ends tomorrow. Want me to cancel it before you're charged?

MIT License Release Docs Discord X

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.

What's in this repository

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

Self-host

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:deploy

Administration 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 PowerShell

Then 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.

Develop

./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 stack

npm 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.

How it works

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.

Contributing

Bug reports, ideas and pull requests are welcome. Open an issue or talk to us on Discord.

License

MIT

About

The personal assistant from the future.

Topics

Resources

Stars

134 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages