Skip to main content
To connect GitHub, make a fine-grained personal access token in GitHub, limited to the repositories you choose. Then paste it into the GitHub card in SmartAlex. Your agent can then look up an issue or pull request, read repository context and list recent activity.
  • You will have: GitHub connected, with the tools you chose switched on for an agent.
  • Time: about five minutes.
  • You need: a GitHub account that can create a personal access token (organisation repositories may need an owner to allow tokens). Some tools also need a Copilot subscription.
In the app: Sidebar → Agent Settings → Connectors (/home?settings=connectors), then GitHub under Productivity.

What does GitHub give my agent?

The diagram shows a caller asking about a fix and the agent checking GitHub.

How do I make a fine-grained token?

A fine-grained token lets you pick exactly which repositories it can reach, and what it can do there. Make one just for the agent.
1

Open token settings

In GitHub, open Settings, then Developer settings, then Personal access tokens, and choose Fine-grained tokens.
2

Name it and set an expiry

Click Generate new token. Give it a name such as “SmartAlex agent” and set an expiry date you can keep track of.
3

Choose only the repositories you need

Under Repository access, choose Only select repositories and pick the ones the agent needs. Avoid All repositories.
4

Set permissions to read-only

Under Repository permissions, give Read-only access to what the agent needs to read, such as Issues, Pull requests and Contents. Leave everything else on No access. Only grant write access if you want the agent to create or change things.
5

Generate and copy it

Click Generate token and copy it now. GitHub shows it once.

How do I connect GitHub?

1

Open Connectors in SmartAlex

Click Agent Settings in the sidebar, then Connectors in the left rail. You see the Browse list.
2

Open the GitHub card

Find GitHub under Productivity, or type GitHub into Search connectors, and click it. You see “Read repos, issues, and pull requests”.
3

Paste the token

Paste the token into API key (“Paste the API key”). The card says to create a fine-grained token and that some tools need a Copilot subscription. Where do I find this? opens GitHub’s token page.
4

Click Connect

Click Connect. You see “GitHub connected”.
5

Choose the tools

Tick the GitHub tools the agent should use, then click Save tools. You see “Applies on the next call.”

What do the GitHub settings do?

The connected GitHub card is a tool list. GitHub’s tools are read live from GitHub, so the list shows every tool with its own description. The table groups them by what they do. Tools marked Changes data go through SmartAlex’s safety steps on a phone call. An agent can have at most 20 live tools (how many), so tick only what it needs.

Check it worked

The GitHub card shows it is connected and its tool list appears. Call your agent and ask about a recent issue or pull request in one of the repositories you chose.

What permissions does GitHub ask for?

There is no sign-in screen. What the agent can do is set by the token you made: the repositories you chose and the permissions you gave. The agent cannot go beyond the token, and only uses the tools you switch on in SmartAlex.

How do I disconnect GitHub?

Open GitHub and click Disconnect. You see “GitHub disconnected”. Its tools come off every agent from the next call. Then delete the token in GitHub under Fine-grained tokens so it cannot be used again.

If it does not work

Questions people ask

Only for some tools. Others work without it. The tool list shows each tool and its description.
A fine-grained token can be limited to chosen repositories and set to read-only. A classic token reaches far more.
Only if your token has write access and you switch on a tool marked Changes data. A read-only token cannot.
The tools stop working. Make a new token, then disconnect and connect GitHub again with it.

Next

How connectors work

Tools per agent, limits and safety steps.

Connect Linear

Create and track issues from a call.

Connect Notion

Search and read your docs.
Last modified on November 27, 2026