Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
// Mounts the product's own Wizard — the real component that renders the Welcome
// and assistant-setup screens — inside the real providers. Nothing here restates
// onboarding layout or behaviour: the whole point is that the browser measures
// the shipped component tree. Every request is answered by the spec's routes, so
// the fixture never reaches a running service and never writes anything.
import { createRoot } from 'react-dom/client';
import { createInstance } from 'i18next';
import { I18nextProvider } from 'react-i18next';
import en from '../../src/i18n/en.json';
import zh from '../../src/i18n/zh.json';
import '../../src/index.css';
import { ApiProvider } from '../../src/context/ApiContext';
import { ThemeProvider } from '../../src/context/ThemeProvider';
import { ToastProvider } from '../../src/context/ToastProvider';
import { MemoryRouter } from 'react-router-dom';
import { StatusProvider } from '../../src/context/StatusProvider';
import { InstanceAuthorizationContext } from '../../src/context/InstanceAuthorizationContext';
import { OWNER_INSTANCE_CAPABILITIES } from '../../src/lib/sessionInfo';
import { Wizard } from '../../src/components/Wizard';
import { CodexProviderConfig } from '../../src/components/settings/providers/CodexProviderConfig';
// Settings uses an internal scroll owner on mobile because global CSS locks the
// document. The isolated provider fixture supplies that shell responsibility.
// The product's own ThemeProvider, reading the same `?theme=` it reads in the app:
// `dark` and `light` are explicit preferences, `system` follows the OS. Writing
// `data-theme` here instead would have been the fixture theming itself, which cannot
// show whether System-mode follow and preference preservation still work.
const params = new URLSearchParams(location.search);
const language = createInstance();
await language.init({
lng: params.get('lang') ?? 'en',
resources: { en: { translation: en }, zh: { translation: zh } },
interpolation: { escapeValue: false },
});
createRoot(document.getElementById('root')!).render(
<I18nextProvider i18n={language}>
<ThemeProvider>
<ToastProvider>
<ApiProvider>
<InstanceAuthorizationContext.Provider value={{ remote: false, instanceKind: null, instanceRole: 'owner', capabilities: OWNER_INSTANCE_CAPABILITIES }}><MemoryRouter><StatusProvider>{params.get('surface') === 'disabled-settings'
? <main className="mx-auto h-dvh max-w-xl overflow-y-auto p-6"><CodexProviderConfig /></main>
: <Wizard />}</StatusProvider></MemoryRouter></InstanceAuthorizationContext.Provider>
</ApiProvider>
</ToastProvider>
</ThemeProvider>
</I18nextProvider>,
);