🤖 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
/* 开关:只有"开 / 关"两态的设置用它,两个以上的选项用 Seg。
打开 = 主操作色(浅色墨、深色近白),圆钮滑过去。
状态:悬停轨道加深一级;键盘焦点外描边;禁用变淡。
结构:<button role="switch" class="switch" aria-checked="true|false">,圆钮是 ::after。 */
.switch {
--switch-w: 34px;
--switch-h: 20px;
--switch-pad: var(--space-0-5);
--switch-track: var(--switch-off);
--switch-track-hover: var(--switch-off-hover);
--switch-dot: var(--switch-knob);
position: relative; flex: none; width: var(--switch-w); height: var(--switch-h); border-radius: var(--r-full);
background: var(--switch-track);
transition: background var(--t-base);
}
.switch::after {
content: ""; position: absolute; top: var(--switch-pad); left: var(--switch-pad);
width: calc(var(--switch-h) - 2 * var(--switch-pad)); height: calc(var(--switch-h) - 2 * var(--switch-pad)); border-radius: var(--r-full);
background: var(--switch-dot); box-shadow: var(--seg-edge);
transition: transform var(--t-base), background var(--t-base);
}
.switch:hover:not(:disabled) { background: var(--switch-track-hover); }
.switch[aria-checked="true"] { --switch-track: var(--primary); --switch-track-hover: var(--primary-hover); --switch-dot: var(--switch-knob-on); }
.switch[aria-checked="true"]::after { transform: translateX(calc(var(--switch-w) - var(--switch-h))); }
.switch:disabled { opacity: var(--o-disabled); }
.switch.sm { --switch-w: 28px; --switch-h: 16px; }