GitHub Codespaces Free Hours

Published
Length
3 min read

Luis Felipe Dias

All posts

Every personal account gets a monthly quota of github codespaces free hours for cloud coding. You claim and manage these hours by launching a cloud workspace from any code repo. Many engineering teams rely on these cloud boxes to speed up new developer onboarding. Teams often grant broad repo roles and store shared cloud keys inside workspace secrets. When workspace roles are too broad, any running instance can reach sensitive backend databases. How github codespaces free hours work in practic

GitHub Actions Security: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

Every personal account gets a monthly quota of github codespaces free hours for cloud coding. You claim and manage these hours by launching a cloud workspace from any code repo. Many engineering teams rely on these cloud boxes to speed up new developer onboarding. Teams often grant broad repo roles and store shared cloud keys inside workspace secrets. When workspace roles are too broad, any running instance can reach sensitive backend databases.

How github codespaces free hours work in practice

Cloud workspaces split usage into two parts: active compute time and persistent disk storage. Your monthly free quota covers a set amount of both compute hours and storage space. Larger virtual machines burn through your free hours much faster than basic two-core machines. A four-core machine uses your quota twice as fast as a two-core machine. Storage usage counts against your monthly limit even when the virtual machine stops running. Every workspace keeps its files on a cloud disk until a user deletes it. Admins can set up spending limits to block charges once the free quota ends. Users can also set shorter idle timeout rules in their personal account settings. Short timeouts stop inactive machines so background tasks do not waste your monthly quota. Deleting old workspaces right after merging a branch frees up storage quota right away.

Controlling workspace resources and cloud permissions

Teams use template files in the repo to pick the default machine size. Picking the smallest viable machine size stretches free compute time across more work days. Prebuild workflows also use compute time and storage space when preparing complex repo setups. Teams must balance fast startup times from prebuilds against their monthly storage limits. Beyond compute usage, cloud workspaces need secret keys to talk to external staging databases. Teams usually inject static database passwords and cloud keys into the workspace at startup. Any script or extension running inside that cloud machine can read those static secrets. If a developer installs a bad package, that code can use those local keys. Setting up repo permissions controls who can start a cloud workspace in your account. Still, repo roles do not control what queries a developer runs against staging databases.

Where native workspace controls stop

Native billing rules and timeout settings solve the problem of runaway cloud compute costs. Repo roles also do a good job of deciding who can boot a workspace. Yet these workspace controls stop at the boundary of the virtual machine itself. Once a user logs in, static secrets grant wide access to external data stores. Native workspace settings cannot inspect individual database queries or shell commands in flight. They cannot mask sensitive fields like emails, phone numbers, card numbers, or national IDs. If a workspace holds a database key, the user can pull full production tables. Teams need a way to check every command and rewrite sensitive fields in results. Separating workspace compute from direct database credentials keeps remote coding fast and safe.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

GitHub Actions Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Do stopped workspaces still use my free monthly quota?

Stopped machines do not use compute hours, but their saved disks still use storage quota. You must delete the workspace completely to stop storage usage from counting each month.

How does machine size affect github codespaces free hours?

Larger machines apply a multiplier to the clock time you spend coding in the cloud. A machine with twice the cores burns through your free hours twice as fast.

What happens when my account runs out of free hours?

Your active workspace stops running unless you add a payment method and raise spending limits. You can still export uncommitted code changes from a stopped workspace to a branch.

Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.