vibescoder

Migrating Coder Off the RTX 5090, Part 1: Where It Started and the Plan

·6 min read

The RTX 5090 started this whole journey. I wanted to find out whether a high-end gaming rig could serve useful local AI. It could. Too well. I got pulled into building increasingly robust local AI that could cut, and maybe eliminate, my dependence on cloud tokens.

That spiral widened. Wanting to own my AI stack led to wanting to own more of the infrastructure it ran on, which is how I ended up with a homelab obsession. The AI-NT-No-Problem rig itself is the machine in question. From there I built a dual-node NVIDIA Spark cluster for real local AI, a self-hosted AI dev environment, and a homelab dashboard that doesn’t care if the GPU box is off. A ThinkCentre running Proxmox, a Mac Studio, a Chromebox backup target, those two DGX Sparks, and the Strix Halo all got drafted into it.

Coder was running on the gaming PC. The problem is the gaming PC gets powered down. I want a Coder control plane that’s always-on, not something that vanishes when I shut the workstation down for the night. The Strix Halo is an AMD Ryzen AI Max with 128 GB of unified memory. I keep it powered on, which makes it a better home for the control plane. This is the story of that move, in two parts. Part 1 is the origin and the plan. Part 2 is the execution.

The Written Plan Came Before the Migration

I started by discussing the migration with a Coder agent and writing the plan down. That conversation settled what had to survive before I touched either deployment.

That sounds anticlimactic, but it’s the part I’d do first again every time. I decided what had to move, what could be rebuilt, and what I was willing to lose. Then I saved those decisions as a Markdown file in the content repo so they could survive across agent sessions.

The migration spanned days and multiple agent sessions. I needed the next session to pick up the decisions without reconstructing the conversation. The Markdown file became the running ledger. I could update it as the work progressed and give each new agent the same starting point.

That’s foreshadowing.

The Database Held the State I Needed to Keep

I inventoried the RTX 5090 deployment before planning the move. The surprising part wasn’t how much was there. It was how little of it was moveable in the way I expected.

The Coder control plane had a server running as a systemd service and an embedded PostgreSQL database. The database was the state that mattered. The server was just the binary.

The useful part of the inventory was discovering that “my Coder setup” was really several different categories, and each category migrated differently:

WhatWhere it livedHow it moved
Users, orgs, secrets, skillsCoder databaseDump/restore
AI provider + model configCoder databaseDump/restore
Chat historyCoder databaseDump/restore
TemplatesTemplate repoRe-push
Provisioner daemons + keysDeployment-specificRebuild on Strix
GitHub identityOAuth configuration and user recordsRe-authenticate the restored account
Workspace home volumesDocker volumes on RTX 5090Left behind (disposable)
coder-session-token, dead env flagsLocal-host artifactsNot migrated

That last row is the tricky one. When you migrate a service, you don’t just move the good stuff and leave the bad stuff. You have to decide, for each thing, whether it deserves to exist on the new host.

A Disposable Staging Deployment Made the Cutover Safer

The classic approach is to stand up a staging environment first. Prove the new deployment works, load it with data, verify everything, then cut over. I stood up a Coder instance on the Strix Halo node, built a template, and confirmed the path with a smoke-test workspace.

That’s when the plan sharpened into explicit choices. I wrote them as a list of preferences, partly so the agent could reason about them without asking me to clarify every five minutes:

  • Clean end state. I didn’t want to drag accumulated cruft into a new home. I wanted the cleanest production setup I could get, not a copy of the old mess in a new location.
  • Chat is the new Git. Coder’s chat history is the thing I can’t reconstitute. I can recover committed code from GitHub. I cannot reconstruct an unpreserved conversation. Workspace files were disposable once anything worth keeping was committed.
  • Keep my GitHub login flow, but I wanted a recommendation on whether it was causing the flaky-agent-credential problem.
  • Disposable staging deployment. The Strix deployment ran nothing of value, so I was comfortable restoring directly into it without a separate scratch database. If it went sideways, I could rebuild it and start over, as long as the RTX 5090 stayed untouched.

The RTX 5090 was not just a source. It was still running the live deployment and still powering the very workspace where I was planning. The source stayed running throughout the migration work. I worked around the live system instead of against it.

By the end of Part 1 I had a plan, an authoritative ledger, a standing instance on the Strix, and a clear picture of what had to move and how each piece would move. What I didn’t have yet was the execution. There was a backup to take, a database to cut over, an auth flow to rewire, and a lot of cruft to decide the fate of. That is the next part of the migration.

By the Numbers

  • 1 gaming rig — The RTX 5090 workstation that hosted the original deployment
  • 1 written plan — A Markdown ledger shared across agent sessions
  • 8 inventory categories — The deployment components and their migration paths
  • 128 GB — Unified memory in the always-on Strix Halo target
  • 0 source services stopped — The original deployment stayed up during planning

Comments