0bridge CLI
The 0b command-line tool for 0bridge: one MCP endpoint for all your AI tools. Sign in to Linear, Notion, Sentry and the rest once, and Claude Code, Codex, Cursor, Claude and ChatGPT all use them, and your history, memory and instructions go where you go, so you can switch tools without starting over.
This repository is the client: the 0b CLI (apps/cli) and the library it's built on (packages/core). It's published so you can read what runs on your machine before you install it. The 0bridge gateway it talks to is a hosted service and isn't part of this repository.
npm install -g 0bridge@latest
0b setup
Getting started, every command and how it all works: 0bridge.dev/docs.
What runs on your machine
- Tool settings.
0b setupand0b applywrite the 0bridge endpoint, your MCP servers, skills and instructions into each AI tool's own config (Claude Code, Codex, Cursor, Gemini CLI), backing every file up first. Seepackages/core/src/adapters.tsandplan.ts. - The vault. Secrets are encrypted here before they're uploaded (AES-256-GCM, a key only your devices hold), and
0b exechands them to a command as environment variables, masking them in output an agent reads. Seepackages/core/src/vault-crypto.ts,vault.tsandapps/cli/src/vault.ts. - Conversation history, only if you turn it on: read from your AI tools' local files, with vault values and key-shaped text masked on this machine before upload. See
packages/core/src/history.ts. - Hooks, only if you turn on history or the session board: one silent entry per event in each AI tool's hook settings, next to whatever is already there. It writes a note and a background worker posts the state, with up to two redacted lines of text and none with end-to-end history. See
apps/cli/src/hook.tsandsessions.ts. - Token counts, with history or
0b usage on: counts only, never text, read from the same local files. Seeapps/cli/src/usage.ts. - Agent computers.
0b setup --agent-vmsets up an AI agent's own computer without prompts, with an expiring token. It installs no background service. Seeapps/cli/src/agent-vm.ts. - Personal files are sealed with your vault key before upload (
apps/cli/src/files.ts).
What the server can and can't read: 0bridge.dev/docs/security.
Build it yourself
bun install
bun test
bun run build # apps/cli/dist/0b.js, the file npm ships
Each release is this repository's tagged commit (v<version>): it is built, scanned for secrets and tested on the maintainer's machine, and pushing its tag runs publish.yml, which scans and tests it again and publishes it to npm through trusted publishing, with npm provenance that links the package to that commit. Versions 0.2.38 to 0.2.40 were published by hand and have no provenance statement; compare those against their tags here.
Issues and security
Bugs and questions: issues. Security problems: report them privately through the contact form instead of opening an issue.
This repository mirrors the client from 0bridge's private monorepo, so pull requests may be applied there by hand rather than merged here.
License
Source available under the Functional Source License 1.1, Apache 2.0 future license (FSL-1.1-ALv2): use it, read it, change it and run it however you like, except to build a product that competes with 0bridge. Each version becomes Apache 2.0 two years after its release. Versions up to 0.2.13 were published under MIT.