Skip to content

Add one-command VPS deploy and diagnostic script for opencode-hub - #1712

Open
cramelolo291-bot wants to merge 10 commits into
CodebuffAI:mainfrom
cramelolo291-bot:main
Open

cramelolo291-bot wants to merge 10 commits into
CodebuffAI:mainfrom
cramelolo291-bot:main

Conversation

@cramelolo291-bot

@cramelolo291-bot cramelolo291-bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

Adds a one-command VPS deployment and a diagnostic script for opencode-hub, plus the supporting Docker/Caddy stack and documentation.

What changed

  • opencode-hub/deploy/ — Docker Compose + Caddy stack (HTTPS via Let's Encrypt/ZeroSSL), .env.example, Caddyfile, and detailed README.md covering DNS, verification, backup, and troubleshooting.
  • install.sh / bootstrap.sh — one-command install on a fresh VPS: clones the repo, installs Docker, fills .env, creates the login, and starts all containers.
  • doctor.sh — diagnostic script to inspect a deployed opencode-hub.
  • Dockerfiles — Dockerfile.hub, Dockerfile.opencode, Dockerfile.hermes for the hub/data server, opencode agent, and optional Hermes agent.
  • .dockerignore / .gitignore — exclude runtime data, secrets, and local state from build context.
  • README.md updates — documents the permanent VPS deployment path with a custom domain.

Why

The hub previously only ran in ephemeral sandboxes. This makes it deployable to a real VPS with a stable HTTPS URL and automatic certificates, while keeping opencode and Hermes on the internal compose network.

Fixes none (new feature).

codebuff-team and others added 3 commits November 24, 2026 12:59
Installing on a fresh VPS still meant cloning the repo, hand-editing .env
and hashing a password before Caddy would serve the domain. Add
deploy/install.sh (Docker + .env + basic auth + compose), deploy/bootstrap.sh
for a one-line curl install, and an auth.caddy snippet imported by the
Caddyfile so the domain is not openly usable. The opencode image now installs
the real npm package (opencode-ai) and runs `opencode web`, so the deployed
root shows the actual opencode UI instead of the API-only server.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
When the domain does not answer, the useful facts are spread across DNS,
listening ports, container states and Caddy's certificate store, and the
README only lists symptoms. Add a read-only doctor.sh that checks all of
them in one run and prints a fix suggestion for each failure, so a deploy
can be triaged on the VPS without guessing or reading logs first.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

PR checks passed

Title, description and scope all look right. A maintainer
will take it from here.

@cramelolo291-bot
cramelolo291-bot marked this pull request as ready for review November 24, 2026 21:17
@cramelolo291-bot
cramelolo291-bot marked this pull request as draft November 24, 2026 21:17
@cramelolo291-bot
cramelolo291-bot marked this pull request as ready for review November 24, 2026 21:17
Sync public snapshot from freebuff-private
@cramelolo291-bot
cramelolo291-bot marked this pull request as draft November 24, 2026 21:38
@cramelolo291-bot
cramelolo291-bot marked this pull request as ready for review November 24, 2026 21:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants