Your apps, orchestrated. One conductor for a whole ecosystem of AI-native tools.
Live: vibemaestro.app · Built and maintained by VPDLNY.
This is a generic, self-hostable starting point for building your own vibe-coding platform — with an advanced backend already in place. We forked OpenCode, hardened it for multi-user production, and wrapped it in the orchestration layer we run in production. Fork this, add your own front-end, and you have a real platform on day one instead of month three.
No black boxes. No lock-in. Every value is a placeholder — bring your own keys.
- A model gateway — one OpenAI-shaped endpoint for every app, with per-user spend caps and a free-tier fallback that costs ~$0.
- A Discord-OAuth auth gate — membership-gated login + a single
/verifyother services call. Branded, self-contained, zero external deps. - A hardened OpenCode compute plane — OpenCode is a superb coding agent but its server is unauthenticated. Our bridge keeps it private, session-gates it, and namespaces each user to their own workspace.
- A ready schema — D1 tables for users, sessions, custom agents + memory, invoices, published apps.
- A craftsmanship-tuned agent pack —
capy-packships opinionated build rules ("ship real working code, never a placeholder") wired straight into OpenCode.
- Not another chatbot wrapper
- Not a walled garden — MIT, fork it freely
- Not tied to a single model vendor
- Not a data-harvesting funnel — secrets stay server-side
| Plane | File | Job |
|---|---|---|
| Auth gate | workers/gate-worker.js |
Discord login, membership gating, session /verify |
| Model gateway | workers/gw-worker.js |
OpenAI-shaped chat proxy, per-user spend caps, free fallback |
| Compute bridge | compute/bridge/server.js |
The only public, session-gated door to a private OpenCode |
Full picture: docs/ARCHITECTURE.md.
Plain OpenCode exposes an unauthenticated server — fine for your laptop, a liability for a multi-user platform. VibeMaestro's bridge is the fix:
- OpenCode stays private + password-gated on
127.0.0.1:4096, never public. - Every request is verified against the auth gate before it reaches the agent.
- Each user gets their own OpenCode session, derived from their Discord id — no cross-talk.
- OpenCode is wired to the model gateway as an OpenAI-compatible provider, so builds inherit the same spend caps and free-tier fallback as everything else.
You get OpenCode's power, made safe for production.
git clone https://github.com/indicaindependent/vibemaestro.git
cd vibemaestro
cp .env.example .dev.vars # fill in real values
./scripts/setup.sh # creates D1 + KV, applies schemaThen follow docs/DEPLOY.md to deploy the gate, the gateway, and the
compute plane. You need a Cloudflare account (Workers/D1/KV/AI Gateway — all free-tier),
a Fly.io account (compute), and a Discord app (login). ~30 minutes end to end.
vibemaestro/
├── workers/
│ ├── gate-worker.js # auth gate (Discord OAuth + sessions)
│ ├── gw-worker.js # model gateway (spend caps + free fallback)
│ └── wrangler.*.toml # per-worker deploy config
├── compute/
│ ├── bridge/server.js # hardened OpenCode bridge ← the fork
│ ├── capy-pack/ # OpenCode agent config + craft rules
│ ├── Dockerfile / fly.toml # compute-plane image
│ └── entrypoint.sh
├── d1/schema.sql # the whole database
├── scripts/setup.sh # one-shot bootstrap
├── docs/ARCHITECTURE.md # how the planes fit together
├── docs/DEPLOY.md # self-host walkthrough
└── .env.example # the full binding contract (all placeholders)
- Every secret is an environment binding — nothing real is committed. See
.env.example. - The OpenCode server is never exposed; only the session-gated bridge is public.
- Model credentials live in the gateway; apps only ever hold a scoped session.
- Run a secret scan before you push your fork.
.gitignorealready blocks the usual offenders.
VibeMaestro is part of the VPDLNY mission — free, independent, open tooling with no VC, no boss, no strings. The code lives in the open because it should.
Built by Indica Independent · VPDLNY · info is the weapon
Free, ad-free, independent infrastructure — no VC, no gov funding, no strings. If it served you, a tip keeps it alive and funds the next tool.
Sovereign Lightning + on-chain via SkyGive. Your sats fund uptime, not ads.