Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

1.5 KB
Raw Blame
import { Sparkles } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { BackendRuntimeCard } from '../shared/BackendRuntimeCard';
import { BackendSupplyModeCard } from '../models/BackendSupplyModeCard';
import { useModelHubCapability } from '../models/useModelHubCapability';
import { useBackendRuntime } from '../shared/useBackendRuntime';
import { BackendTestPanel } from '../BackendTestPanel';
import { BackendConnectionForm } from './BackendConnectionForm';
import { Card, CardContent } from '@/components/ui/card';
import { getBackendUiMeta } from '@/lib/agentBackends';

export function ClaudeProviderConfig({ hideEnableToggle }: { hideEnableToggle?: boolean } = {}) {
  const { t } = useTranslation();
  const runtime = useBackendRuntime({ backend: 'claude', defaultCli: 'claude' });
  const modelHubEnabled = useModelHubCapability();
  if (!runtime.loaded) return <p>{t('common.loading')}</p>;
  return <div className="flex flex-col gap-4">
    <BackendRuntimeCard backend="claude" label={getBackendUiMeta('claude').label} description={t('settings.backends.claudeDescription')}
      Icon={Sparkles} iconTileClassName="bg-cyan-soft" iconClassName="text-cyan-ink" runtime={runtime} hideEnableToggle={hideEnableToggle} />
    {modelHubEnabled === true && <BackendSupplyModeCard backend="claude" />}
    <Card><CardContent className="p-6"><BackendConnectionForm backend="claude" connectionRevision={runtime.connectionRevision} /></CardContent></Card>
    <BackendTestPanel backend="claude" />
  </div>;
}