Talking to LLMs with curl

Last year I posted about aichat, an LLM command line shell. I talked about a wrapper built on it to spellcheck a portion of Unicode text. I use it daily with my text editors: Kakoune and Helix . Yesterday my OpenAI credits expired, so I switched to [OpenRouter][4], a unified API for many AI models. I had been using the openai/gpt-5-mini model for a while, and I figured it was time to update to…