Matrix Dev VPS

SkillCloud & infra

Work on Matrix OS from inside a Matrix user VPS with near-realtime development, hot reload, previews, and safe separation between customer code and platform secrets.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Matrix Dev VPS skill

What this skill tells your AI

The instructions your AI receives, as published by hamedmp/matrix-os in skills/matrix/dev-vps/SKILL.md and read by ahel’s review.

When to Use

Use this when developing Matrix itself, Matrix apps, or Matrix-adjacent projects from inside a Matrix user VPS.

Mental Model

  • Production user VPSes run the built Matrix image.
  • A dev VPS can run most services in containers while shell and backend run natively with hot reload.
  • Platform owns shared sensitive integration credentials.
  • User/project work happens in the user's home and project directories.
  • The dev loop should feel like a normal user coding inside Matrix, with preview URLs routed back into Matrix.

Expected Dev Shape

Matrix platform
  owns Clerk, Pipedream, provisioning, shared secrets

User/dev VPS
  runs gateway, shell, proxy, Postgres, app builds
  contains user projects
  uses cloudflared or tunnel routing for dev.matrix-os.com

Common Commands

From the Matrix repo:

pnpm install
pnpm --filter './packages/gateway' dev
pnpm --filter './shell' dev

For Docker-backed services, prefer the repo's documented compose file and env file:

docker compose --env-file .env -f docker-compose.dev-vps.yml up -d

For apps:

cd ~/apps/<slug>
pnpm install
pnpm build

Preview Rules

  • Prefer Matrix app windows for user-facing preview.
  • For raw dev servers, use SSH forwarding or the configured tunnel.
  • Do not expose unauthenticated dev servers publicly.
  • dev.matrix-os.com should require auth.

Codex, Claude, and Agent on VPS

  • Use pnpm, not npm, for project dependencies.
  • Global agent CLIs must be writable by the matrix user if self-update is expected.
  • If a global npm install fails with EACCES, fix ownership of the runtime node global prefix rather than running day-to-day development as root.

What Users Can Do

  • Build apps in ~/apps.
  • Work on coding projects in ~/projects.
  • Use Matrix integrations through platform-owned routes.
  • Preview apps in Matrix.
  • Run agent-assisted development tasks.

What Users Should Not Do

  • Store platform Pipedream, Clerk, or provider secrets on a customer VPS.
  • Modify production platform state directly from a dev VPS.
  • Use Docker volume reset commands unless explicitly resetting state.
  • Build Matrix features that only work outside Canvas mode.

Verification

  • Shell loads with auth.
  • Gateway /health is healthy.
  • App previews work from Matrix windows.
  • Hot reload works for shell and gateway in dev mode.
  • Integration routes proxy to platform instead of requiring customer VPS secrets.

Signals

GitHub stars
64
Forks
20
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
matrix-dev-vps
Source
github.com/hamedmp/matrix-os