Use github with AI Agents

A platform for version control and collaboration, allowing you to work together on projects from anywhere.
🔗 Connect and Use github
1. 🔑 Connect your github account
2. ✅ Select an action
3. 🚀 Go live with the agent
What do you want to do?
Actions
meta
- GITHUB API ROOT
security-advisories
apps
classroom
codes-of-conduct
emojis
dependabot
secret-scanning
activity
gists
gitignore
issues
licenses
markdown
orgs
actions
oidc
code-scanning
codespaces
copilot
packages
interactions
migrations
projects
repos
billing
teams
reactions
rate-limit
checks
dependency-graph
git
pulls
search
users
Main

API actions for github for AI assitants/agents

Language
JS
PYTHON

Users

DELETE SOCIAL ACCOUNTS FOR THE AUTHENTICATED USER

Deletes one or more social accounts from the authenticated user's profile. OAuth app tokens and personal access tokens (classic) need the `user` scope to use this endpoint.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_SOCIAL_ACCOUNTS_FOR_THE_AUTHENTICATED_USER])

LIST SSH SIGNING KEYS FOR THE AUTHENTICATED USER

Lists the SSH signing keys for the authenticated user's GitHub account. OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_SSH_SIGNING_KEYS_FOR_THE_AUTHENTICATED_USER])

CREATE A SSH SIGNING KEY FOR THE AUTHENTICATED USER

Creates an SSH signing key for the authenticated user's GitHub account. OAuth app tokens and personal access tokens (classic) need the `write:ssh_signing_key` scope to use this endpoint.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_SSH_SIGNING_KEY_FOR_THE_AUTHENTICATED_USER])

GET AN SSH SIGNING KEY FOR THE AUTHENTICATED USER

Gets extended details for an SSH signing key. OAuth app tokens and personal access tokens (classic) need the `read:ssh_signing_key` scope to use this endpoint.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_AN_SSH_SIGNING_KEY_FOR_THE_AUTHENTICATED_USER])

DELETE AN SSH SIGNING KEY FOR THE AUTHENTICATED USER

Deletes an SSH signing key from the authenticated user's GitHub account. OAuth app tokens and personal access tokens (classic) need the `admin:ssh_signing_key` scope to use this endpoint.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_AN_SSH_SIGNING_KEY_FOR_THE_AUTHENTICATED_USER])

LIST USERS

The text describes a feature listing GitHub users by signup order, including individuals and organizations, with pagination managed via the `since` parameter and the Link header for navigating
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_USERS])

GET A USER

GitHub discloses publicly set user email information and offers an Emails API for email visibility control. This access necessitates GitHub authentication.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_USER])

LIST FOLLOWERS OF A USER

Lists the people following the specified user.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_FOLLOWERS_OF_A_USER])

LIST THE PEOPLE A USER FOLLOWS

Lists the people who the specified user follows.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_THE_PEOPLE_A_USER_FOLLOWS])

CHECK IF A USER FOLLOWS ANOTHER USER

Endpoint checks if a user follows another on GitHub. Pass 'username' & 'target_user' in path. Response: 204 if follows, 404 if not. Supports GitHub Apps. [API Docs](https://docs.github.com/res
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_IF_A_USER_FOLLOWS_ANOTHER_USER])

LIST GPG KEYS FOR A USER

Lists the GPG keys for a user. This information is accessible by anyone.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_GPG_KEYS_FOR_A_USER])

GET CONTEXTUAL INFORMATION FOR A USER

This hovercard feature provides detailed info about someone's involvement in pull requests, issues, repositories, and organizations, using `subject_type` and `subject_id` for context. OAuth to
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_CONTEXTUAL_INFORMATION_FOR_A_USER])

LIST PUBLIC KEYS FOR A USER

Lists the _verified_ public SSH keys for a user. This is accessible by anyone.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PUBLIC_KEYS_FOR_A_USER])

LIST SOCIAL ACCOUNTS FOR A USER

Lists social media accounts for a user. This endpoint is accessible by anyone.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_SOCIAL_ACCOUNTS_FOR_A_USER])

LIST SSH SIGNING KEYS FOR A USER

Lists the SSH signing keys for a user. This operation is accessible by anyone.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_SSH_SIGNING_KEYS_FOR_A_USER])

Activity

LIST REPOSITORIES STARRED BY THE AUTHENTICATED USER

This endpoint lists starred repositories of the authenticated user and supports media type `application/vnd.github.star+json` to include star creation timestamps. More on media types at GitHub
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORIES_STARRED_BY_THE_AUTHENTICATED_USER])

CHECK IF A REPOSITORY IS STARRED BY THE AUTHENTICATED USER

Whether the authenticated user has starred the repository.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_IF_A_REPOSITORY_IS_STARRED_BY_THE_AUTHENTICATED_USER])

