{"id":31209624,"url":"https://github.com/xtawfik/gha-switcher","last_synced_at":"2026-05-17T02:43:28.806Z","repository":{"id":312594857,"uuid":"1047973912","full_name":"xtawfik/gha-switcher","owner":"xtawfik","description":"A VS Code extension that allows you to switch between multiple GitHub accounts seamlessly.","archived":false,"fork":false,"pushed_at":"2025-08-31T18:22:22.000Z","size":384,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T08:46:12.586Z","etag":null,"topics":["account-switcher","github-accounts","github-cli","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=xtawfik.gha-switcher","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtawfik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T16:37:03.000Z","updated_at":"2025-08-31T18:25:29.000Z","dependencies_parsed_at":"2025-08-31T20:24:42.231Z","dependency_job_id":"87b5f924-653d-42d9-b065-4f19fba116a0","html_url":"https://github.com/xtawfik/gha-switcher","commit_stats":null,"previous_names":["xtawfik/gha-switcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xtawfik/gha-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtawfik%2Fgha-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtawfik%2Fgha-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtawfik%2Fgha-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtawfik%2Fgha-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtawfik","download_url":"https://codeload.github.com/xtawfik/gha-switcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtawfik%2Fgha-switcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33125643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account-switcher","github-accounts","github-cli","vscode","vscode-extension"],"created_at":"2025-09-21T02:25:09.723Z","updated_at":"2026-05-17T02:43:28.779Z","avatar_url":"https://github.com/xtawfik.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Accounts Switcher\n\nA VS Code extension that allows you to switch between multiple GitHub accounts seamlessly.\n\n## Features\n\n### GitHub Account Management\n- **Multiple Accounts**: Store multiple GitHub accounts (Personal, Client, etc.)\n- **Secure Storage**: Uses VS Code's built-in authentication and secret storage\n- **gh CLI Integration**: Automatically switches GitHub CLI authentication\n- **Token Management**: Handles OAuth tokens securely without storing them\n\n## Screenshots\n\n### Adding a GitHub Account\n![Adding GitHub Account](https://github.com/xtawfik/gha-switcher/blob/a53200cb8b5b823d416b36c4f89b9cb7da3331de/docs/add-account-dialog.png?raw=true)\n*Input dialog for labeling a new GitHub account*\n\n### Command Palette Integration\n![Command Palette](https://github.com/xtawfik/gha-switcher/blob/main/docs/command-palette.png?raw=true)\n*Easy access to all GHA Switcher commands*\n\n## Installation\n\n1. Install the extension from the VS Code marketplace\n2. Ensure you have the GitHub CLI (`gh`) installed\n3. Install the GitHub Pull Requests and Issues extension\n\n## Configuration\n\n### GitHub Account Settings\n\nConfigure your GitHub account settings in VS Code:\n\n```json\n{\n  \"ghaSwitcher.githubScopes\": [\"repo\", \"read:org\", \"gist\", \"workflow\"],\n  \"ghaSwitcher.ghPath\": \"gh\"\n}\n```\n\n## Usage\n\n### Commands\n\n1. **GHA Switcher: Add GitHub Account**\n   - Adds a new GitHub account with a custom label\n   - Prompts for a label (e.g., \"Personal\", \"Client\")\n   - Uses VS Code's built-in GitHub authentication\n\n2. **GHA Switcher: Switch GitHub Account**\n   - Switches the active GitHub CLI authentication\n   - Select from saved accounts\n   - **Smart switching**: Only re-authenticates when necessary\n   - Automatically updates `gh` authentication\n\n3. **GHA Switcher: Refresh Account Token**\n   - Manually refresh authentication tokens for specific accounts\n   - Useful when tokens expire or need renewal\n   - Updates stored session information\n\n### Workflow\n\n1. **Setup**:\n   - Install the GitHub Pull Requests and Issues extension\n   - Add GitHub accounts using \"GHA Switcher: Add GitHub Account\"\n\n2. **Daily Use**:\n   - Use \"GHA Switcher: Switch GitHub Account\" to switch gh CLI auth\n   - **Smart switching**: The extension remembers your sessions and only asks for re-authentication when tokens expire\n   - Your GitHub CLI will automatically use the selected account\n\n3. **Maintenance**:\n   - Use \"GHA Switcher: Refresh Account Token\" when you need to manually refresh tokens\n   - Tokens are automatically managed by VS Code's authentication system\n\n## Settings\n\n| Setting | Description | Default |\n|---------|-------------|---------|\n| `ghaSwitcher.githubScopes` | OAuth scopes for GitHub | `[\"repo\", \"read:org\", \"gist\", \"workflow\"]` |\n| `ghaSwitcher.ghPath` | Path to GitHub CLI | `gh` |\n\n## Requirements\n\n- VS Code 1.87.0 or higher\n- GitHub CLI (`gh`) installed\n- GitHub Pull Requests and Issues extension\n\n## Security\n\n- GitHub tokens are managed by VS Code's built-in authentication\n- All sensitive data is stored in VS Code's secure storage\n- No network requests are made outside of VS Code's authentication flow\n\n## Troubleshooting\n\n### GitHub Authentication Issues\n- Make sure GitHub CLI is installed and accessible\n- Check that the GitHub Authentication extension is enabled\n- Verify OAuth scopes are sufficient for your needs\n\n### Command Execution Issues\n- Check that paths in settings are correct\n- Ensure shell environment is properly configured\n- Verify that required binaries are accessible\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Submit a pull request\n\n## License\n\nMIT License - see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtawfik%2Fgha-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtawfik%2Fgha-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtawfik%2Fgha-switcher/lists"}