Deep-ai-inc/ch.at — reverse-engineered prompt

Reverse engineered prompt

Build me a very small self hosted AI chat service in Go that feels like a stripped down version of ch.at. I want one binary, no accounts, no analytics, no server side chat history, and a simple web chat that works without JavaScript. It should answer prompts from a browser, from curl in the terminal, over SSH for a chat style session, and through DNS TXT lookups for short replies. Please also include an OpenAI compatible chat completions endpoint so other tools can call it like a normal API.

Make it easy to point at either OpenAI, Anthropic, or a local model, just by editing a simple config source file and rebuilding. Use streaming where it makes sense, keep URLs clean, add basic rate limiting, and keep privacy in mind by not logging requests. Support HTTPS if cert and key files are present, but make it easy to run locally on higher ports without sudo. Include a quick self test and simple run instructions. If anything is unclear, check the current docs online.

Want more depth? Deep Reverse