René's URL Explorer Experiment


Title: feat: rotate a pool of Command Code keys on credential failures by JoshRob297 · Pull Request #9 · JoshRob297/opencode-commandcode · GitHub

Open Graph Title: feat: rotate a pool of Command Code keys on credential failures by JoshRob297 · Pull Request #9 · JoshRob297/opencode-commandcode

X Title: feat: rotate a pool of Command Code keys on credential failures by JoshRob297 · Pull Request #9 · JoshRob297/opencode-commandcode

Description: Stacked on #8 (ZDR). Rebase to main once #8 merges. Context A Command Code plan can hold several API keys (one per account). Today a key that hits 402 insufficient credits or a rate-limit window keeps failing every request until the user edits the key file, which is what happened with the $0.07 account. Change New src/auth/pool.ts: pool loading (COMMANDCODE_API_KEYS, COMMANDCODE_KEYS_FILE, ~/.config/commandcode/keys.txt with label=key lines), selection, cooldown mapping, state persistence. Rotation activates only with two or more keys. Single-key mode keeps the current behaviour and never overrides a host Authorization header. In rotation mode the plugin owns the Authorization header on the strict Command Code host, because the host-injected key may be the one that just returned 402. Cooldowns: 402 -> 24h, 401/403 -> 24h, 429 -> Retry-After (cap 6h) or 5m, 5xx -> none. When every key is cooling down the soonest recovery is used. State is labels-only (commandcode-keys-state.json, 0600) and each cooldown is appended to commandcode-rotation.log without secrets. Verify bun test: 120 pass, 3 skip, 0 fail (new tests/pool.test.ts covers parsing, selection, cooldown mapping, Retry-After, rotation through the real plugin hooks, lookalike host, single-key regression). bunx tsc --noEmit: clean.

Open Graph Description: Stacked on #8 (ZDR). Rebase to main once #8 merges. Context A Command Code plan can hold several API keys (one per account). Today a key that hits 402 insufficient credits or a rate-limit window ke...

X Description: Stacked on #8 (ZDR). Rebase to main once #8 merges. Context A Command Code plan can hold several API keys (one per account). Today a key that hits 402 insufficient credits or a rate-limit window ke...

Opengraph URL: https://github.com/JoshRob297/opencode-commandcode/pull/9

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ad65281b-29ee-134d-a218-ad99ef201388
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC430:24ACB9:1035845:1561931:6B010687
html-safe-noncebd9980f1b5e9afd02017ce67d5f02a1f516f7ac48e9fdf54fa60900a9147352d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDMwOjI0QUNCOToxMDM1ODQ1OjE1NjE5MzE6NkIwMTA2ODciLCJ2aXNpdG9yX2lkIjoiMjI4Njg5MTk0NzgyODg1NTExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac29f1fc2ff1090699e4b36bf98ed39507bdffb816441dc55382737f78794c98b0
hovercard-subject-tagpull_request:5100331562
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JoshRob297/opencode-commandcode/pull/9/files
twitter:imagehttps://avatars.githubusercontent.com/u/99092299?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/99092299?s=400&v=4
og:image:altStacked on #8 (ZDR). Rebase to main once #8 merges. Context A Command Code plan can hold several API keys (one per account). Today a key that hits 402 insufficient credits or a rate-limit window ke...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JoshRob297/opencode-commandcode git https://github.com/JoshRob297/opencode-commandcode.git
octolytics-dimension-user_id99092299
octolytics-dimension-user_loginJoshRob297
octolytics-dimension-repository_id1424717173
octolytics-dimension-repository_nwoJoshRob297/opencode-commandcode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1424717173
octolytics-dimension-repository_network_root_nwoJoshRob297/opencode-commandcode
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJoshRob297%2Fopencode-commandcode%2Fpull%2F9%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJoshRob297%2Fopencode-commandcode%2Fpull%2F9%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JoshRob297%2Fopencode-commandcode
Reloadhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
Reloadhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
Reloadhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
JoshRob297https://github.com/JoshRob297
opencode-commandcodehttps://github.com/JoshRob297/opencode-commandcode
Codehttps://github.com/JoshRob297/opencode-commandcode
Issueshttps://github.com/JoshRob297/opencode-commandcode/issues
Pull requestshttps://github.com/JoshRob297/opencode-commandcode/pulls
Actionshttps://github.com/JoshRob297/opencode-commandcode/actions
Security and qualityhttps://github.com/JoshRob297/opencode-commandcode/security
Insightshttps://github.com/JoshRob297/opencode-commandcode/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FJoshRob297%2Fopencode-commandcode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJoshRob297%2Fopencode-commandcode%2Fissues%2Fnew%2Fchoose
JoshRob297https://github.com/JoshRob297
mainhttps://github.com/JoshRob297/opencode-commandcode/tree/main
feat/key-rotationhttps://github.com/JoshRob297/opencode-commandcode/tree/feat/key-rotation
Conversation 0 https://github.com/JoshRob297/opencode-commandcode/pull/9
Commits 1 https://github.com/JoshRob297/opencode-commandcode/pull/9/commits
Checks 1 https://github.com/JoshRob297/opencode-commandcode/pull/9/checks
Files changed https://github.com/JoshRob297/opencode-commandcode/pull/9/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
feat: rotate a pool of Command Code keys on credential failures https://github.com/JoshRob297/opencode-commandcode/pull/9/files#top
Show all changes 1 commit https://github.com/JoshRob297/opencode-commandcode/pull/9/files
39d7271 feat: rotate a pool of Command Code keys on credential failures JoshRob297 Oct 31, 2026 https://github.com/JoshRob297/opencode-commandcode/pull/9/commits/39d7271997eea2f80d1619597d9ced1d06a4e021
Clear filters https://github.com/JoshRob297/opencode-commandcode/pull/9/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
CHANGELOG.md https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
README.es.md https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
README.md https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
CONFIGURATION.md https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
configuration.md https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
index.ts https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
package.json https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
pool.ts https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-5573d95a0fc84f7fd84d0714a34f4766ea2d08ff96f23d6e5df3e1c0c3a6323d
index.ts https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
pool.test.ts https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-4366b742eac6d48ab3e8e2cabf6bfb33bf1000668973bf9aaeeabd1c10df39c4
CHANGELOG.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
README.es.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/README.es.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
README.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/CONFIGURATION.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/docs/CONFIGURATION.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
docs/es/configuration.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/docs/es/configuration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
index.tshttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
package.jsonhttps://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
View file https://github.com/JoshRob297/opencode-commandcode/blob/39d7271997eea2f80d1619597d9ced1d06a4e021/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/9/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/9/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/9/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.