opendray
v2.17.8
Published
Self-hosted gateway that runs Claude Code / Codex / Antigravity / shell sessions on your own infrastructure. CLI installer wrapper around the official Go release binary.
Maintainers
Readme
opendray
Self-hosted gateway that runs Claude Code · Codex · Grok · Antigravity · shell sessions on your own infrastructure, with persistent sessions, local-first memory, and six chat channels (Telegram, Slack, Discord, Feishu, DingTalk, WeCom).
This package is the npm distribution of the official Go release binary — the gateway executable only. It does not provision PostgreSQL, create a service user, install the AI CLIs, or register a systemd/launchd service. For a fully-managed, one-command server install that does all of that, use the curl installer instead:
curl -fsSL https://raw.githubusercontent.com/Opendray/opendray/main/scripts/install.sh | bashThe project itself lives at github.com/Opendray/opendray.
Install
npm install -g opendrayOr with pnpm / yarn:
pnpm add -g opendray
yarn global add opendrayThe right platform binary (Linux x64/arm64, macOS x64/arm64) is selected
automatically via optionalDependencies, with no post-install network call.
Usage
opendray ships the whole gateway: the web admin is embedded, so there is no
Node runtime or separate web server at deploy time. You bring a PostgreSQL 15+
database (with the pgvector extension) and start it yourself:
export OPENDRAY_DATABASE_URL="postgres://opendray:[email protected]:5432/opendray?sslmode=disable"
export OPENDRAY_ADMIN_PASSWORD="$(openssl rand -base64 24)"
opendray migrate # apply schema (idempotent)
opendray serve # run in foreground → http://127.0.0.1:8770/admin/See the binary install guide
for the full first-run walkthrough: pgvector setup, config.toml, and running
as a systemd / launchd service.
Install at least one AI CLI
opendray spawns whichever CLI you pick per session — it does not bundle them. With the npm route you install them yourself (the curl installer does this step for you). Install one or more, then log each in:
npm install -g @anthropic-ai/claude-code # claude
npm install -g @openai/codex # codex
npm install -g @xai-official/grok # grok
# antigravity (agy) is distributed by Google, not npm — see antigravity.google.com
claude login # then, per CLI you installed:
codex login
grok login # sign in with your xAI accountopendray providers list shows which CLIs are detected and their versions;
opendray providers update npm-updates the installed ones (claude, codex, grok).
Supported platforms
| OS | Architecture | | ------ | ------------ | | Linux | x64, arm64 | | macOS | x64, arm64 |
Windows is not yet packaged. Track opendray#XXX.
License
Apache-2.0, see LICENSE.
