Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 1 min read

3 ways to give workshop attendees LLM API keys without handing out yours

Running a hands-on AI workshop or a class, the annoying part is always API keys. Hand out your own and you're one leaked screenshot away from a bill. Ask everyone to sign up and the first 30 minutes are gone. Here are t

Running a hands-on AI workshop or a class, the annoying part is always API keys. Hand out your own and you're one leaked screenshot away from a bill. Ask everyone to sign up and the first 30 minutes are gone.

Here are three ways to do it and when each one makes sense.

1. Everyone gets their own

Safest for you, and you pay nothing. Gemini has a free tier, so a Google account is enough to start.

  • Good: no cost to you, a leaked key only affects its owner
  • Bad: someone always gets stuck on signup or card verification, and it doesn't work if the workshop needs a paid model

2. One OpenRouter key per person

OpenRouter lets one account create many keys, each with its own credit limit. Limits can reset daily, weekly or monthly (at midnight UTC).

  • Good: per-key limits, lots of models to pick from
  • Bad: you create keys one at a time, and turn them off one at a time afterwards

3. Hand out capped proxy keys in bulk

I built Saifuban for this (open source). Your real API key stays with you, attendees only get proxy keys.

  • paste a list of names, one per line, and get a key per person as a CSV
  • set a per-person cap like "$2 a day"
  • set an end time, and every key stops when the workshop is over
  • see who spent what, and stop one person's key if needed

It works with OpenAI, Claude, Gemini and OpenRouter. Attendees just swap the base URL and the key.

Which one

  • free models are enough β†’ 1
  • you want lots of models β†’ 2
  • you want a paid model and a guaranteed shutoff when it ends β†’ 3

The thing organizers worry about most is the key still working after everyone's gone home. Whatever you pick, plan how you'll turn it off.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.