Last active
June 9, 2026 16:59
-
-
Save rhaleblian/4e343c55aafbe08a71db0041c3db29e2 to your computer and use it in GitHub Desktop.
Fetches OpenRouter balance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Get your OpenRouter balance in your TUI. | |
| curl https://openrouter.ai/api/v1/credits \ | |
| -H "Authorization: Bearer $OPENROUTER_API_KEY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment