Live webinar: Building Autonomous Agent Workflows You Can Trust, Dec 15Register now

Git Integration

Your code stays in your repositories—Coder just connects

How it works

Coder connects to your Git provider to clone repositories into workspaces. Developers authenticate via OAuth or personal access tokens. Coder never stores, proxies, or caches your source code.

Supported providers

Note: If it speaks Git over HTTPS or SSH, Coder can connect to it.

GitHub

Cloud & Enterprise

GitLab

Cloud & Self-Managed

Bitbucket

Cloud & Server

Azure DevOps

Repos

Gitea

Self-hosted

Any Git server

SSH

Authentication flow

What Coder does / doesn’t do

Coder does

  • Redirect auth — Send developers to Git provider OAuth flow
  • Store tokens (encrypted) — Keep OAuth tokens encrypted at rest
  • Clone repos — Use stored tokens to git clone into workspaces
  • Enable git operations — Pull, push, fetch work transparently in workspaces

Coder doesn’t

  • Store code — Code lives in workspaces, not on Coder servers
  • Proxy traffic — Workspaces connect directly to Git, not through Coder
  • Access without consent — Developers must explicitly authorize Coder
  • Use shared service accounts — Each developer uses their own credentials

Configuration options

OAuth Apps

Register Coder as an OAuth app in your Git provider. Developers authorize once.Recommended for GitHub, GitLab, Bitbucket Cloud

Personal Access Tokens

For Git servers without OAuth, developers provide their own PATs.Works with all Git providers

SSH Keys

User-provided SSH keys or Coder auto-generates keypairs per workspace.Classic Git over SSH
Air-gapped Git

Coder connects to your internal Git server—no external access required. Perfect for regulated industries, government, and high-security environments.

FAQs

FAQs

No. Coder stores OAuth tokens (encrypted) but never stores, caches, or proxies your source code. Code is cloned directly from Git into workspaces. Coder never has access to the code itself—only the credentials to facilitate cloning.

Yes. Coder respects your Git provider's RBAC. If a developer can't access a repo on GitHub/GitLab, they can't clone it in Coder either. Access control happens at the Git provider level.

Each developer authenticates individually via OAuth or PAT. Tokens are encrypted at rest in Coder's database. When a workspace starts, the token is injected (securely) so git operations work. Developers never see each other's tokens.

Yes. Git LFS works transparently. If your Git provider supports LFS and the workspace has git-lfs installed, large files are fetched automatically. No special Coder configuration needed.