Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions client/src/components/SettingsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function SettingsView() {
const [preferredSearch, setPreferredSearch] = useState('auto');
const [searxngEndpoint, setSearxngEndpoint] = useState('http://localhost:8888/search');
const [braveApiKey, setBraveApiKey] = useState('');
const [tavilyApiKey, setTavilyApiKey] = useState('');
const [savingSearch, setSavingSearch] = useState(false);
const [searchTestResult, setSearchTestResult] = useState<string | null>(null);

Expand Down Expand Up @@ -291,6 +292,7 @@ export function SettingsView() {
preferred_provider: preferredSearch,
searxng_endpoint: searxngEndpoint,
brave_api_key: braveApiKey || undefined,
tavily_api_key: tavilyApiKey || undefined,
}),
});
await fetchSearchProviders();
Expand Down Expand Up @@ -673,6 +675,7 @@ export function SettingsView() {
<option value="searxng">SearXNG (self-hosted)</option>
<option value="brave">Brave Search</option>
<option value="duckduckgo">DuckDuckGo</option>
<option value="tavily">Tavily</option>
</select>
</div>
<div>
Expand All @@ -695,6 +698,18 @@ export function SettingsView() {
onChange={e => setBraveApiKey(e.target.value)}
/>
</div>
<div>
<label className="text-sm font-medium block mb-1">Tavily API Key</label>
<Input
type="password"
placeholder="Enter Tavily API key (optional)"
value={tavilyApiKey}
onChange={e => setTavilyApiKey(e.target.value)}
/>
<p className="text-[10px] text-muted-foreground mt-1">
Get a key at <a href="https://app.tavily.com" target="_blank" rel="noreferrer" className="text-primary underline">app.tavily.com</a>
</p>
</div>
</div>

{/* Actions */}
Expand Down
1 change: 1 addition & 0 deletions client/src/components/SetupWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const INTEGRATIONS = [
{ id: 'github', label: 'GitHub', description: 'Create PRs, issues, and manage repos.', keyLabel: 'Personal Access Token', keyHint: 'ghp_...' },
{ id: 'notion', label: 'Notion', description: 'Create pages, update databases, search notes.', keyLabel: 'API Key', keyHint: 'secret_...' },
{ id: 'brave', label: 'Brave Search', description: 'High-quality web search API.', keyLabel: 'API Key', keyHint: 'BSA...' },
{ id: 'tavily', label: 'Tavily Search', description: 'AI-optimised web search API (optional).', keyLabel: 'API Key', keyHint: 'tvly-...' },
];

// ─── Helpers ───────────────────────────────────────────────────────────────────
Expand Down
1 change: 1 addition & 0 deletions server/src/routes/setupRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ router.post('/complete', async (req: Request, res: Response) => {
github: 'GITHUB_TOKEN',
notion: 'NOTION_API_KEY',
brave: 'BRAVE_API_KEY',
tavily: 'TAVILY_API_KEY',
serpapi: 'SERPAPI_API_KEY',
};
for (const [service, val] of Object.entries(integrations)) {
Expand Down