Your agent answers with your interface.
Super Chat is an open-source front-end framework for agent services. Agents reply with tables, charts, forms and approvals that your product validates and renders.
pnpm add @supersolutions/super-chat-uiWhat if one card can't answer it?
It composes an interface for the question.
The agent combines tables, charts, text, inputs and approvals into a response built for this request. The 23 built-in cards are some of the parts it can use.
Who controls what the model can show?
The model picks a card. Your product decides what renders.
{ "kind": "stats", "title": "Vendor quotes", "items": [ { "label": "Lowest annual cost", "value": 28000, "format": "currency" }, { "label": "Quotes compared", "value": 3, "format": "number" } ]}The spec passes validation, then your renderer draws it.
What can the agent ask me?
A choice, a form, an approval or a redline.
Approve an action before the agent takes it. The run stays paused until you answer, and your answer becomes the tool result the model reads next.
This dispatches the letter to the counterparty's notice address on record.
- Recipient
- Vertex Systems Ltd
- Effective
- 60 days from today
- Ground
- Convenience
- Reference
- MSA-2026-0417
Will it work with the model we already use?
One runtime for OpenAI, Anthropic and compatible endpoints.
Super Chat writes each provider's request format for you, including tools, images and output limits.
Your API key stays on your server.
The proxy forwards only the paths you list. Any other path returns 403, and an Authorization header sent by the browser is ignored.
import { createProxyHandler } from "@supersolutions/super-chat-server"; export const POST = createProxyHandler({ providers: { openai: { baseUrl: "https://api.openai.com/v1", apiKey: () => process.env.OPENAI_API_KEY!, allowPaths: ["/responses", "/chat/completions"], }, }, authorize: (req) => checkSession(req),});Why did the agent know that?
Every turn records what went into the context.
Context is rebuilt each turn from named sources under a token budget. When a source is trimmed or dropped, the trace says why.
Sample trace with a 4,000-token budget.
system:identityIncluded180skill:contractsIncluded214memory:preferencesIncluded96retrieval:msa-7.2Trimmed to fit1,120history:recentIncluded1,640history:olderDropped for budget0headroomLeft for the reply750
What do I need to start?
Install only the layers you need.
super-chat-coreThe provider-neutral engine. It runs without React.super-chat-clientThreads and run control for any front end.super-chat-serverThe proxy route that keeps your keys on your server.super-chat-reactHooks, thread state and card actions.super-chat-uiCard renderers, chat parts and the context inspector.
pnpm add @supersolutions/super-chat-core @supersolutions/super-chat-react @supersolutions/super-chat-ui- License
- Apache-2.0
See three products built on it.
The playground runs a legal workspace, a companion and a DeFi assistant in your browser. You don't need an API key.
Open the playground