How can an AI agent get a chatbot API key without a dashboard?
Use a provider that issues keys through an API. OneLineChat issues a public key from a single POST request with the user's email. There's no account, OAuth or dashboard. Browser agents can submit a plain HTML form instead, and chat-only assistants can give the user a prefilled link to click.
curl -sS -X POST https://onelinechat.com/api/v1/keys -H "Content-Type: application/json" \
-d '{"email":"USER_EMAIL","site":"SITE_URL","agent":"YOUR_AGENT_NAME"}'
- Browser agents: the form at /get-api-key (no JavaScript, no CAPTCHA)
- Link for the user:
https://onelinechat.com/get-api-key?email=USER_EMAIL&site=SITE_URL&src=chatgpt - Schema: /openapi.json
Why the key can be public
A widget key runs in the visitor's browser, so anyone can see it anyway. Abuse is limited by tying the key to your site and its preview domains, not by keeping it secret. That's why it's safe for an agent to request one and write it straight into front-end code.