🤖 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.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
---
// 页脚:品牌(标记 + 一句话)| 三栏链接 → 收录徽章 → 版权行 → 眼睛田。
// 收录徽章的原码和取舍见 data/badges.ts:要写进静态 HTML,校验机器人不跑 JS。默认收起成一两排,只是样式,HTML 里始终是全部徽章。
// 眼睛田是页脚最下面的大字标:AnyModelBot 由几百枚迷你 Eyes 标记拼成,跟着指针看、点一下发消息、定时"换脑"(scripts/eyefield.ts)。
// 纯装饰(aria-hidden),没有 JS 时整块不显示;样式在 styles/footer.css。
import "../styles/footer.css";
import EyesMark from "./EyesMark.astro";
import Icon from "./Icon.astro";
import { dict, fmt, href, READY_LANGS, LOCALES, switchHref, type Lang } from "../i18n";
import { GITHUB_URL, MF, pricing } from "../lib/site";
import { docsUrl } from "../lib/docs";
import { pickModels } from "../lib/eyefield";
import { BADGES, badgeVariants } from "../data/badges";
import badgeRatios from "../data/badge-ratios.json";
interface Props { lang: Lang; path: string }
const { lang, path } = Astro.props;
const t = dict(lang);
const c = t.footer.cols;
const h = (p: string) => href(lang, p);
const home = h("/");
const cols = [
{ title: c.product.title, links: [[c.product.links[0], `${home}#features`], [c.product.links[1], h("/pricing")], [c.product.links[2], h("/download")], [c.product.links[3], h("/changelog")], [c.product.links[4], h("/bots")]] },
{ title: c.resources.title, links: [[c.resources.links[0], docsUrl(lang)], [c.resources.links[1], h("/security")], [c.resources.links[2], GITHUB_URL], [c.resources.links[3], MF.home(lang)], [t.partners.footer, h("/partners")]] },
{ title: c.legal.title, links: [[c.legal.links[0], h("/privacy")], [c.legal.links[1], h("/licenses")]] },
];
const ext = (u: string) => /^https?:/.test(u);
// 眼睛田"换脑"时轮流显示的模型:价格快照里每家厂商取一个
const models = pickModels(pricing.rows);
// 图片懒加载:被隐藏的那个主题款不会发请求,页面也只在快到页脚时才请求这些外部图片
const lazy = (html: string) => html.replace(/<img\b([^>]*)>/g, (_, attrs: string) => `<img${/\sloading=/.test(attrs) ? "" : ' loading="lazy"'} decoding="async"${attrs}>`);
// 有深色款的排最前面:收起时露出来的第一排,在两个主题下都和页面底色协调
const ratios: Record<string, number> = badgeRatios;
const badges = [...BADGES.filter((b) => b.dark), ...BADGES.filter((b) => !b.dark)].flatMap((b) => badgeVariants(b).map((v) => ({
...v,
kind: b.kind,
label: b.noCopy ? b.name : undefined,
ratio: v.copy ? ratios[v.copy.path] : b.ratio,
html: lazy(v.html),
})));
---
<footer class="footer">
<div class="container footer__inner">
<div class="footer__brand">
<a class="logo" href={home} aria-label={t.nav.home}><EyesMark size={40} lookAt="#cta-final" /><span aria-hidden="true">AnyModelBot</span></a>
<p class="footer__tag">{t.footer.tagline}</p>
</div>
<div class="footer__cols">
{cols.map((col) => (
<div>
<h2 class="footer__title">{col.title}</h2>
<ul role="list">
{col.links.map(([label, url]) => (
<li><a href={url} target={ext(url) ? "_blank" : undefined} rel={ext(url) ? "noopener" : undefined}>{label}</a></li>
))}
</ul>
</div>
))}
</div>
</div>
<div class="container footer__featured">
<h2 class="footer__title">{t.footer.featured}</h2>
<button class="footer__more" type="button" aria-expanded="false" aria-controls="footer-badges">
<span data-when="closed">{fmt(t.footer.featuredMore, { count: BADGES.length })}</span>
<span data-when="open">{t.footer.featuredLess}</span>
<Icon name="chevron" size={14} />
</button>
<ul class="footer__badges" id="footer-badges" role="list">
{badges.map((b) => (
<li class="footer__badge" data-kind={b.kind} data-on={b.on} data-label={b.label} style={b.ratio ? `--r:${b.ratio}` : undefined}>
{b.copy && <img class="footer__badge-copy" src={`/${b.copy.path}`} alt="" loading="lazy" decoding="async" />}
<Fragment set:html={b.html} />
</li>
))}
</ul>
</div>
<div class="container footer__bottom">
<span>{t.footer.copyright}</span>
<span>{t.footer.art}</span>
<span class="footer__switch">
<span class="language-options" aria-label={t.nav.langLabel}>{READY_LANGS.map((l) => <a href={switchHref(l, path)} hreflang={LOCALES[l].tag} lang={l === "zh" && lang === "en" ? "en" : LOCALES[l].tag} aria-current={l === lang ? "page" : undefined} data-lang-switch={l}>{l === "zh" && lang === "en" ? "Simplified Chinese" : LOCALES[l].name}</a>)}</span>
<button type="button" data-theme-cycle aria-label={t.nav.theme}>{t.nav.theme}</button>
</span>
</div>
<div class="container footer__field" aria-hidden="true" data-eyefield data-models={JSON.stringify(models)}>
<p class="footer__field-cap">
<span class="footer__field-hint">{t.footer.fieldHint}</span>
<span class="footer__field-model"><i></i>{t.footer.fieldModel} → <b class="mono" data-field-model>{models[0]}</b></span>
</p>
<div class="footer__stage"><canvas class="footer__canvas"></canvas></div>
</div>
</footer>
<script>
import "../scripts/eyefield";
import "../scripts/badges";
</script>