Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

566 B
Raw Blame
// 界面只显示 app/state.json(useBot().state),改数据都交给 Bot(send)。
import { html, mount, useBot, Page, Card, Stack, Empty } from "/amb/botapp/kit/kit.js";

function App() {
  const bot = useBot();
  if (!bot.ready) return null;
  const state = bot.state || {};
  const items = state.items || [];
  return html`<${Page} title=${state.title}>
    ${items.length
      ? html`<${Stack}>${items.map((it) => html`<${Card} key=${it.id} on=${it.changed}>${it.text}<//>`)}<//>`
      : html`<${Empty}>${bot.t("empty")}<//>`}
  <//>`;
}

mount(App);