How to connect Claude Code to your project: on your computer, on GitHub or GitLab
Step by step, with hints on where to click. If "repository" is a new word for you, this page is written for you
What we are actually doing
The folder of your project, kept online on GitHub or GitLab. It holds the files of your website, bot or documents, plus the full history of every change
An assistant that opens this folder, reads the files and edits them when you ask. You ask in plain words, the way you would ask a colleague
Give Claude a key to this one folder. It gets no access to your other projects unless you give it yourself
What you need
- A paid Claude planPro, Max or a company plan (Team, Enterprise). Claude Code is not part of the free plan. You can subscribe at claude.ai
- A GitHub or GitLab login, if your project lives thereYour account and its password. If the project belongs to a company, its administrator may need to approve access. To work with an ordinary folder on your computer you need neither GitHub nor GitLab
- A computerWindows or Mac where you can install programs. For the browser route any browser will do
How do you want to work?
Not sure where your project is? Open it and look at the browser address bar: it will say github.com or gitlab.com. Is the project just a folder on your computer for now? Then take route A, "This computer" mode
Working through the Claude app on your computer
One shared step first: install the app. Then choose a mode: work with a folder on your computer, or connect a project from GitHub
Our screenshots show the app with a Russian interface. In English the buttons sit in exactly the same places, though the labels may read slightly differently
Install the app and open Code
- Go to claude.ai/download, download the version for Windows or Mac and install it like any other program
- Sign in with the same account you use for Claude
- In the top left corner there are two icons: a chat bubble and </>. Click </> 1, that is Claude Code
What you'll see: a box for your task with two labels under it. On the left is the environment, meaning where Claude does its work. Next to it you choose a folder or a project
1
Two ways of working
- Files
- In a folder on your drive
- GitHub
- Not required
- Computer
- Must stay on while Claude works
- Good for
- Documents, spreadsheets, a website or a project that is simply a folder for now
- Files
- On GitHub, Claude fetches them itself
- GitHub
- Required. GitLab does not work in the cloud
- Computer
- Can be switched off, Claude works on its own servers
- Good for
- A project that already lives on GitHub
2
3
4
Working with a folder on your own drive
Keep the project in a folder on your hard drive, not in the cloud
- Open File Explorer → This PC → Local Disk (C:) or (D:)
- Right-click → New → Folder. Call it, for example, Projects, and create your project folder inside it
- Move the project files there, if you already have them
Why not OneDrive, Google Drive, Dropbox or iCloud. Claude can change dozens of files in a minute, and the sync program tries to upload them at the same moment. Files get duplicated (you see "copies"), some may exist "online only" so Claude simply cannot see them, and the change history gets damaged by syncing
Careful with Desktop and Documents. Windows often keeps them in OneDrive without telling you, and a Mac may keep them in iCloud. To check: if the File Explorer address bar contains the word OneDrive, or your files show cloud and green tick icons, that folder is in the cloud
Open that folder in Claude
- Under the task box it should say This computer 2 (or Local). If another environment is selected, click it and pick this one
- Next to it is a folder icon with a name 3. Click it
- The usual Windows folder dialog opens. Find your folder on the hard drive and click Select Folder
What you'll see: the folder name now appears next to the folder icon. To work with another folder, click the name and pick a different one
2
3
How folder access works
- Claude sees only the folder you selected and everything inside it. It does not open neighbouring folders, other drives or your personal documents
- It asks before making changes. In the bottom right corner is the permission mode 4, on the screenshot it says "Auto". Click it to see the options. For the first few days pick the one where Claude asks before every edit. Once you are comfortable, you can give it more freedom
- Your computer must stay on while Claude works: it runs right on your machine, not in the cloud
A first task: "Look at this folder and tell me in plain words what is in it"
4
Link the folder to GitHub or GitLab
You need this if the project already lives on GitHub or GitLab but you want to work on it on your own computer. It is also a way to use GitLab without VS Code
- Install Git: on Windows go to git-scm.com → Download for Windows and click Next on every screen (more detail in route C, step 1)
- Create an empty folder on your hard drive and select it in Claude (steps 2–3)
- Copy the project address. GitHub: the green Code button → the HTTPS tab. GitLab: the blue Code button → Clone with HTTPS
- Give Claude a task with your address:
"Download the project https://github.com/your-name/your-project.git into this folder"
What you'll see: Claude asks for permission, then a GitHub or GitLab sign-in window may open. Sign in once and it is remembered. Sending changes back works the same way, by asking: "Save these changes and push them to a new branch". You accept them with the Merge button on the website, as in route C, step 7
If there is no sign-in window and Claude reports an access error while GitLab rejects your password, you need an access token, see "GitLab rejects my password"
git clone?Connecting a project from GitHub
Create a cloud environment
An environment is a computer in the cloud where Claude works on your project. You create it once
- At the bottom click This computer, or the Select environment button in the middle of the screen 5
- Choose the option to add a new environment
- In the New environment window open the Cloud tab 6
- In the Name field type any name, for example GitHub 7
- Leave everything else as it is and click Add environment 8
This window does not ask about GitHub, and that is expected. You connect GitHub in the next step, when you choose a project. "Limited network access" is a safety setting: the cloud computer only reaches the places it needs for the work
5
6
7
8
Connect GitHub and choose a project
- At the bottom you now see your cloud environment, and next to it a project picker 9. Click it
- Click Connect GitHub. Your browser opens
- Then follow route B, steps 3–4: Authorize → Only select repositories → pick your project → Install
- Go back to the app and choose the project in the list
No connect button? Connect GitHub through the browser: open claude.ai/code → Connect GitHub → Authorize, then github.com/apps/claude/installations/new → pick your project → Install. Close the Claude app and open it again. On a company plan (Team, Enterprise) the organization owner first has to turn GitHub on in the Claude settings, under Connectors
Work and accept the changes
Everything works as in the browser, route B, steps 6–7: you give a task in plain words, Claude puts its changes on a separate branch, you click Create PR and then Merge on GitHub
You can switch the computer off: in cloud mode Claude works on its own servers. The task carries on, and the result waits for you in the app and at claude.ai/code
Connecting GitHub right in the browser
You will use two tabs: Claude and GitHub. You get sent back and forth between them automatically, that is normal
Open Claude Code in your browser
- Type claude.ai/code into the address bar
- Sign in with the same account you use for Claude 1
What you'll see: a window with a message box, much like an ordinary chat with Claude. This is Claude Code, the part made for working on projects
Click Connect GitHub
- Claude offers to connect GitHub on its own. Click that button 2, it says Connect GitHub
What you'll see: you are sent to the GitHub website. If you are not signed in there, it asks for your GitHub login and password
Company plan (Team, Enterprise)? The owner of the company account first turns GitHub on in the organization settings: Organization settings → Connectors. Until then the button will not work
Let GitHub tell Claude who you are
- GitHub asks: Authorize Claude?
- Click the green Authorize button 3
What it means: you allow Claude to learn your GitHub username. It cannot see any projects yet, you pick them in the next step
Choose which projects Claude can see
- GitHub offers to install the Claude app
- Select Only select repositories 4
- In the Select repositories list pick your project 5
- Click Install 6
Why "only select": Claude sees the one project you need, not all of yours. You can add another one at any time
If the project belongs to a company, the button may say Request instead of Install. Click it: the request goes to the organization owner, and once they approve you can carry on
Go back to Claude and pick the project
- GitHub sends you back to claude.ai/code by itself
- Under the message box there is a project picker 7. Click it and choose yours
Project not in the list? Refresh the page. If that does not help, see "If something goes wrong"
Give the first task in plain words
For the first time, ask for something that changes nothing and only shows you around. For example:
"Look at the project and tell me in plain words what is where and how it is organised"
What you'll see: Claude opens the files, reads them and answers in the same window. It works on its own servers, so you can close the tab and come back later, the task keeps going
pages folder, images in images, settings in the config file…Accept the changes when you like the result
When you ask for a change, Claude does not put it into the project itself. It puts it next to it, in a separate draft called a branch
- When Claude is done, click Create PR 8. It means "propose these changes to the project"
- GitHub opens with the list of changes: what it was and what it is now
- Happy with it? Click the green Merge pull request 9, then Confirm merge
The key point: until you click Merge, your main project has not changed by a single letter. You can experiment freely
claude/…
Create PR8
Connecting GitLab through VS Code
The cloud version of Claude Code, both in the browser and in the app, only works with GitHub. So we download the GitLab project to your computer and work on it there. It sounds harder than it is: everything is done with the mouse, and only once
Already installed the Claude app? You can skip VS Code: route A, step 5. This route is for people who like to see the project files on the left and Claude on the right
Install Git
Git is the program that downloads a project from GitLab and sends your changes back. You will never open it, it works in the background
- Windows: go to git-scm.com, click Download for Windows 1, run the downloaded file and click Next on every screen without changing anything
- Mac: do nothing in advance. If in step 4 your Mac offers to install "developer tools", agree
Install VS Code
A free program from Microsoft. Think of it as a desk for your project: files on the left, Claude on the right
- Go to code.visualstudio.com
- Click the big Download button 2 and install it like any other program
Copy the project address in GitLab
- Open your project on gitlab.com
- Click the blue Code button 3
- In the Clone with HTTPS line click the copy icon 4
Take HTTPS, not SSH. SSH needs keys to be set up, and we don't need that
git@gitlab.com:your-name/…https://gitlab.com/your-name/your-project.git⧉4Download the project in VS Code
- Open VS Code. On the start page click Clone Git Repository… 5
- A line appears at the top. Paste the address you copied (Ctrl+V, on a Mac Cmd+V) and press Enter
- Choose where on your computer to put the project, for example Documents
- VS Code asks whether to open the project: click Open
- If it asks Do you trust the authors?, click Yes, I trust the authors. It is your own project
GitLab may ask you to sign in. A browser window opens: sign in to GitLab and allow access. If a password box appears instead of the browser, see "GitLab rejects my password"
https://gitlab.com/your-name/your-project.gitAdd Claude Code to VS Code
- On the left, click the icon made of four squares 6: it is the extensions store (or press Ctrl+Shift+X, on a Mac Cmd+Shift+X)
- Type Claude Code in the search box
- Find the one published by Anthropic and click Install 7
Check the publisher. There are many look-alike extensions with the same name from other people. The right one is from Anthropic only
Anthropic ✓
someone else
Sign in to Claude
- At the bottom right of the window, click ✻ Claude Code 8. The Claude panel opens on the right
- Click Sign in. Your browser opens
- Sign in with the same account you use for Claude and click Authorize
- Go back to VS Code: the Claude panel is ready
There is also an icon at the top right (a spark), but it only shows when a file is open. The label at the bottom always works
Work and send the changes back to GitLab
Type in the Claude panel in plain words. Start with the same safe task:
"Look at the project and tell me in plain words what is where"
When you ask for a change and like the result, write:
"Save these changes and push them to GitLab on a new branch"
- Claude asks permission before each action. Read what it is about to do and click Yes
- Open the project on GitLab. A bar with a Create merge request button appears at the top 9. Click it, then click Create merge request again at the bottom of the form
- Check the changes and click Merge. Now they are in the project
Until you click Merge, the main project stays as it was. A branch is a draft sitting next to it
This route also works for GitHub if you prefer to keep the project on your own computer. The steps are the same, only you take the address from GitHub: the green Code button → the HTTPS tab
What you don't need to worry about
On GitHub, the projects you ticked when connecting. On your computer, only the folder you selected in the Claude app or opened in VS Code
Changes wait on a separate branch first. They reach the project when you click Merge yourself
GitHub and GitLab keep the whole history. Even after Merge you can go back to how it was: just ask Claude
Not to Claude, not into project files. If the project needs passwords or keys, they are kept separately, outside the repository
Common snags and how to fix them
A yellow bar at the top asks me to sign in again
Claude wants you to confirm your sign-in. Click the bar and sign in with the same account. While the bar is there, connecting GitHub and cloud environments may not work
The Claude app never offers to connect GitHub
GitHub only connects in cloud mode. Check in this order:
- A cloud environment is selected at the bottom, not "This computer". If you have no cloud environment yet, create one (route A, mode 2, step 2)
- Connect GitHub through the browser:
claude.ai/code→ Connect GitHub → Authorize, thengithub.com/apps/claude/installations/new→ your project → Install - Close the Claude app completely and open it again
- Company plan: ask the organization owner to turn GitHub on in the Claude settings, under Connectors
Files get duplicated, or Claude can't "see" some of them
This almost always means the project folder sits in OneDrive, Google Drive, Dropbox or iCloud. Move the folder to your hard drive, for example to C:\Projects, and select it in Claude again (route A, steps 2–3)
GitHub: my project is not in the list
Most likely it was not ticked when you installed the app. To add it:
- Open
github.com/settings/installations - Next to Claude click Configure
- Under Repository access add the project to Only select repositories and click Save
- Go back to
claude.ai/codeand refresh the page
GitHub: the button says Request instead of Install
The project belongs to a company (on GitHub this is called an organization), and only its owner can install apps there. Click Request and the owner gets a request. Once they approve, repeat step 5 of route B
Connect GitHub doesn't work on a company plan
On Team and Enterprise plans the owner of the company's Claude account has to turn GitHub on first: Organization settings → Connectors. Forward them this line
GitLab rejects my password
For downloading a project GitLab often does not accept your normal password. You need an access token instead, which is a long password meant for programs:
- In GitLab click your avatar → Edit profile → Access tokens on the left
- Click Add new token and give it any name, for example "VS Code"
- Tick read_repository and write_repository and choose an expiry date
- Click Create and copy the token straight away: GitLab will not show it a second time
- In the sign-in box enter your GitLab username, and paste the token into the password field
Keep the token like a password and don't send it to anyone, Claude included
VS Code: I can't see the Claude icon
Check three things:
- At the bottom right of the window there is a ✻ Claude Code label: click it
- The spark icon at the top only shows when a file is open. Click any file in the list on the left
- If the top of the window says Restricted Mode, click it and choose Trust. Claude does not run in restricted mode
The browser didn't open to sign in to Claude
Close VS Code completely, open it again and repeat Sign in. If nothing happens again, check whether your browser blocked a pop-up: a small icon with a cross appears on the right of the address bar
Claude keeps asking for permission
That is by design: it protects you from accidental actions. Read what it proposes and allow it if it is clear and you agree. If it isn't clear, click No and ask in plain words: "explain what you were about to do"
Words you will come across
- Repositoryrepo
- A project folder online, together with the full history of changes
- Clone
- Download a project to your computer in a way that lets you send changes back later
- Branch
- A draft next to the main project. You can change anything in it, the main project stays safe
- Commit
- A saved point: a set of changes with a note on what changed and why. You can go back to any such point
- Push
- Send saved changes from your computer to GitHub or GitLab
- Pull requestmerge request on GitLab
- A proposal to move changes from the draft into the main project. You can see what it was and what it is now
- Merge
- Accept the changes: the draft flows into the main project
Rather not do it yourself?
We set it up for you: Claude Code, access to your projects and AI on your business data. It starts with a free 30-minute call
This guide is up to date as of November 2026. Websites rename buttons from time to time: if you can't find one, look for something with the same meaning, or ask Claude itself