GitHub Copilot logo

GitHub Copilot

Free

Announcement of Copilot, a new AI pair programmer that helps you write better code. GitHub blog, June 29, 2021.

FreeFree tier
Inputs: codeOutputs: code
Type
Open Source
Company
GitHub

About GitHub Copilot

GitHub Copilot is an AI pair programmer that assists developers by suggesting whole lines or entire functions in real-time. It draws context from the code you're working on, adapts to your coding style, and helps you discover alternative solutions, write tests, and explore new APIs without manual searches. Powered by OpenAI Codex, a new AI system trained on a large dataset of public source code, GitHub Copilot is significantly more capable than GPT-3 in code generation. During its initial technical preview (announced June 2021), it works especially well for Python, JavaScript, TypeScript, Ruby, and Go. The tool aims to boost productivity by reducing boilerplate and accelerating problem-solving, though the preview had limited spots.

Key Features

Suggests whole lines or entire functions as you type
Draws context from the code you're working on
Adapts to your individual coding style
Helps discover alternative ways to solve problems
Assists in writing tests and exploring new APIs
Powered by OpenAI Codex, trained on public source code
Works especially well with Python, JavaScript, TypeScript, Ruby, and Go

Pros & Cons

Pros
  • Context-aware suggestions that improve coding speed
  • Supports multiple popular programming languages
  • Adapts to the developer's coding style
  • Helps reduce time spent on boilerplate code and documentation searches
  • Can suggest complete functions, not just single lines
Cons
  • Technical preview with limited availability and spots
  • Best performance limited to Python, JavaScript, TypeScript, Ruby, and Go initially
  • May occasionally generate incorrect or insecure code (as with any AI code assistant)
  • Relies on internet connectivity to access the AI model

Best For

Writing code faster with intelligent auto-completionsExploring alternative implementations for a problemGenerating unit tests and test casesLearning and interacting with new APIs without leaving the editorPair programming assistance for individual developers

FAQ

What is GitHub Copilot?
GitHub Copilot is an AI pair programmer developed by GitHub in collaboration with OpenAI. It suggests code in real-time as you type, helping you write better code faster.
What languages does GitHub Copilot support?
During the technical preview, GitHub Copilot works especially well for Python, JavaScript, TypeScript, Ruby, and Go, though it supports a broad set of frameworks and languages.
How does GitHub Copilot work?
It draws context from the code you're working on and uses OpenAI Codex to generate whole lines or entire function suggestions. It adapts to your coding style as you type.
Is GitHub Copilot free?
The blog post does not specify pricing. The technical preview was available via sign-up, and later GitHub Copilot offered free tiers for individual developers, but the original announcement focused on the preview.