STAR A REPOSITORY FOR THE AUTHENTICATED USER

Star a github repository for given `repo` and `owner`
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER])

UNSTAR A REPOSITORY FOR THE AUTHENTICATED USER

Unstar a repository that the authenticated user has previously starred.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_UNSTAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER])

LIST REPOSITORIES WATCHED BY THE AUTHENTICATED USER

Lists repositories the authenticated user is watching.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORIES_WATCHED_BY_THE_AUTHENTICATED_USER])

LIST EVENTS FOR THE AUTHENTICATED USER

If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_EVENTS_FOR_THE_AUTHENTICATED_USER])

LIST ORGANIZATION EVENTS FOR THE AUTHENTICATED USER

This is the user's organization dashboard. You must be authenticated as the user to view this.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_ORGANIZATION_EVENTS_FOR_THE_AUTHENTICATED_USER])

LIST PUBLIC EVENTS FOR A USER

This endpoint lists a GitHub user's public events, accepting `username` and optional `per_page` and `page` parameters for pagination. It shows activities such as watched repos and pushed commi
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PUBLIC_EVENTS_FOR_A_USER])

LIST EVENTS RECEIVED BY THE AUTHENTICATED USER

These are events that you've received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public e
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_EVENTS_RECEIVED_BY_THE_AUTHENTICATED_USER])

LIST PUBLIC EVENTS RECEIVED BY A USER

This endpoint displays a GitHub user's public events, including event type and repository, with pagination and event type filtering. It integrates with GitHub apps and requires a `username`. V
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PUBLIC_EVENTS_RECEIVED_BY_A_USER])

LIST REPOSITORIES STARRED BY A USER

This endpoint lists repositories a user has starred and supports media types like `application/vnd.github.star+json`, which includes the star's creation timestamp. For more, visit GitHub's doc
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORIES_STARRED_BY_A_USER])

LIST REPOSITORIES WATCHED BY A USER

Lists repositories a user is watching.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORIES_WATCHED_BY_A_USER])

ACTIVITY LIST REPO S STARRED BY AUTHENTICATED USER

This endpoint lists starred repositories of the authenticated user and supports media type `application/vnd.github.star+json` to include star creation timestamps. More on media types at GitHub
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ACTIVITY_LIST_REPO_S_STARRED_BY_AUTHENTICATED_USER])

ACTIVITY STAR REPO FOR AUTHENTICATED USER

Star a github repository for given `repo` and `owner`<<DEPRECATED use star_a_repository_for_the_authenticated_user>>
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ACTIVITY_STAR_REPO_FOR_AUTHENTICATED_USER])

USERS GET BY USERNAME

GitHub discloses publicly set user email information and offers an Emails API for email visibility control. This access necessitates GitHub authentication.<<DEPRECATED use get_a_user>>
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_USERS_GET_BY_USERNAME])

USERS GET CONTEXT FOR USER

This hovercard feature provides detailed info about someone's involvement in pull requests, issues, repositories, and organizations, using `subject_type` and `subject_id` for context. OAuth to
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_USERS_GET_CONTEXT_FOR_USER])

REPO S LIST FOR USER

Lists public repositories for the specified user.<<DEPRECATED use list_repositories_for_a_user>>
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_REPO_S_LIST_FOR_USER])

USERS LIST SOCIAL ACCOUNTS FOR USER

Lists social media accounts for a user. This endpoint is accessible by anyone.<<DEPRECATED use list_social_accounts_for_a_user>>
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_USERS_LIST_SOCIAL_ACCOUNTS_FOR_USER])

Teams

LIST TEAMS FOR THE AUTHENTICATED USER

This endpoint lists all teams across organizations for the authenticated user, requiring `user`, `repo`, or `read:org` scope. For fine-grained tokens, it shows teams from the token owner's org
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_TEAMS_FOR_THE_AUTHENTICATED_USER])

Packages

FIND CONFLICTING PACKAGES FOR DOCKER MIGRATION

This endpoint lists user-specific packages with migration conflicts accessible to the requester, requiring `read:packages` scope via OAuth or classic tokens.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_FIND_CONFLICTING_PACKAGES_FOR_DOCKER_MIGRATION])

LIST PACKAGES FOR A USER

This endpoint lists packages in a user's namespace accessible to the requester, requiring `read:packages` scope, and `repo` scope for certain GitHub Packages registries. It directs to a doc fo
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PACKAGES_FOR_A_USER])

GET A PACKAGE FOR A USER

To access a user's public package metadata, OAuth and classic tokens need `read:packages` scope; `repo` scope is also required for repository-scoped GitHub Packages. Refer to GitHub documentat
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_PACKAGE_FOR_A_USER])

DELETE A PACKAGE FOR A USER

