digikeylisted
Install: claude install-skill Guru254-pixel/kicad-happy
# DigiKey Parts Search & Analysis
DigiKey is the **primary source for prototype orders** (Mouser is secondary). Its API returns direct PDF datasheet links, making it the preferred datasheet source. For production orders, see `lcsc`/`jlcpcb`. For BOM management and export workflows, see `bom`.
## API Credential Setup
The DigiKey API requires OAuth 2.0 credentials. Here's how to set them up:
1. **Create a DigiKey account** at [digikey.com](https://www.digikey.com) if you don't have one
2. **Register an API app** at [developer.digikey.com](https://developer.digikey.com):
- Sign in with your DigiKey account
- Go to "My Apps" → "Create App"
- App name: anything (e.g., "claude-code")
- Select **"Product Information v4"** API
- OAuth type: **Client Credentials** (2-legged, no user login needed)
- Callback URL: `https://localhost` (not used for client credentials, but required)
- After creation, note the **Client ID** and **Client Secret**
3. **Set the environment variables** before running the scripts:
```bash
export DIGIKEY_CLIENT_ID=your_client_id_here
export DIGIKEY_CLIENT_SECRET=your_client_secret_here
```
If credentials are stored in a central secrets file (e.g., `~/.config/secrets.env`), load them first:
```bash
export $(grep -v '^#' ~/.config/secrets.env | grep -v '^$' | xargs)
```
The client credentials flow has no user interaction — once configured, API calls work automatically.
## DigiKey Product Information API v4
The AP