Star A Repository on GitHub

In this guide, we’ll:

  1. 🔐 Connect your GitHub account with Composio
  2. 🛠 Fetch GitHub actions
  3. 🧠 Pass these actions to an LLM
  4. ⭐ Instruct to star the composiohq/composio repository
  5. ✅ Execute the action

Tools represent a group of actions specific to an app. Actions are operations you can perform - like starring a repo on GitHub or creating an issue in Linear.

1

Install Libraries

2

Connect Your GitHub Account

We’ll use default as the user id, also known as entity id.

You need to have an active GitHub Integration. Learn how to do this here

Don’t forget to set your COMPOSIO_API_KEY and OPENAI_API_KEY in your environment variables.

3

Initialise Composio Toolset and OpenAI

4

Fetch Github Actions, and pass them to LLM

Composio also supports action executions without LLMs or agents. Learn more.

5

Execute Tool Calls

Next Steps

Now that you’ve seen how to use tools, you can explore the following resources: