{"_id":"@ai-oauth-sdk/cli","_rev":"14-59f36ea88c89fb013b1254a66069e847","name":"@ai-oauth-sdk/cli","dist-tags":{"latest":"1.3.0"},"versions":{"0.1.0":{"name":"@ai-oauth-sdk/cli","version":"0.1.0","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@0.1.0","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://github.com/themonk-dev/ai-oauth-sdk#readme","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"673534c7eb5906e80874bfe4f669e19f27e57817","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-0.1.0.tgz","fileCount":10,"integrity":"sha512-SJ5UjEik6ZzFVVLr6NAYrYWqB2eW5XslH1C8cvx2WM6m0P77PcnxpLf31Ek443wiHQVabNXFHS34lmqZYI18vw==","signatures":[{"sig":"MEUCIQDCJxw4PwH2jwoW1t8G905AklUe2ML1hwxNiZZOefn6mgIgeKg6r5uzxqTZ+VKUOd4CxPnpDptNAcyxe03L9pBoXdE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":68029},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"themonk-bot","email":"hey@themonk.dev"},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-0.1.0.tgz","_integrity":"sha512-SJ5UjEik6ZzFVVLr6NAYrYWqB2eW5XslH1C8cvx2WM6m0P77PcnxpLf31Ek443wiHQVabNXFHS34lmqZYI18vw==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^0.1.0","@ai-oauth-sdk/node":"^0.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.0_1785441065026_0.9939226832882573","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@ai-oauth-sdk/cli","version":"0.1.1","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@0.1.1","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://github.com/themonk-dev/ai-oauth-sdk#readme","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"82d9f67c1588625f6149bfaced31011c0ce795cf","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-0.1.1.tgz","fileCount":10,"integrity":"sha512-PgLn/D5Ih5p+PjyBil374TOLE5d/vtTPiDZioTjgTsC68dEKcB4LRXnnOpIUHRB8JBk41/ugueEsaOtb8p8Hrg==","signatures":[{"sig":"MEUCIQDddSYftxL9Ok0Arh2y9aRhp9ihysqGy1CtLL7+Tkc66gIgBg9h0j4qvKxWoJzn+7KPn4n5LwOS3vb5TzdkQWm+HDI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71179},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-0.1.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-0.1.1.tgz","_integrity":"sha512-PgLn/D5Ih5p+PjyBil374TOLE5d/vtTPiDZioTjgTsC68dEKcB4LRXnnOpIUHRB8JBk41/ugueEsaOtb8p8Hrg==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^0.1.1","@ai-oauth-sdk/node":"^0.1.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.1_1785443657438_0.36834685735930495","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@ai-oauth-sdk/cli","version":"0.2.0","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@0.2.0","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://github.com/themonk-dev/ai-oauth-sdk#readme","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"51f0a804fbc22669655584fa6014cbf19aca2005","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-0.2.0.tgz","fileCount":10,"integrity":"sha512-VVM3uAXx0VQZF4SHRGilRifNqVEs/BiTzJ9CUt80AoEo9vvo3PrXobTLgXlhmRs0rgelJRtmHq2EeeHNSHjUNQ==","signatures":[{"sig":"MEUCIQDHvRG93CxiyVqGcPtW9m8d908l3HyhS62RZjX5uy779gIgTS1hymvgX4Wv2+JqLkiNJCClmbesPWRinxTgpCPZiF8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84252},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-0.2.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-0.2.0.tgz","_integrity":"sha512-VVM3uAXx0VQZF4SHRGilRifNqVEs/BiTzJ9CUt80AoEo9vvo3PrXobTLgXlhmRs0rgelJRtmHq2EeeHNSHjUNQ==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^0.2.0","@ai-oauth-sdk/node":"^0.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.2.0_1785516043792_0.3912958406812048","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@ai-oauth-sdk/cli","version":"0.2.1","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@0.2.1","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://github.com/themonk-dev/ai-oauth-sdk#readme","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"bc6546f7ad45d7ec32fe20e603ec0a017db60139","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-0.2.1.tgz","fileCount":10,"integrity":"sha512-x95AJ8HByzHuXl0RXbR+YxrbeDx8YHHXiit7vBd/pCHIyOf9slkbmt1XY0BxIXynZOPxCEorlFZ5Lni0mIKGhw==","signatures":[{"sig":"MEQCIFXl79RlHhlAHRlYuBRBIeP7/1fLteyUkYgIKU8USVH+AiA7QVDfrBGS1ygDPeVnrMjUL50EA9vLjz8AtK0VDBV/nQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84252},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-0.2.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-0.2.1.tgz","_integrity":"sha512-x95AJ8HByzHuXl0RXbR+YxrbeDx8YHHXiit7vBd/pCHIyOf9slkbmt1XY0BxIXynZOPxCEorlFZ5Lni0mIKGhw==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^0.2.1","@ai-oauth-sdk/node":"^0.2.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.2.1_1785618404668_0.26091985880233226","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@ai-oauth-sdk/cli","version":"0.3.0","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@0.3.0","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://github.com/themonk-dev/ai-oauth-sdk#readme","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"2b47f6bcddfb780ed5f8bb72d370173fa18b67ce","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-0.3.0.tgz","fileCount":10,"integrity":"sha512-1opn8Z0p0fnQj/NUrYrPFh7M3MM37AtEPB43fbMTW+jS+WCVnpWVgSCEx4KF9dMRQcxmQMIo6woo9viouRUTeg==","signatures":[{"sig":"MEUCIGwtxTa29ndZ80hOhJBs1r3nAXg0lztz427mr+LGHLhPAiEA+jN/pkrmRkGcvG2eB33QIagBmueZ3FpuYNslcQhHeuY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84498},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-0.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-0.3.0.tgz","_integrity":"sha512-1opn8Z0p0fnQj/NUrYrPFh7M3MM37AtEPB43fbMTW+jS+WCVnpWVgSCEx4KF9dMRQcxmQMIo6woo9viouRUTeg==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^0.3.0","@ai-oauth-sdk/node":"^0.3.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.0_1785620493745_0.5863685095347306","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@ai-oauth-sdk/cli","version":"1.0.0","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.0.0","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev/docs/runtimes/cli","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"62526577e9e6ff420b05cf6205ad7bef1ce789d1","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.0.0.tgz","fileCount":10,"integrity":"sha512-x3volgsn2IU4GhizU7zLwSSyIOn5v9UZdheVg1D8caNWmlykNDaS+YWh6CaIFuRuyeVhQH2GoNMUsNO3HP9/jA==","signatures":[{"sig":"MEQCIDeTFXzQwO1WpVCKkYEwO8QiqyumUfwLi+husdg7rwa8AiB3I72eu95eqNFUoQVaUrLWPQecruNUMkA4uYFSR3w9sA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84685},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.0.0.tgz","_integrity":"sha512-x3volgsn2IU4GhizU7zLwSSyIOn5v9UZdheVg1D8caNWmlykNDaS+YWh6CaIFuRuyeVhQH2GoNMUsNO3HP9/jA==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^1.0.0","@ai-oauth-sdk/node":"^1.0.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.0.0_1785658515940_0.8262509596226604","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ai-oauth-sdk/cli","version":"1.0.1","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.0.1","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"f459dd989702b7da4d92d235d2d63cfbe2c858fc","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.0.1.tgz","fileCount":10,"integrity":"sha512-FLhY93PzIGVUKzXNB/F39FkEqCfyM2KWS5GwE480ukoPbNRO6+aWlEinwm04ceG9g1skjwhBM0ZWTas3K7jE5g==","signatures":[{"sig":"MEYCIQDgcTh9JmmaAWLaN/R/DNbt8ZOTrU6JZTyx39WgoiB+CAIhAIjJgJzb03qkFLsU0cgAOZNlAFTY4lO2oi53COpwRjm/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85734},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.0.1.tgz","_integrity":"sha512-FLhY93PzIGVUKzXNB/F39FkEqCfyM2KWS5GwE480ukoPbNRO6+aWlEinwm04ceG9g1skjwhBM0ZWTas3K7jE5g==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^1.0.1","@ai-oauth-sdk/node":"^1.0.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.0.1_1785680932909_0.09926745000509607","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@ai-oauth-sdk/cli","version":"1.0.2","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.0.2","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"e8935a36a494e3406ba34b5e3bc63354edd6afde","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.0.2.tgz","fileCount":10,"integrity":"sha512-pPK2ZbjhtS9G+2lLpswsypRVZOvq9FvYZ2fdIKWbCF7Gbq1dIZCLlbZjlqHl5WH8jHIDZniYMClJ2yt9hUKQ9Q==","signatures":[{"sig":"MEYCIQCGaV9JV9aDdl7pv7r1t+ES/nPpddMoP8SViefA2G18XwIhAJ9c3cFBCo5Sovq/Olbw2jgj5N7eiWMyTNYR3PZYReHV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85734},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.0.2.tgz","_integrity":"sha512-pPK2ZbjhtS9G+2lLpswsypRVZOvq9FvYZ2fdIKWbCF7Gbq1dIZCLlbZjlqHl5WH8jHIDZniYMClJ2yt9hUKQ9Q==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^1.0.2","@ai-oauth-sdk/node":"^1.0.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.0.2_1785766429613_0.8491231322033406","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@ai-oauth-sdk/cli","version":"1.1.0","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.1.0","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"a4194cf8c9c2f75751785437a115f33dcd91ae52","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.1.0.tgz","fileCount":10,"integrity":"sha512-wxQXEXggYc93sRDqoQSRKre5lXNcVNFOGfRGn3zbwlSHrgnIpAc0RgkW+QnwhsBdpRtT32yqUe2RA/gRqQIYow==","signatures":[{"sig":"MEYCIQCY2THhczpNgR1o/dpa/iK/NUED055jFlms8/E2TIalPAIhANi4gFILkQJQBlOePA7Yuk/3JkdydV8ad2+pT+FHxsIb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85734},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.1.0.tgz","_integrity":"sha512-wxQXEXggYc93sRDqoQSRKre5lXNcVNFOGfRGn3zbwlSHrgnIpAc0RgkW+QnwhsBdpRtT32yqUe2RA/gRqQIYow==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^1.1.0","@ai-oauth-sdk/node":"^1.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.1.0_1785873134282_0.45731820819892754","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@ai-oauth-sdk/cli","version":"1.1.1","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.1.1","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"07fa8d61b995ed11c31494bee334db55052ebba6","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.1.1.tgz","fileCount":10,"integrity":"sha512-5uTfj+dEBp84mOZBMX1A1dlIX2IbaQa1L8wlzGuRjCNinjjhZW835IzFzRYrnUTvfJIqyYxGyhavDX69Qrybhg==","signatures":[{"sig":"MEUCIGbGQFl4Gu/rEntngikVElbSOEzVmTmQlIPkR5KQNgnwAiEA5GtsQ4dJaYXx9ePMgWKHc1f9wqn4eJo9e9+6gqZN990=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85734},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.1.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.1.1.tgz","_integrity":"sha512-5uTfj+dEBp84mOZBMX1A1dlIX2IbaQa1L8wlzGuRjCNinjjhZW835IzFzRYrnUTvfJIqyYxGyhavDX69Qrybhg==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.17.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@ai-oauth-sdk/core":"^1.1.1","@ai-oauth-sdk/node":"^1.1.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.1.1_1786509958394_0.10488261262713605","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@ai-oauth-sdk/cli","version":"1.1.2","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.1.2","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"059e6a9e5c9bd60b66d56c3091451570221a89c1","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.1.2.tgz","fileCount":10,"integrity":"sha512-AsgG8QLZEUy5878i3luqr8hvjGyD3LhrCTIWgW/BXvDDDaTszAb1sC+VhkQ1TLqZQbmYXEFw5rgHSGW4/Ac6mA==","signatures":[{"sig":"MEUCIQC8zv5sHv2/jX+j+jGvMUy66lDpvA0nAQNSZnKgxQ5dQgIgejN3+EQJSohTttPKI2RjmVuf+pmAy0ovlVwarshYa00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":87740},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.1.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.1.2.tgz","_integrity":"sha512-AsgG8QLZEUy5878i3luqr8hvjGyD3LhrCTIWgW/BXvDDDaTszAb1sC+VhkQ1TLqZQbmYXEFw5rgHSGW4/Ac6mA==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@ai-oauth-sdk/core":"^1.1.2","@ai-oauth-sdk/node":"^1.1.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.1.2_1786538706045_0.5052245981214334","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@ai-oauth-sdk/cli","version":"1.1.3","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.1.3","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"82e1683623bcbf31b1aca131b5b26683dcc31544","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.1.3.tgz","fileCount":10,"integrity":"sha512-FbfUBhhcHBnS9iwnd0MplGeSiO/QV2iXKZAKjdmMddSfcRQeQrFDnapiyy2IRlti6i1TAlOl62Leil8Zj/n0Qw==","signatures":[{"sig":"MEUCIGEYO9S1WDJeVkPf70x660lmcLjSqnKx5Dl9Bk9d3fvgAiEA/MSGQI3ErGq0mgrTQP/gr/KG3RA9bECYwmeM1A4k1xA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":87740},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.1.3.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.1.3.tgz","_integrity":"sha512-FbfUBhhcHBnS9iwnd0MplGeSiO/QV2iXKZAKjdmMddSfcRQeQrFDnapiyy2IRlti6i1TAlOl62Leil8Zj/n0Qw==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.17.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@ai-oauth-sdk/core":"^1.1.3","@ai-oauth-sdk/node":"^1.1.3"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.1.3_1786951520886_0.7801681675110097","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@ai-oauth-sdk/cli","version":"1.2.0","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","_id":"@ai-oauth-sdk/cli@1.2.0","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"bin":{"ai-oauth-sdk":"dist/bin.js"},"dist":{"shasum":"e8481145427492dd72ab38c85e3558127eeab5e8","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.2.0.tgz","fileCount":10,"integrity":"sha512-xdiz+cDE3WHmwqN/ddhEKTflbBiqT4MGT+CEIy5vpNbhnEO+JZk0MAkPR+GlpJVfsA/0HYIm6xo2Q3CjXTOlhw==","signatures":[{"sig":"MEYCIQD/HyT7GhF7lFzMDY2V3S/RZ08gF1GyJSYx9DgdQMEWyQIhAJLZJYI+BTS7MLH5IreGzHWNfJMgoqUltjBwrBCT5N4k","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":87740},"main":"./dist/index.js","type":"module","_from":"file:tarballs/ai-oauth-sdk-cli-1.2.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.2.0.tgz","_integrity":"sha512-xdiz+cDE3WHmwqN/ddhEKTflbBiqT4MGT+CEIy5vpNbhnEO+JZk0MAkPR+GlpJVfsA/0HYIm6xo2Q3CjXTOlhw==","repository":{"url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.17.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@ai-oauth-sdk/core":"^1.2.0","@ai-oauth-sdk/node":"^1.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli_1.2.0_1787128268680_0.4081150020763309","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@ai-oauth-sdk/cli","version":"1.3.0","description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"license":"MIT","homepage":"https://ai-oauth.themonk.dev","bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"repository":{"type":"git","url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","directory":"packages/cli"},"type":"module","bin":{"ai-oauth-sdk":"dist/bin.js"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"engines":{"node":">=22"},"dependencies":{"@ai-oauth-sdk/node":"^1.3.0","@ai-oauth-sdk/core":"^1.3.0"},"publishConfig":{"access":"public","provenance":true},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit"},"_id":"@ai-oauth-sdk/cli@1.3.0","_integrity":"sha512-2sA9HkvlNPwco1tgEoMcaxemlZ2xfmcppPOKiYDa6fJXYOVLP7iZtU2MCxn2VddUKGE5ImpI1q3DRPf/v+CbHw==","_resolved":"/home/runner/work/ai-oauth-sdk/ai-oauth-sdk/tarballs/ai-oauth-sdk-cli-1.3.0.tgz","_from":"file:tarballs/ai-oauth-sdk-cli-1.3.0.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-2sA9HkvlNPwco1tgEoMcaxemlZ2xfmcppPOKiYDa6fJXYOVLP7iZtU2MCxn2VddUKGE5ImpI1q3DRPf/v+CbHw==","shasum":"35cc9b497b1010403abdeb89b60c6480866569b1","tarball":"https://registry.npmjs.org/@ai-oauth-sdk/cli/-/cli-1.3.0.tgz","fileCount":10,"unpackedSize":87740,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-oauth-sdk%2fcli@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHRWt2Ak24LWkB4R/RytaQ7T1OA5Nw+P1NDwgZECY4udAiBOvzUxQSpku4HDe08DUehdKuV/BnId4j8JXlvaR0t1Uw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6aece90-f292-4493-bbc8-e07f2cbef6b5"}},"directories":{},"maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_1.3.0_1789278174756_0.40529230933748783"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-30T19:51:04.770Z","modified":"2026-09-13T05:42:55.189Z","0.1.0":"2026-07-30T19:51:05.166Z","0.1.1":"2026-07-30T20:34:17.597Z","0.2.0":"2026-07-31T16:40:43.957Z","0.2.1":"2026-08-01T21:06:44.824Z","0.3.0":"2026-08-01T21:41:33.915Z","1.0.0":"2026-08-02T08:15:16.118Z","1.0.1":"2026-08-02T14:28:53.072Z","1.0.2":"2026-08-03T14:13:49.774Z","1.1.0":"2026-08-04T19:52:14.407Z","1.1.1":"2026-08-12T04:45:58.535Z","1.1.2":"2026-08-12T12:45:06.186Z","1.1.3":"2026-08-17T07:25:21.048Z","1.2.0":"2026-08-19T08:31:08.833Z","1.3.0":"2026-09-13T05:42:54.890Z"},"bugs":{"url":"https://github.com/themonk-dev/ai-oauth-sdk/issues"},"license":"MIT","homepage":"https://ai-oauth.themonk.dev","keywords":["oauth","cli","ai","chatgpt","claude","gemini","grok","copilot","token"],"repository":{"type":"git","url":"git+https://github.com/themonk-dev/ai-oauth-sdk.git","directory":"packages/cli"},"description":"Command-line tool to sign in to AI providers (ChatGPT, Claude, Gemini, Grok, Copilot) and print tokens for scripts.","maintainers":[{"name":"themonk-bot","email":"hey@themonk.dev"}],"readme":"# @ai-oauth-sdk/cli\n\nSign in to an AI provider from the terminal and get a token you can pipe into\nanything.\n\n**[Documentation](https://ai-oauth.themonk.dev/docs/runtimes/cli)**\n\n```bash\nnpx @ai-oauth-sdk/cli login openai\n\ncurl -H \"Authorization: Bearer $(npx @ai-oauth-sdk/cli token openai)\" \\\n     -H \"OpenAI-Beta: responses=experimental\" \\\n     \"https://chatgpt.com/backend-api/codex/models?client_version=0.142.5\"\n```\n\nNot `api.openai.com`: a ChatGPT sign-in grants the subscription surface, not the\nREST API. `createAuthenticatedFetch` sends the right host and headers for you.\n\nInstall it properly to drop the `npx`:\n\n```bash\nnpm i -g @ai-oauth-sdk/cli\nai-oauth-sdk login claude\n```\n\n## Commands\n\n```\nlogin <provider>      Sign in and store the token\ntoken <provider>      Print a valid access token (refreshes if needed)\nwhoami <provider>     Show the signed-in account\nlist                  List all stored sessions\nrefresh <provider>    Force a token refresh\nlogout <provider>     Forget the stored token\nproviders             List supported providers\nexec <provider> -- ...  Run a command with the token in its environment\n```\n\n`token` prints the bare token to **stdout** and nothing else. Everything meant for a human goes\nto stderr, so `$(...)` capture is always clean. `--json` gives structured output for every command.\n\n## Keeping tokens out of your shell history\n\n```bash\nai-oauth-sdk exec openai -- ./deploy.sh\n```\n\nThe token arrives as `$AI_OAUTH_SDK_TOKEN` in the child's environment instead of on\nthe command line, where it would land in the process table and your history\nfile. Use `--env-var OPENAI_API_KEY` to name it something a tool already reads.\n\n## Headless machines\n\n```bash\nai-oauth-sdk login github-copilot --device   # type a code on your phone\nai-oauth-sdk login claude --paste            # print the URL, paste the result back\n```\n\nPlain `login` already picks sensibly: a loopback server on a desktop, and paste\nover SSH or with no `DISPLAY`, where a loopback redirect could never arrive.\n\n## Several accounts\n\n```bash\nai-oauth-sdk login claude --account work\nai-oauth-sdk login claude --account personal\nai-oauth-sdk token claude --account work\nai-oauth-sdk list\n```\n\n## Any OAuth 2.0 provider\n\nThe built-ins are a convenience, not a limit:\n\n```bash\nai-oauth-sdk login acme \\\n  --client-id my-client \\\n  --authorize-url https://auth.acme.dev/authorize \\\n  --token-url https://auth.acme.dev/token\n```\n\nThe descriptor is saved alongside the token, so `ai-oauth-sdk token acme` works\nafterwards without repeating the flags.\n\n## Providers\n\n`openai`, `claude`, `gemini`, `xai`, `github-copilot`, `openrouter`, `qwen`\n\n`openai`, `claude`, `github-copilot`, `openrouter` and `qwen` work with no\nsetup. `gemini` and `xai` need credentials you register yourself, so pass `--client-id`, and\n`--client-secret` too for Gemini.\n\n## Where tokens live\n\n`~/.ai-oauth-sdk/auth.json`, written `0600`. Override with `--auth-dir` or the\n`AI_OAUTH_SDK_HOME` environment variable.\n\n## License\n\nMIT\n\n---\n\n<sub>An independent, unofficial project. Not affiliated with or endorsed by OpenAI,\nAnthropic, Google, GitHub, Microsoft, xAI, Alibaba or OpenRouter; all trademarks belong\nto their owners. No provider officially supports these OAuth flows, and any of them may\nchange without notice. Please read the\n[disclaimer](https://ai-oauth.themonk.dev/docs/resources/disclaimer).</sub>\n","readmeFilename":"README.md"}