A simple AI chat
A small example of an AI app using the OpenRouter Agent SDK through this app’s saved outbound domains.
OPENROUTER_API_KEY in this app’s Environment panel. Add openrouter.ai to Outbound domains and save the list.
Your API key stays on the server. Chat messages are held in this page and sent to the app for each turn.