Repository for running a local Coder server instance.
- Platform-specific start scripts (
start.windows.sh
,start.mac.sh
,start.linux.sh
) - GitHub Codespaces bootstrap script (
start.gh.codespaces.sh
) - Documentation in
docs/
directory
- Git Bash (Windows), Terminal (macOS/Linux)
- Internet connection (for automatic Coder download)
- Open your terminal (Git Bash on Windows)
- Navigate to project directory
- Run the appropriate start script for your platform:
# Windows ./start.windows.sh # macOS ./start.mac.sh # Linux ./start.linux.sh # GitHub Codespaces (inside a Codespace terminal) ./start.gh.codespaces.sh
- Open browser to
http://127.0.0.1:3000
Press Ctrl+C
in terminal
Configure with .env
file (see .env.example
)
The start scripts will automatically download and install Coder if it's not found in the project directory:
- Direct download from GitHub releases (primary method)
- Platform-specific package managers (fallback)
- Manual download instructions (final fallback)
We currently lean on ./start.gh.codespaces.sh
to rapidly spin up and tear down an isolated learning / experimentation environment without polluting local machines. This script is optimized for:
- Ephemeral environments (open Codespace, explore, discard)
- Fast bootstrap (auto‑download if Coder binary missing)
- Consistent baseline across contributors
- Create / open a GitHub Codespace for this repo
- Run
./start.gh.codespaces.sh
- Wait for the Coder server to report it is listening on port 3000
- Use the forwarded port (Codespaces will usually auto-detect) to open the UI
- When finished, simply stop or delete the Codespace (environment torn down automatically)
While we're still solidifying core workflows and fundamentals (auth, workspace templates, storage, update cadence), the ephemeral Codespaces path lets us iterate quickly. Once those fundamentals are stable, we'll rely more heavily on the platform-specific scripts (start.windows.sh
, start.mac.sh
, start.linux.sh
) for long‑lived local installs and deeper performance / networking validation.
- Short term: Prefer
start.gh.codespaces.sh
for exploration & docs validation - Mid term: Mirror any improvements back into local start scripts
- Longer term: Treat Codespaces script as a convenience path; primary guidance shifts to native OS scripts for production‑like local testing
If you notice divergence between the Codespaces script and the others, open an issue or PR so we can keep behavior aligned.