{"id":42741584,"url":"https://github.com/techsupportz/raycast-copilot-usage","last_synced_at":"2026-01-29T19:00:07.868Z","repository":{"id":333891928,"uuid":"1139175076","full_name":"TechSupportz/raycast-copilot-usage","owner":"TechSupportz","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-21T16:13:42.000Z","size":402,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-22T04:09:17.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechSupportz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-01-21T16:09:52.000Z","updated_at":"2026-01-21T16:26:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TechSupportz/raycast-copilot-usage","commit_stats":null,"previous_names":["techsupportz/raycast-copilot-usage"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TechSupportz/raycast-copilot-usage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechSupportz%2Fraycast-copilot-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechSupportz%2Fraycast-copilot-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechSupportz%2Fraycast-copilot-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechSupportz%2Fraycast-copilot-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechSupportz","download_url":"https://codeload.github.com/TechSupportz/raycast-copilot-usage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechSupportz%2Fraycast-copilot-usage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28882591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T16:41:59.663Z","status":"ssl_error","status_checked_at":"2026-01-29T16:39:39.641Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-29T19:00:05.733Z","updated_at":"2026-01-29T19:00:07.828Z","avatar_url":"https://github.com/TechSupportz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Copilot Premium Usage - Raycast Extension\n\nView your GitHub Copilot Premium request usage directly in Raycast without having to visit GitHub.\n\n## Features\n\n- **Current Month Summary**: View total requests, costs, and price per request\n- **Model Breakdown**: See usage split by different AI models (GPT-5, Claude, etc.)\n- **Manual Refresh**: Update your usage data on demand\n- **Secure Token Storage**: Your GitHub Personal Access Token is stored securely in Raycast preferences\n\n## Installation\n\n### 1. Install the Extension\n\n```bash\n# Navigate to the extension directory\ncd github-copilot-usage\n\n# Install dependencies\nnpm install\n\n# Build the extension (optional, for development you can use dev mode)\nnpm run build\n```\n\n### 2. Import to Raycast\n\n1. Open Raycast\n2. Run the command: **Import Extension**\n3. Select this directory: `github-copilot-usage`\n4. Raycast will import and activate the extension\n\n### 3. Configure GitHub Personal Access Token\n\nYou need a GitHub Personal Access Token with specific permissions to access your billing data.\n\n#### Creating Your Token\n\n1. Go to: https://github.com/settings/tokens?type=beta\n2. Click **\"Generate new token\"** (fine-grained personal access token)\n3. Configure the token:\n   - **Token name**: `Raycast Copilot Usage` (or any name you prefer)\n   - **Expiration**: Choose your preferred duration (e.g., 90 days)\n   - **Repository access**: No need to select repositories\n   - **Account permissions**:\n     - Scroll to **\"Plan\"** → Set to **\"Read-only\"**\n4. Click **\"Generate token\"**\n5. **Copy the token** (you won't be able to see it again!)\n\n#### Adding Token to Raycast\n\n1. Open Raycast\n2. Run the command: **View Copilot Usage**\n3. When prompted, paste your GitHub Personal Access Token\n4. The token is saved securely in Raycast preferences\n\nAlternatively:\n1. Open Raycast preferences (⌘ + ,)\n2. Navigate to **Extensions** → **GitHub Copilot Usage**\n3. Paste your token in the **GitHub Personal Access Token** field\n\n## Usage\n\n### View Your Usage\n\n1. Open Raycast (⌘ + Space)\n2. Type: **View Copilot Usage**\n3. Press Enter\n\nThe extension will display:\n- **Total Requests**: Number of API requests made this month\n- **Total Cost**: Total amount spent this month\n- **Price per Request**: Average cost per request\n- **Usage by Model**: Breakdown showing requests and costs per AI model\n\n### Refresh Data\n\n- Press **⌘ + R** while viewing the usage list\n- Or select **\"Refresh Data\"** from the actions menu\n- Or select the \"Refresh Data\" item at the bottom of the list\n\n### Copy Information\n\n- Select any item and press **⌘ + C** to copy the information to clipboard\n- Each item has contextual copy actions (copy request count, cost, etc.)\n\n## Data Information\n\n### What Data is Shown\n\nThe extension uses GitHub's Billing API endpoint:\n```\nGET /users/{username}/settings/billing/premium_request/usage\n```\n\nThis provides:\n- Usage data for up to 24 months\n- Daily processed metrics (data available up to yesterday)\n- Requires telemetry to be enabled in your IDE\n\n### Limitations\n\n- **Minimum Requirements**: No minimum usage required for personal accounts\n- **Data Delay**: Usage data is processed daily, so today's usage won't appear until tomorrow\n- **Rate Limits**: GitHub API allows 5,000 requests/hour for authenticated users\n\n## Troubleshooting\n\n### \"Invalid GitHub token\"\n- Verify your token is copied correctly (no extra spaces)\n- Ensure the token hasn't expired\n- Check that you created a **fine-grained** token (not classic)\n\n### \"Access forbidden\"\n- Verify your token has **\"Plan\"** permissions set to **Read-only**\n- You may need to regenerate the token with correct permissions\n\n### \"No usage data available\"\n- You may not have used Copilot Premium features yet this month\n- Usage data is processed daily - check back tomorrow\n- Ensure you have GitHub Copilot Premium (not just Copilot Business/Individual)\n\n### \"Failed to fetch user\"\n- Check your internet connection\n- Verify the token is valid\n- Try regenerating the token\n\n## Development\n\n### Run in Development Mode\n\n```bash\nnpm run dev\n```\n\nThis will open Raycast in development mode with the extension loaded.\n\n### Build for Production\n\n```bash\nnpm run build\n```\n\n### Lint Code\n\n```bash\nnpm run lint\n\n# Auto-fix issues\nnpm run fix-lint\n```\n\n## Project Structure\n\n```\ngithub-copilot-usage/\n├── src/\n│   ├── view-copilot-usage.tsx   # Main UI component\n│   ├── api/\n│   │   └── github.ts            # GitHub API client\n│   ├── types/\n│   │   └── usage.ts             # TypeScript type definitions\n│   └── utils/\n│       └── formatting.ts        # Formatting utilities\n├── assets/\n│   └── command-icon.png         # Extension icon\n├── package.json                 # Extension manifest\n├── tsconfig.json                # TypeScript configuration\n└── README.md                    # This file\n```\n\n## API Reference\n\n### GitHub API Endpoints Used\n\n1. **Get Current User**\n   ```\n   GET https://api.github.com/user\n   ```\n   Used to fetch your GitHub username\n\n2. **Get Premium Request Usage**\n   ```\n   GET https://api.github.com/users/{username}/settings/billing/premium_request/usage\n   ```\n   Used to fetch Copilot Premium usage data\n\n### Required Permissions\n\n- **Plan** (Read-only): Required to access billing and usage information\n\n## Privacy \u0026 Security\n\n- Your GitHub Personal Access Token is stored securely in Raycast's preferences\n- The token is never logged or transmitted anywhere except to GitHub's official API\n- All API calls are made directly from your machine to GitHub\n- No third-party services are used\n\n## License\n\nMIT\n\n## Support\n\nIf you encounter issues:\n1. Check the Troubleshooting section above\n2. Verify your token has the correct permissions\n3. Ensure you're using GitHub Copilot Premium\n\n## Contributing\n\nFeel free to submit issues and enhancement requests!\n\n## Changelog\n\n### Version 1.0.0\n- Initial release\n- View current month Copilot Premium usage\n- Display total requests, costs, and per-model breakdown\n- Manual refresh functionality\n- Secure token storage\n\n## Credits\n\nBuilt with [Raycast API](https://developers.raycast.com/) and GitHub's REST API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechsupportz%2Fraycast-copilot-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechsupportz%2Fraycast-copilot-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechsupportz%2Fraycast-copilot-usage/lists"}