anthropic-api-key

0.2.3 • �� Public • Published blished

Anthropic API key fetcher

simple cli to fetch an anthropic access token using oauth (pkce), built with bun

demo video showing using it with crush

usage

bunx anthropic-api-key
npx anthropic-api-key



# override port
PORT=9999 bunx anthropic-api-key



# help
bunx anthropic-api-key --helpp

what it does

  • starts a local server and auto-opens your browser
  • guides you through anthropic oauth (pkce)
  • prints an access token to stdout and exits
  • caches tokens at ~/.config/crush/anthropic and reuses them on later runs
  • if a cached token is still valid, it prints immediately and exits
  • if expired and a refresh token exists, it refreshes, saves, prints, and exits

© 2025-present ent Kieran Klukas

Readme

Keywords

none

Package Sidebar

Install

npm i anthropic-api-key

Weekly Downloads

34

Version

0.2.3

License

MIT

Unpacked Size

2.5 MB

Total Files

7

Issues

0

Pull Requests

0

Last publish

Collaborators

  • taciturnaxolotl