Skip to content
This repository was archived by the owner on Jun 7, 2026. It is now read-only.

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

opencode-copilot-usage-toast

A plugin for OpenCode that displays your GitHub Copilot premium requests quota after each conversation.

Inspired by sst/opencode#768.

How it looks

Copilot Usage Toast

Installation

Add to your opencode.json:

{
  "plugins": ["opencode-copilot-usage-toast"]
}

That's it. The plugin reads your Copilot authentication from OpenCode automatically.

How it works

  1. Listens for the session.idle event (when a conversation ends)
  2. Checks if the last message came from github-copilot
  3. Reads your auth token from ~/.local/share/opencode/auth.json
  4. Fetches quota from GitHub's internal Copilot API
  5. Displays a toast with usage info

Requirements

  • OpenCode authenticated with GitHub Copilot (run opencode and sign in)

Troubleshooting

"Not authenticated with GitHub Copilot"

  • Make sure you've signed in to GitHub Copilot in OpenCode

"Failed to fetch quota"

  • Your auth token may have expired - re-authenticate in OpenCode

License

MIT

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages