cd /news/ai-products/show-hn-a-stateful-llm-api-that-work… · home topics ai-products article
[ARTICLE · art-131506] src=twigg.ai ↗ pub= topic=ai-products verified=true sentiment=· neutral

Show HN: A Stateful LLM API that works across providers

Twigg launched as a stateful LLM API that lets developers maintain chat context across multiple model providers without managing storage infrastructure themselves. The API works by returning a chat ID on creation, then appending new prompts and tool results to that ID while assembling history automatically, with model switching handled by changing a single field in the next request. The dashboard supports configuration of tool schemas, system prompts, context window limits, and retention settings.

read1 min views1 publishedSep 16, 2026

For the last year we've been building AI workspaces. With every new product, we found ourselves rebuilding the same context layer and infrastructure. We tried existing solutions, but we'd either have to lock into one provider or have to manage the storage infrastructure. What we wanted was an API that's stateful and isn't tied to a specific provider. So that we didn't have to think about compaction, differing schemas, or running the infrastructure ourselves.

Since we'd already built most of the constituent parts, we’ve decided to release Twigg.

The API is deliberately simple. You create a chat and get back an ID. When you have a new prompt or tool result, you send that plus the ID. There's no need to store or manage context yourself. It appends the new prompt and assembles the history for you. To switch models, you change one field in the next request.

The dashboard covers most of what you'd want to configure: tool schemas, system prompts, context window limits and retention settings.

We'd like to hear from anyone who has run into the same problems. How are you hosting your context right now, and what would make you not want to hand it to a third party?

Comments URL: [https://news.ycombinator.com/item?id=49727072](https://news.ycombinator.com/item?id=49727072)

Points: 1

── more in #ai-products 4 stories · sorted by recency
── more on @twigg 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-a-stateful-l…] indexed:0 read:1min 2026-09-16 ·