v1.2.0 - v1.2.4: Added Copilot Support and Documentation Improvements
Version Overview
This update (v1.2.0 - v1.2.4) brings significant feature enhancements to opencode-mystatus, most notably added support for GitHub Copilot quota queries. The documentation has also been improved with updated installation instructions and fixed code lint errors.
Key Changes:
- ✅ Added GitHub Copilot Premium Requests query
- ✅ Integrated GitHub internal API
- ✅ Updated Chinese and English documentation
- ✅ Improved installation instructions, removed version restrictions
- ✅ Fixed code lint errors
[1.2.2] - 2026-01-14
Documentation Improvements
- Updated installation instructions: Removed version restrictions in
README.mdandREADME.zh-CN.md - Auto-update support: Users can now receive the latest version automatically without manually modifying version numbers
Impact: When installing or upgrading the plugin, users no longer need to specify a specific version. They can use the @latest tag to get the latest version.
[1.2.1] - 2026-01-14
Bug Fixes
- Fixed lint errors: Removed unused
maskStringimport incopilot.ts
Impact: Improved code quality, passes ESLint checks, no functional changes.
[1.2.0] - 2026-01-14
New Features
GitHub Copilot Support
This is the core feature of this update:
- Added Copilot quota query: Supports querying GitHub Copilot Premium Requests usage
- Integrated GitHub internal API: Added
copilot.tsmodule to fetch quota data via GitHub API - Updated documentation: Added Copilot-related documentation in
README.mdandREADME.zh-CN.md
Supported Authentication Methods:
- Fine-grained PAT (Recommended): User-created Fine-grained Personal Access Token
- OAuth Token: OpenCode OAuth Token (requires Copilot permissions)
Query Content:
- Total Premium Requests and usage
- Usage details for each model
- Subscription type identification (free, pro, pro+, business, enterprise)
Usage Example:
# Execute mystatus command
/mystatus
# You'll see the GitHub Copilot section in the output
Account: GitHub Copilot (@username)
Premium Requests ██████████░░░░░░░░░░ 75% (75/300)
Model Usage Details:
gpt-4o: 150 Requests
claude-3.5-sonnet: 75 Requests
Billing Cycle: 2026-01Upgrade Guide
Automatic Upgrade (Recommended)
Since v1.2.2 updated the installation instructions and removed version restrictions, you can now:
# Install using latest tag
opencode plugin install vbgate/opencode-mystatus@latestManual Upgrade
If you have an older version installed, you can update directly:
# Uninstall old version
opencode plugin uninstall vbgate/opencode-mystatus
# Install new version
opencode plugin install vbgate/opencode-mystatus@latestConfigure Copilot
After upgrading, you can configure GitHub Copilot quota query:
Method 1: Using Fine-grained PAT (Recommended)
- Create a Fine-grained Personal Access Token on GitHub
- Create configuration file
~/.config/opencode/copilot-quota-token.json:
{
"token": "ghp_your_fine_grained_pat_here",
"username": "your-github-username",
"tier": "pro"
}- Execute
/mystatusto query quota
Method 2: Using OpenCode OAuth Token
Make sure your OpenCode OAuth Token has Copilot permissions, then execute /mystatus directly.
Tip
For detailed Copilot authentication configuration, please refer to the Copilot Authentication Configuration tutorial.
Known Issues
Copilot Permission Issues
If your OpenCode OAuth Token doesn't have Copilot permissions, a prompt will be displayed during query. Solutions:
- Use Fine-grained PAT (Recommended)
- Re-authorize OpenCode, ensuring Copilot permissions are checked
For detailed solutions, please refer to the Copilot Authentication Configuration tutorial.
Future Plans
Future versions may include the following improvements:
- [ ] Support for more GitHub Copilot subscription types
- [ ] Optimize Copilot quota display format
- [ ] Add quota alert feature
- [ ] Support for more AI platforms
Related Documentation
Full Changelog
For all version changes, please visit GitHub Releases.