Deleting a package requires admin rights. Public packages with >5,000 downloads need GitHub support. OAuth/personal tokens must have `read:packages`, `delete:packages`, and `repo` scope for so
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_PACKAGE_FOR_A_USER])

RESTORE A PACKAGE FOR A USER

A deleted GitHub Package can be restored within 30 days, provided the namespace/version are unchanged and admin rights with specific permissions are available. OAuth/personal tokens need `read
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_RESTORE_A_PACKAGE_FOR_A_USER])

LIST PACKAGE VERSIONS FOR A PACKAGE OWNED BY A USER

This endpoint lists a user's public package versions, needing `read:packages` scope. For registry-specific packages, `repo` scope is also required. Refer to GitHub's Packages permissions for m
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PACKAGE_VERSIONS_FOR_A_PACKAGE_OWNED_BY_A_USER])

GET A PACKAGE VERSION FOR A USER

Fetch a specific public package version with an OAuth or classic token having `read:packages` scope. If `package_type` is in a registry needing repository-scoped permissions, `repo` scope is n
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_PACKAGE_VERSION_FOR_A_USER])

DELETE PACKAGE VERSION FOR A USER

Users can delete a package version unless it's public with over 5,000 downloads. Admin permissions are required for certain registry types, with `read:packages` and `delete:packages` scopes ne
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_PACKAGE_VERSION_FOR_A_USER])

RESTORE PACKAGE VERSION FOR A USER

Users can restore a deleted package within 30 days if the namespace/version is available and not reused. Admin permissions might be needed, and specific OAuth or personal access tokens are req
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_RESTORE_PACKAGE_VERSION_FOR_A_USER])

Gists

LIST GISTS FOR A USER

Lists public gists for the specified user:
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_GISTS_FOR_A_USER])

Orgs

LIST ORGANIZATIONS FOR A USER

This method lists only public organization memberships for a specified user. To access both public and private memberships for an authenticated user, use the List organizations API.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_ORGANIZATIONS_FOR_A_USER])

Projects

LIST USER PROJECTS

Lists projects for a user.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_USER_PROJECTS])

Repos

LIST REPOSITORIES FOR A USER

Lists public repositories for the specified user.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORIES_FOR_A_USER])

Billing

GET GITHUB ACTIONS BILLING FOR A USER

The summary details GitHub Actions' used minutes, covering both free and paid, applicable only in private repos for GitHub-hosted runners, including re-runs and OS multipliers, rounded up by m
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_GITHUB_ACTIONS_BILLING_FOR_A_USER])

GET GITHUB PACKAGES BILLING FOR A USER

The text provides information on tracking free and paid GitHub Packages storage in GB, noting paid storage is for private repos. It links to billing management and mentions OAuth tokens need t
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_GITHUB_PACKAGES_BILLING_FOR_A_USER])

GET SHARED STORAGE BILLING FOR A USER

The text provides guidance on estimating costs for GitHub Actions and Packages for private repositories, emphasizing the need to consult billing documentation and the requirement for `user` sc
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_SHARED_STORAGE_BILLING_FOR_A_USER])

Frequently asked questions

What is Composio.dev?

Composio.dev is a platform for building AI applications, designed to make the process of developing AI solutions super easy and fun! It provides a comprehensive set of tools and libraries that simplify the process of developing AI solutions, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support github?

Composio.dev seamlessly integrates with github, allowing you to leverage its capabilities within the Composio.dev platform. You can utilize github to call functions across various platforms, including Google, GitHub, and others, making it a breeze to incorporate different services into your AI applications. Additionally, it supports user authentication via OAuth2 and can work in conjunction with other popular frameworks like LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with github?

With github, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate github into my project?

Composio.dev provides a seamless integration for github, making it super easy to incorporate this powerful framework into your projects. You can leverage the Composio.dev API to call functions from github, allowing you to tap into its capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with your preferred programming language and integrate github into your projects seamlessly.

What is the pricing for github?

github is completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes it accessible for developers and organizations of all sizes to explore and experiment with this powerful tool without any upfront costs. Whether you're a student working on a personal project or a startup building the next big thing, you can get started with github without worrying about breaking the bank.

What kind of authentication is supported for github?

github supports OAuth2 authentication, ensuring secure and authorized access to its functionalities. You can leverage the Composio.dev API to handle authentication and call functions from github seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add github to my project?

Absolutely! You can easily incorporate github into your project by utilizing the Composio.dev API. This API allows you to call functions from github, enabling you to leverage its capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add github to your project with ease.

What is the accuracy of github?

github is designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. github's comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for github?

github can be used for a wide range of AI applications, making it a versatile tool for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. It's particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, github can help you bring your ideas to life.

How does github handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and github takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. github provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using github for your AI development needs.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents🧪