Elena' s AI Blog

GitHub Codespaces

05 Jan 2022 (updated: 24 Aug 2026) / 5 minutes to read

Elena Daehnhardt


Flux: A developer's laptop screen showing a cloud-hosted code editor connected by a glowing line to a distant server icon i...


TL;DR:
  • Use GitHub Codespaces for cloud development: click 'Code' button, choose Codespace. Configure with .devcontainer files. Access from any device—no local setup needed. Perfect for team collaboration.

Previous: Part 18 — Should you use rebase?

Next: Part 20 — Linters and Git Pre-commit

Why Use GitHub Codespaces for Cloud Development

I use two computers for my coding projects and take only one with me when I travel. My projects run a lot of tests, and I want them to work reliably even on my M1 Mac, where not every package plays nicely together yet. To stop depending on any single local setup, I use GitHub Codespaces. It is a tool so helpful that I no longer remember how I worked without it.

What Is GitHub Codespaces

GitHub Codespaces is a cloud-hosted development environment: GitHub runs it in a Docker container on a virtual machine, and you connect from your browser, VS Code, or the terminal. You configure it with [.devcontainer files][4] added to the repository — skip them, and GitHub falls back to a default Ubuntu image with a broad set of languages and tools already installed. If you’re on a personal GitHub Free or Pro plan, there’s nothing to switch on: everyone gets a [monthly free quota of Codespaces usage][5] automatically. Organisation owners are the exception — they may need to [turn Codespaces access on][6] for the org’s private repositories first. Either way, you create a codespace for any branch by pressing the green <> Code button in the GitHub web UI and choosing from the default or advanced options. For the full configuration reference, see the [GitHub Codespaces documentation][1].

Installing GitHub CLI with Homebrew for SSH Access

🔒 Subscribe to keep reading.

Final Thoughts

🔒 Subscribe to keep reading.

Subscribe to unlock the full article ❤️

I keep most of the site completely open. A few unusually detailed tutorials need a free subscriber login so I can keep publishing this kind of work.

The form below signs you up for the newsletter. It does not log you into the app — log in afterwards (same email) to unlock this article and download your subscriber gifts. New subscribers get an inbox mail: Set a password to unlock articles.

desktop bg dark

About Elena

Elena, a PhD in Computer Science, simplifies AI concepts and helps you use machine learning.

Citation
Elena Daehnhardt. (2022) 'GitHub Codespaces', daehnhardt.com, 05 January 2022. Available at: https://daehnhardt.com/blog/2022/01/05/edaehn-github-codespace-pycharm/
All Posts