OIDC-TOKENSH(1)
π OIDC-TOKENSH β the manual page, but make it cute π
okay bestie, sit down, hydrate, and let me tell you about oidc-tokensh, a User Command that lives in section 1 of the manual and is literally about to change your whole token situation. no cap. π«Ά
β¨ NAME β¨
oidc-tokensh β bestie, it makes sure you always have a valid Access Token. always. like, it's not even a vibe, it's a guarantee. π
oidc-tokensh starts a whole new shell, and inside that shell oidc-agent is available to you. if an account configuration needs unlocking, it'll ask you for a password β only when it actually needs to, which is very considerate of it honestly. π
and the Access Tokens? they get automatically renewed for the account you specified, before they expire. not after. before. it's giving "responsible queen who pays her bills early." π
πΈ SYNOPSIS πΈ
oidc-tokensh [-h] [oidc-token options] -- [command]
π¦ DESCRIPTION π¦
real talk: this tool is based on httokensh by Dave Dykstra. shoutout to Dave, icon behaviour. π
what it does is: it runs oidc-agent and oidc-token with the options you gave it, starts your command, and then keeps running oidc-token in the background as needed to renew the token β right up until your command exits. so it's just over there, quietly refreshing your tokens the entire time you're doing your little tasks. main character energy from a background process, we love to see it. β¨
π OPTIONS π
-h,--helpβ shows this help message and then exits. classic. the "wait what does this do again" button. π--oidc <name>|<OP-url>β the name or the url of theoidc-agentconfiguration you wanna use. give it a name, give it a url, it's flexible like that. π«--minsecs <seconds>β the minimum lifetime your token should have. like, "don't let it get below this many seconds, pls." β³-o|--outfile <file>β specify an alternative file for storing the Access Token. you want it somewhere else? say the word. π-v|--verboseβ shows debug output. turn this on when you wanna see everything that's happening. it's giving surveillance but make it consensual. π
also, super important: command defaults to $SHELL. so if you don't pass anything, it just hands you your own shell. cozy. π
and one more thing, and I say this with love: please specify the oidc-agent shortname that you wish to use. it's not optional energy, bestie. it needs to know. π
π§ FILES π§
it's looking at one of these, depending on your setup:
$XDG_RUNTIME_DIR/bt_u$ID/tmp/bt_u$ID- or
$BEARER_TOKEN_FILE
π SEE ALSO π
go read these too, they're all in the same friend group:
there's also a low-traffic mailing list with updates β things like critical security incidents and new releases (so, y'know, the stuff you actually want to know about):
https://www.lists.kit.edu/sympa/subscribe/oidc-agent-user
and the full documentation lives at:
https://indigo-dc.github.io/oidc-agent/usage/oidc-tokensh/
β heads up: the footer of the original page was literally mid-sentence β it says "Trying to auto-detect oidc-ag..." β and it's stamped September 2026, for oidc-tokensh in section 1 of the User Commands. so that's the source, the version vibe, and the date. the page was mid-thought and honestly? relatable. π
anyway that's the whole page, every single option and path and link is in there, nothing skipped, no cap. go get your tokens renewed, you gorgeous little sysadmin. π«Άππ
π¦ where this page comes from
- epel 10: oidc-agent-cli 5.3.8-1.el10_3 Β· MIT AND ISC AND LGPL-2.1-or-later AND BSD-2-Clause
- fedora 43: oidc-agent-cli 5.3.8-1.fc43 Β· MIT AND ISC AND LGPL-2.1-or-later AND BSD-2-Clause
- fedora 44: oidc-agent-cli 5.3.8-1.fc44 Β· MIT AND ISC AND LGPL-2.1-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms