open-source standalone key box
A small box that locks API key access with a physical switch.
Standalone hardware and a physical switch block accidental or malicious agent access to API keys.
01
Three things the box does
- Keys on the box
- Provider keys live only on the device. Clients get gateway keys, revocable per machine.
- Physical lock
- The switch closes SSH and the panel. The gateway stays up for valid gateway keys.
- Local screen
- 240x240: IP, lock state, usage, quota.
02
Install
Reference build: NanoPi NEO3 Plus. Any 256 MB ARM64 board runs it headless.
| Part | Qty | Spec | Cost |
|---|---|---|---|
| NanoPi NEO3 Plus | 1 | RK3528A · 1GB · GbE · eMMC/microSD · 26-pin header | ¥179 / $26.85 |
| Slide switch | 1 | 2-position latching | ¥0.80 / $0.12 |
| Jumper wires | 10 | female-female | ¥1.05 / $0.16 |
| ST7789 display | 1 | 1.3 or 1.54 in · 240x240 · SPI · header pre-soldered | ¥24.70 / $3.71 |
| USB-C power | 1 | 5V / 3A or more | ¥32.80 / $4.92 |
| TF card | 1 | ≥16GB · Class 10 or faster | ¥86.90 / $13.04 |
| USB card reader | 1 | USB-A or USB-C | — |
| Ethernet cable | 1 | 100M or faster (Cat5 or better) | — |
| Total | priced parts only | ¥325.25 / $48.80 |
Reference prices, ¥1 = $0.15.