Responsible Usage
Responsible Usage
Codespaces is shared cloud infrastructure. Good usage keeps it reliable and affordable.
Do
- Stop Codespaces you are not using
- Delete old Codespaces after work is merged
- Use the smallest machine size that does the job
- Push changes to GitHub regularly
- Ask for help early if you hit access or environment problems
Do not
- Leave Codespaces running overnight when idle
- Store secrets directly in source files
- Share forwarded ports publicly unless there is a clear reason and approval
- Use Codespaces as a long-running server
Handling secrets and data
- Use GitHub Codespaces secrets for credentials: Managing account-specific secrets
- Use repository or organisation secrets where appropriate: Encrypted secrets
Keeping costs down
- Stop at end of day
- Remove stale environments each week
- Prefer one active Codespace per task
Support
For help, ask in #octo-github-copilot.
Was this page useful?