If you're an Emacs user and a fan of GitHub Codespaces, I have great news for you! I've taken over maitenance of:
f4ban
/
codespaces.el
Emacs support for easy access to GitHub Codespaces.
codespaces.el
About
This package provides support for managing GitHub Codespaces in Emacs and connecting to them via TRAMP. It provides a handy completing-read UI that lets you choose from all your created codespaces.
Here is an example use-package declaration:
(use-package codespaces
:config (codespaces-setup)
:bind ("C-c S" . #'codespaces-connect))
You will need to:
- Have the GitHub command line tools (
gh) installed- If you use
use-package-ensure-system-package, Emacs can install this for you automatically:
(use-package use-package-ensure-system-package :ensure t) (use-package codespaces :ensure-system-package gh :config (codespaces-setup))
- If you use
- Authorize
ghto access your codespaces:- Running
gh codespace listwill verify if permissions are correctly set. - You can grant the required permission by running
gh auth refresh -h github.com -s codespace.
- Running
Because the TRAMP package, which underpins this package’s functionality, connects to remote servers over SSH, your codespace needs to have an SSH server…
What is codespaces.el?
codespaces.el is an Emacs package that enables seamless interaction with GitHub Codespaces. If you're unfamiliar Learn more about codespaces here.
With this package, you can interact with your Codespaces directly from within Emacs, whether it's creating a new one or connecting to a existing codespace, all from the comfort of your favorite editor.
Key Features:
- Connect to Codespaces via Emacs TRAMP
- Create new and delete old Codespaces
- Start and stop Codespaces
Contributing
If you’d like to contribute to the project, feel free to create issues and submit a pull request! I’m always open to new ideas and improvements.


Top comments (1)
cool