This Chrome extension allows users to access their GitHub repositories and files directly from the Claude projects.
-
Clone this repository:
git clone https://github.com/your-username/github-oauth-extension.git cd github-oauth-extension -
Install dependencies:
npm install -
Set up GitHub OAuth App:
- Go to GitHub Settings > Developer settings > OAuth Apps
- Click "New OAuth App"
- Fill in the application details:
- Application name: Choose a name for your app
- Homepage URL: https://github.com
- Authorization callback URL: https://.chromiumapp.org/
- Click "Register application"
- Note down the Client ID and generate a new Client Secret
-
Set up Cloudflare Worker:
- Visit https://github.com/sahir2k/claude_github_cloudflare_worker
- Follow the instructions to create a Cloudflare Worker
- Note down the Worker URL (e.g., https://your-worker-name.your-subdomain.workers.dev)
-
Replace the
CLIENT_IDandWORKER_URLin thepublic/background.jsfile:const CLIENT_ID = "your-github-client-id"; const WORKER_URL = "https://your-worker-name.your-subdomain.workers.dev";
-
Build the extension:
npm run build -
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the
distfolder in your project directory
- Open Chrome and navigate to
- Click on the extension icon in your Chrome toolbar
- Log in with your GitHub account
- Access your repositories and files directly from the extension popup
To run the extension in development mode:
-
Start the development server:
npm run dev -
Load the
distfolder as an unpacked extension in Chrome (as described in step 7 of the Setup and Installation section) -
The extension will automatically reload when you make changes to the code