Conversation
|
Not sure if this is possible yet, but would it be more beneficial to have this as a custom command instead of doing two or more LLM calls to fetch the quota? |
Yeah, that would be great. Maybe you could extract quota check from here. Command was my first idea, I tried but it wasn't working, then I tried to hookup to Sorry, I'm not typescript developer and not very familiar with opencode plugin system, was just going via docs. |
|
Okay so I was checking https://github.com/vbgate/opencode-mystatus/blob/main/plugin/mystatus.ts and this one works pretty much same way. To add command need to add to opencode settings something like this: "gemini-quota": {
"description": "Query quota usage for Gemini account",
"template": "Use the gemini-quota tool to query quota usage. Format in markdown table view, remainingFraction is percentage."
},In theory we can pre format it as they do in /mystatus and say that it should output it as is, but it looks like it still uses LLM to actually output it. |
|
This is now available in the latest release https://github.com/jenslys/opencode-gemini-auth/releases/tag/v1.4.0 |
Code written by Gemini 3 Pro.
This adds actual user quota check as separate tool, I couldn't think of anything better as not familiar with opencode and plugins.
Summary of Changes:
gemini-quotatool. It handles:gemini-quotatool.