{"_id":"@best-linux-code/opencode-copilot-device-auth","_rev":"12-b0e1cbcf84c18231d066fb5c762fc60f","name":"@best-linux-code/opencode-copilot-device-auth","dist-tags":{"latest":"0.1.14"},"versions":{"0.1.3":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.3","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.3","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"643be87bfe30790a4de65f30afad3009e4377f3b","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.3.tgz","fileCount":7,"integrity":"sha512-NSIebnReZVB4HYT4O5k//QLwJjGkt2KZpqhHIKv5w5FvI813N6CdmLt2xuS/mJqXDjb0+bSkxAye4D2NGtUPsw==","signatures":[{"sig":"MEUCIQCzs7jvBLn6TYHAQVJGloUHSJ1J0e2GQuEIm5tEYWts0AIgJbE91GwIIYVP3vUyK7nSPLEWjSiLscnAfIOcYVRtf8Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32938},"main":"./index.mjs","gitHead":"7eee19f06bdf078fb05fc671419dcd9ce333f4fa","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"Package on npm: https://www.npmjs.com/package/@zhzy0077/opencode-copilot-cli-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.3_1773468790567_0.6503122673536825","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.4","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.4","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"bcc7637bf39da416c286a1a363089b0a7d9aff44","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.4.tgz","fileCount":7,"integrity":"sha512-Sd57d8pSU7Su2/w7JWusUAbrfsFkkrr19nK+rmpCP8u/gAumTRXA4+kilqwR0J2KKrjxQcrPipNA5ARGwvDyqA==","signatures":[{"sig":"MEUCIAqc0bkINdvZbfU8JfKe/vWTwC1QuLLrkTQPaDHurzkuAiEA0qkQlQql3l1uBBYYzO+KQkADkWdd0387JwZJYEyGznc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35408},"main":"./index.mjs","gitHead":"3624779bdf107f339fda05d3ae6b688a3597440e","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.4_1773470131812_0.09035583177197548","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.5","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.5","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"b6ef41238f14b1f6c736f4ecd02d3b68c14f3473","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.5.tgz","fileCount":7,"integrity":"sha512-GA3v6E0BsLU1CL8KpCoezTSvE7TsSnBgz10hEkvcjssUEkR+Dica24zB7ggZ1lw7igBB+tJWL+BklegSqloBxA==","signatures":[{"sig":"MEYCIQDRnbxVZ5x9Y8miILrxGk3mpdgd9OOeyOHYNQNLNOOuBwIhAIWrdUA+y15qeeKMs6L/zbeaU1eznBeAuki5qBi60WGN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35691},"main":"./index.mjs","gitHead":"f2c450c6696706edc99e9b92624d36acc2fcc474","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.5_1773479734451_0.43632541397386904","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.6","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.6","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"01b416480423d84ed26f764484b80d6296f0a516","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.6.tgz","fileCount":7,"integrity":"sha512-Kaq3haqewcEeUZQfrVl2Tvn/n1fMJ3JGMhdHA1wPK/nGpHmCHYDH1pZb5ketENXuTv/+vYa2sBqF1tRaHWIslw==","signatures":[{"sig":"MEYCIQCofja/r1u9txYlsujQhyw3+XyCX51R6Z1xN87F7e5MuAIhAM+9YYMhzosT0r0pOt1LVi/sWFfq5W067LOdvYY4yuUZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35721},"main":"./index.mjs","gitHead":"637f6a28f11c8645f3dc684db56f43928080b26e","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.6_1773480330873_0.9065439501800892","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.7","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.7","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"0aab412208984464ea3d32fc408bc5ea8c60573c","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.7.tgz","fileCount":7,"integrity":"sha512-LfP7PrQYkB3OsWrhMPmgNKe6iQCMloxpy5ciq3uiNKVufdZcttla7YX+AS4aPZQAyepWfQgp9EwObIKLln3F9g==","signatures":[{"sig":"MEYCIQCdP8O4xIeu050v6jcqiQ7V3ESIO8R4uoSmaz8CiW1TMgIhAKQZ233M5+5JfIMaQUvmF4Vr6wTKA936S+Ls7RnIL//5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38836},"main":"./index.mjs","gitHead":"809e0332da20ffdab5070e8171ec6df1d2ad1488","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.7_1773481972296_0.3309147601852729","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.8","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.8","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"11255f078ad3629df06dcb2466672e1b611c3bed","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.8.tgz","fileCount":7,"integrity":"sha512-y470flbiT0y1cffsEjzpM6zms+bNq9sqpUXEikCsRf5EIDRQ73AGNmBRCNbZH4vL+dIKhWchIOGHOdVrqbusOQ==","signatures":[{"sig":"MEQCIFO/Qy0JeeZJdmIq8PGPbd8iN1NA/sitcxj+egFW4GNoAiB4TMMDcvXB1Y4Hj+AT3frRbho+/IMMBivthIa11mOmXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39146},"main":"./index.mjs","gitHead":"0dcc162227ad7358f17ba3194de1bd1de8d8bb63","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.8_1773482930873_0.58882267739649","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.9","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.9","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"1a3f9ca9433ef702d293feb9739c7bcaea3d8c71","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.9.tgz","fileCount":7,"integrity":"sha512-sZBElgekuwR81z7uPkdk+jOiyB5RO/qfDNoA1y9lzoaKojDtvIRIZc4s8Qfm6m4x4YkdKcBJ6OB3sOHKUeTOOw==","signatures":[{"sig":"MEQCIEicsWO1+SZ9/HSTx4VzhUQuZF0lao7/MJpG6EZA1IdDAiAcW4j0aeJvypy100KJLhEfqD5QmVgHLWKWH5WwfDu/iA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40050},"main":"./index.mjs","gitHead":"009ee0e586904346503cf72929dfd513503b5d92","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.9_1773484452614_0.5195121313026678","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.10","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.10","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"055ef8af58665206b831f6d92d47df91df19aba7","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.10.tgz","fileCount":7,"integrity":"sha512-gwAXfvHibhdCQsvThSKnE7/BJK9oLYHo+KQS3OaHT0uTlT4iVRmj1TPxpZF5v7FT1NZXWi8vscrwkoUhcBpAcw==","signatures":[{"sig":"MEUCIAJF435A0j/y/vLXD8zDRzD682+TOKrSw0kUSvj3bNWlAiEA73JgrR1RxJNGi6lqOJ2+cKcYDRrHgbJW2Gje/mG2ACs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40076},"main":"./index.mjs","gitHead":"9cc789e36c6312b732f1de60b091d9db17b49f2f","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.10_1773484924033_0.19362747505591216","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.11","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.11","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"65b141cfdd6610e13312af9d593a5d0a091e2827","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.11.tgz","fileCount":7,"integrity":"sha512-SmsSEGW/Z7zu3RePSDU4cmIMSJxDMcKhR1ClD9CDxvfMTJa4R5/mPkKHbOTsQ6b8pL2CQ9MdjivJsUhgsZvt+Q==","signatures":[{"sig":"MEUCIQClm24Rpo81YQlL10Hm8GUp1+hTcKZ9puq0MwHF5KDMkAIgL8q9HTQc4YQxkCbhOTzkBBEj1VRAMHk5J0Wq2pZ77lI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40294},"main":"./index.mjs","gitHead":"c0b9f5bd1d65f9ff5862a894606397c17af90fcd","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.11_1773485664986_0.6975631615410043","host":"s3://npm-registry-packages-npm-production"}},"0.1.12":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.12","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.12","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"b61dfe757cb2bdb4755b4ffcb8bfb854681d6d9e","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.12.tgz","fileCount":7,"integrity":"sha512-KUv1nU+O7Qsy+u2hP67qcJrCnx/dQd9VgAilRTgsRs2+57bom1UE0d8MKr7Eqyc54VdO7TfJMZVZF8sMj/7cbA==","signatures":[{"sig":"MEQCIHvR+8KLlKfBXJRF+J9wvwsvFcEmltfdRpf75HLDDJb/AiBml3oSvo/nfC2xF5WBHpDFyZhV00gl/vVifYkenXW3YA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40294},"main":"./index.mjs","gitHead":"1e102b1962a7c53734b190a726a9e4c722568c99","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.12_1773486348525_0.09252780560793439","host":"s3://npm-registry-packages-npm-production"}},"0.1.13":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.13","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.13","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"dist":{"shasum":"b0fa97f4c2990caa7885f0618e81882d6490ebfe","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.13.tgz","fileCount":7,"integrity":"sha512-U6+vbaIlXXxwRbk8UMtoL/1ouMV+orNof4sHPeLJ7tPVXgIhOajfAwsLc6sC/X7VTlhP1XiLB4iQIkTUrGHohg==","signatures":[{"sig":"MEYCIQDK18tWjnnW3Hd7MqDd4q6Tymjprnrtp8orL4u2QCpm8gIhAKyvwqJCwHBgE+xbyf+dWrIVBTwqn757Qm/Xqn8av9y8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40354},"main":"./index.mjs","gitHead":"fdac47af83e005c2caab080c117d6feec8b78898","_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"_npmVersion":"11.9.0","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","directories":{},"_nodeVersion":"24.14.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"_npmOperationalInternal":{"tmp":"tmp/opencode-copilot-device-auth_0.1.13_1773501720674_0.000005379735207089453","host":"s3://npm-registry-packages-npm-production"}},"0.1.14":{"name":"@best-linux-code/opencode-copilot-device-auth","version":"0.1.14","main":"./index.mjs","publishConfig":{"access":"public"},"devDependencies":{"@opencode-ai/plugin":"^0.4.45"},"dependencies":{},"gitHead":"71e94ba6955258da65f7477b8f1bdeeab491689f","_id":"@best-linux-code/opencode-copilot-device-auth@0.1.14","description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-Hm/QkgDZhVOBzN98Mcsbh39LSw1ea0Y0brQh2ZNMJNXSjcn1fVNuFDM3bDfzKM+rwYX7fB5A8e0gzxa+BtdbsA==","shasum":"c5706dab9f140f12aab88c623a2553d0aa99ab18","tarball":"https://registry.npmjs.org/@best-linux-code/opencode-copilot-device-auth/-/opencode-copilot-device-auth-0.1.14.tgz","fileCount":7,"unpackedSize":41386,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIClSAei96q0OQT80WPJ8+NsHwjnXLiJQ8Y4hi+0K78//AiEAoXDazKgxErkwm/tAMSpvhjDiIj/QYflc+WuxD65W/8M="}]},"_npmUser":{"name":"best-linux-code","email":"link2agi4code@gmail.com"},"directories":{},"maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-copilot-device-auth_0.1.14_1773740053313_0.1388193360419736"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-14T06:13:10.511Z","modified":"2026-03-17T09:34:13.583Z","0.1.3":"2026-03-14T06:13:10.725Z","0.1.4":"2026-03-14T06:35:31.955Z","0.1.5":"2026-03-14T09:15:34.603Z","0.1.6":"2026-03-14T09:25:31.053Z","0.1.7":"2026-03-14T09:52:52.459Z","0.1.8":"2026-03-14T10:08:51.036Z","0.1.9":"2026-03-14T10:34:12.854Z","0.1.10":"2026-03-14T10:42:04.175Z","0.1.11":"2026-03-14T10:54:25.150Z","0.1.12":"2026-03-14T11:05:48.688Z","0.1.13":"2026-03-14T15:22:00.809Z","0.1.14":"2026-03-17T09:34:13.458Z"},"description":"GitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth Package on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth","maintainers":[{"name":"best-linux-code","email":"link2agi4code@gmail.com"}],"readme":"# @best-linux-code/opencode-copilot-device-auth\n\nGitHub Repository: https://github.com/best-linux-code/opencode-copilot-device-auth\nPackage on npm: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth\n\nThis plugin is an enhanced OpenCode authentication provider for GitHub Copilot. It builds upon the official opencode-copilot-auth plugin, introducing major improvements in model metadata handling, authentication flow reliability, and support for advanced model features like Claude thinking budgets and Gemini reasoning efforts.\n\n## Features\n\n- API-Driven Model Metadata: Fetches real-time model context limits directly from the Copilot API. For example, it correctly identifies the 200K context limit for Claude Opus 4.6 instead of falling back to a static 128K limit.\n- Dynamic Claude Thinking Budgets: Automatically generates low, medium, and high thinking_budget variants based on API-reported model capabilities.\n- Dynamic Gemini Reasoning Efforts: Automatically generates low, medium, and high reasoning_effort variants based on API-reported model capabilities.\n- Unified Headers: Implements consistent vscode-chat headers across all model families, including Claude, Gemini, GPT, and Grok.\n- Enhanced Token Exchange: Features a two-level fallback mechanism (v2/token to copilot_internal/user) to ensure reliable authentication.\n- Robust Device Flow: Implements the OAuth device code flow with proper handling for slow_down responses.\n- Automatic Cleanup: Removes stale provider configurations from opencode.json upon logout.\n- Debug Logging: Detailed response status and error body logging available at /tmp/copilot-device-auth.log.\n- Zero Cost: Provides access to all available Copilot models at no additional cost.\n- Future-Proof: Dynamically registers new models like claude-opus-4.6-1m if they are reported by the API.\n\n## Model Limits Comparison\n\nThis plugin patches live per-model limits from Copilot, ensuring OpenCode uses accurate context window sizes.\n\n| Model | This Plugin (Live) | static models.dev |\n| --- | --- | --- |\n| claude-opus-4.6 | 200,000 | 128,000 |\n| claude-sonnet-4.6 | 200,000 | 128,000 |\n| claude-haiku-4.5 | 144,000 | 128,000 |\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install @best-linux-code/opencode-copilot-device-auth\n```\n\nAdd the plugin to your opencode.json configuration:\n\n```json\n{\n  \"plugin\": [\n    \"@best-linux-code/opencode-copilot-device-auth\"\n  ]\n}\n```\n\n## Known Limitations\n\n- Input Tokens Undefined: Some models (e.g., gpt-5, claude-opus-41) may display input=undefined because the Copilot API does not currently return max_prompt_tokens for these specific identifiers.\n- Grok Initiator Error: The grok-code-fast-1 model may occasionally return an \"invalid initiator\" error. This is a known issue with the upstream Copilot API and is not a bug within this plugin.\n- Duplicate Loader Calls: The internal CopilotAuthPlugin may still run alongside this plugin. This results in duplicate loader calls but is harmless and idempotent.\n\n## Publishing\n\nPublishing is handled via GitHub Actions. You can manually trigger the workflow to release a new version (patch, minor, or major).\n\n---\n\n# @best-linux-code/opencode-copilot-device-auth (中文)\n\nGitHub 仓库: https://github.com/best-linux-code/opencode-copilot-device-auth\nnpm 软件包: https://www.npmjs.com/package/@best-linux-code/opencode-copilot-device-auth\n\n本插件是针对 GitHub Copilot 的增强版 OpenCode 身份验证提供程序。它基于官方的 opencode-copilot-auth 插件构建，在模型元数据处理、身份验证流程可靠性以及对 Claude 思考预算 (thinking budget) 和 Gemini 推理强度 (reasoning effort) 等高级功能的支持方面进行了重大改进。\n\n## 功能特性\n\n- API 驱动的模型元数据：直接从 Copilot API 获取实时的模型上下文限制。例如，它能正确识别 Claude Opus 4.6 的 200K 上下文限制，而不是回退到静态的 128K 限制。\n- 动态 Claude 思考预算：根据 API 报告的模型能力，自动生成低、中、高三种思考预算 (thinking_budget) 变体。\n- 动态 Gemini 推理强度：根据 API 报告的模型能力，自动生成低、中、高三种推理强度 (reasoning_effort) 变体。\n- 统一请求头：在包括 Claude、Gemini、GPT 和 Grok 在内的所有模型系列中实现一致的 vscode-chat 请求头。\n- 增强型令牌交换：具备两级回退机制（从 v2/token 回退到 copilot_internal/user），以确保身份验证的可靠性。\n- 稳健的设备流：实现 OAuth 设备代码流，并能妥善处理 slow_down 响应。\n- 自动清理：注销时自动从 opencode.json 中移除过时的提供程序配置。\n- 调试日志：在 /tmp/copilot-device-auth.log 中提供详细的响应状态和错误主体日志。\n- 零成本：免费访问所有可用的 Copilot 模型。\n- 面向未来：如果 API 报告了如 claude-opus-4.6-1m 等新模型，插件将动态注册这些模型。\n\n## 模型限制对比\n\n本插件会根据 Copilot 的实时数据修补每个模型的限制，确保 OpenCode 使用准确的上下文窗口大小。\n\n| 模型 | 本插件 (实时) | 静态 models.dev |\n| --- | --- | --- |\n| claude-opus-4.6 | 200,000 | 128,000 |\n| claude-sonnet-4.6 | 200,000 | 128,000 |\n| claude-haiku-4.5 | 144,000 | 128,000 |\n\n## 安装\n\n通过 npm 安装软件包：\n\n```bash\nnpm install @best-linux-code/opencode-copilot-device-auth\n```\n\n将插件添加到您的 opencode.json 配置中：\n\n```json\n{\n  \"plugin\": [\n    \"@best-linux-code/opencode-copilot-device-auth\"\n  ]\n}\n```\n\n## 已知限制\n\n- 输入令牌未定义：某些模型（例如 gpt-5、claude-opus-41）可能会显示 input=undefined，这是因为 Copilot API 目前未针对这些特定标识符返回 max_prompt_tokens。\n- Grok 启动器错误：grok-code-fast-1 模型可能会偶尔返回 \"invalid initiator\" 错误。这是上游 Copilot API 的已知问题，并非本插件的错误。\n- 重复加载调用：内置的 CopilotAuthPlugin 可能会与本插件同时运行。这会导致重复的加载调用，但由于操作是幂等的，因此并无大碍。\n\n## 发布\n\n发布工作由 GitHub Actions 处理。您可以手动触发工作流以发布新版本（修订号 patch、次版本号 minor 或主版本号 major）。\n","readmeFilename":"README.md"}